Function at 0x4053d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
lea edx, [ebp - 0x18]
push edi
mov edi, 0x407b40
push esi
mov esi, 0x416f90
push ebx
sub esp, 0x28c
mov ebx, 0x405676
mov dword [ebp - 0x24c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x244], esp
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x26c]
mov dword [esp], eax
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x248], ebx
call fcn.0040c840
mov dword [esp], str.addCluster:__s
mov eax, dword [ebp + 0xc]
mov ecx, 0xffffffff
mov dword [ebp - 0x268], ecx
mov dword [esp + 4], eax
call fcn.00401970
mov edx, dword [ebp - 0x270]
lea eax, [ebp - 0x128]
mov edx, dword [edx + 4]
mov byte [ebp - 0x128], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x274], edx
mov dword [esp], 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
sub esp, 8
test eax, eax
je 0x405641
cmp eax, 0x104
ja 0x405625
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
mov eax, 0xffffffff
mov dword [ebp - 0x268], eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
test eax, eax
je 0x4056f0
mov esi, esi
lea edi, [edi]
mov eax, 0x105
xor edi, edi
mov esi, 0x104
mov dword [esp + 8], eax
lea eax, [ebp - 0x238]
mov ebx, 1
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], esi
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x238]
mov dword [esp], eax
mov dword [ebp - 0x268], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_strncpy
mov ecx, 0x104
lea edx, [ebp - 0x238]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004012f0
test al, al
je 0x405661
mov edx, dword [ebp - 0x270]
add edx, 0x24
mov dword [ebp - 0x278], edx
mov edx, dword [ebp - 0x270]
mov eax, dword [edx + 0x24]
mov eax, dword [eax - 0xc]
test eax, eax
mov dword [ebp - 0x27c], eax
je 0x4055a8
mov eax, dword [0x42a460]
mov edx, dword [ebp - 0x27c]
sub eax, edx
cmp eax, 1
jae 0x405563
mov dword [esp], 0x429b05
mov edi, 1
mov dword [ebp - 0x268], edi
call fcn.00409c10
mov eax, dword [ebp - 0x27c]
mov esi, 1
xor ebx, ebx
mov dword [esp + 0xc], esi
mov edx, dword [ebp - 0x278]
mov ecx, 1
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x268], ecx
call fcn.00415ba0
mov edx, dword [ebp - 0x270]
mov eax, dword [edx + 0x24]
mov edx, dword [ebp - 0x27c]
mov byte [eax + edx], 0x3b
mov dword [esp], str.Adding_cluster__s
lea eax, [ebp - 0x238]
mov edx, 1
mov dword [esp + 4], eax
mov dword [ebp - 0x268], edx
call fcn.00401970
mov edx, dword [ebp - 0x270]
lea eax, [ebp - 0x238]
mov dword [esp], eax
add edx, 0x24
mov dword [ebp - 0x280], edx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x280]
lea edx, [ebp - 0x238]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00414300
cmp byte [ebp - 0x128], 0
jne 0x405724
lea eax, [ebp - 0x26c]
mov dword [esp], eax
call fcn.0040c920
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.Failed_to_get_current_directory__buffer_is_too_small.
mov eax, 0xffffffff
mov dword [ebp - 0x268], eax
call fcn.00401970
jmp 0x4054b0
mov dword [esp], 1
mov edx, str.Failed_to_get_current_directory
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.00401ac0
jmp 0x4054b0
mov dword [esp], str.Invalid_cluster_path:__s
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call fcn.00401970
jmp 0x405602
mov dword [esp], 1
mov edx, dword [ebp - 0x274]
mov eax, str.Failed_to_set_current_directory_to___s_
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call fcn.00401ac0
mov byte [ebp - 0x128], 0
jmp 0x4054b0
lea edx, [ebp - 0x128]
mov eax, 0xffffffff
mov dword [esp], edx
mov dword [ebp - 0x268], eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
test eax, eax
jne 0x40560f
mov dword [esp], 1
lea eax, [ebp - 0x128]
mov edi, 1
mov dword [esp + 0xc], eax
mov eax, str.Failed_to_set_current_directory_to___s_
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call fcn.00401ac0
jmp 0x40560f