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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5789f6
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x5abc48]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x378], ecx
lea eax, [ebp - 0x334]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
push 0
mov ecx, dword [ebp - 0x378]
push ecx
push 0x58e3a4
push 0x206
push 0
push 0x58e3d4
push 1
lea ecx, [ebp - 0x1f4]
call fcn.0054438a
mov dword [ebp - 4], 0
mov dword [ebp - 0x1fc], 0x58
call fcn.00415420
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
movzx eax, byte [edx + 0xe4]
test eax, eax
jne 0x530c54
mov dword [ebp - 0x1fc], 0x4c
lea ecx, [ebp - 0x1f4]
call fcn.00543b07
mov ecx, dword [ebp - 0x1fc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x224]
add ecx, 0xe8
call fcn.0052f0e0
mov esi, eax
lea ecx, [ebp - 0x1f4]
call fcn.00543b07
mov dword [eax + 0x2c], esi
mov dword [ebp - 0x10], 0xc3500
lea ecx, [ebp - 0x1f4]
call fcn.00543b07
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00534acf
add esp, 4
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x360]
mov dword [ebp - 0x200], ecx
lea ecx, [ebp - 0x1f4]
call fcn.00543b07
mov edx, dword [ebp - 0x200]
mov dword [eax + 0x1c], edx
lea ecx, [ebp - 0x1f4]
call fcn.00543b07
mov eax, dword [eax + 0x1c]
mov byte [eax], 0
lea ecx, [ebp - 0x1f4]
call fcn.00544b5b
cmp eax, 2
jne 0x530d17
lea ecx, [ebp - 0x334]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.0054420a
jmp 0x531128
lea edx, [ebp - 0x334]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x208]
call fcn.004154f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00536457
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f4]
call fcn.0045d980
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x225], 1
cmp dword [ebp - 0x338], 0
je 0x530dc9
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x1f4]
call fcn.00545097
mov byte [ebp - 4], 3
movzx edx, byte [ebp - 0x225]
test edx, edx
je 0x530da6
mov byte [ebp - 0x225], 0
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x208]
call fcn.004155b0
jmp 0x530db8
lea ecx, [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.004152c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x33c]
call fcn.0052ee60
jmp 0x530d5a
lea ecx, [ebp - 0x208]
call fcn.00413da0
movzx edx, al
test edx, edx
jne 0x530ded
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x220]
call fcn.004152c0
push ecx
mov ecx, esp
mov dword [ebp - 0x364], esp
lea edx, [ebp - 0x208]
push edx
call fcn.00415510
mov dword [ebp - 0x37c], eax
lea eax, [ebp - 0x368]
push eax
call fcn.004027c0
add esp, 8
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
mov dword [ebp - 0x384], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x384]
push edx
mov ecx, dword [ebp - 0x224]
add ecx, 0xe8
call fcn.004155b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x368]
call fcn.0052ee60
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0x200]
mov dword [ebp - 0x36c], ecx
mov edx, dword [ebp - 0x36c]
push edx
call fcn.00534ac4
add esp, 4
lea ecx, [ebp - 0x220]
call fcn.004b0db0
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 0
jge 0x530ecb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00536813
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x208]
call fcn.0052ee60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.0054420a
jmp 0x531128
lea ecx, [ebp - 0x20c]
call fcn.004154f0
mov byte [ebp - 4], 5
mov dword [ebp - 0x1f8], 0
jmp 0x530ef5
mov eax, dword [ebp - 0x1f8]
add eax, 1
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
cmp ecx, dword [ebp - 0x204]
jg 0x5310b2
lea ecx, [ebp - 0x350]
call fcn.00534f5c
mov byte [ebp - 4], 6
push 0
push 0
mov edx, dword [ebp - 0x1f8]
push edx
lea ecx, [ebp - 0x220]
call fcn.004152f0
mov ecx, eax
call fcn.0052f0e0
push eax
lea ecx, [ebp - 0x350]
call fcn.00535477
test eax, eax
jne 0x530f54
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x350]
call fcn.00535075
jmp 0x530ee6
lea ecx, [ebp - 0x350]
call fcn.00534e47
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x35c]
lea ecx, [eax + eax + 0x42]
push ecx
call fcn.00534acf
add esp, 4
mov dword [ebp - 0x370], eax
mov edx, dword [ebp - 0x370]
mov dword [ebp - 0x340], edx
mov eax, dword [ebp - 0x35c]
lea ecx, [eax + eax + 0x37]
push ecx
mov edx, dword [ebp - 0x340]
push edx
lea ecx, [ebp - 0x350]
call fcn.00534c50
mov dword [ebp - 0x354], eax
lea ecx, [ebp - 0x350]
call fcn.00534ef6
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
jle 0x531083
mov ecx, dword [ebp - 0x340]
add ecx, dword [ebp - 0x358]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
jne 0x531009
mov eax, dword [ebp - 0x340]
add eax, dword [ebp - 0x358]
mov byte [eax], 0
mov ecx, dword [ebp - 0x340]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00413920
jmp 0x531083
mov edx, dword [ebp - 0x340]
add edx, dword [ebp - 0x358]
movsx eax, byte [edx - 1]
cmp eax, 0xd
jne 0x531052
mov ecx, dword [ebp - 0x340]
add ecx, dword [ebp - 0x358]
mov byte [ecx - 1], 0
mov edx, dword [ebp - 0x340]
push edx
lea ecx, [ebp - 0x20c]
call fcn.00413920
push 0x58e3d8
lea ecx, [ebp - 0x20c]
call fcn.00413920
jmp 0x531083
mov eax, dword [ebp - 0x340]
add eax, dword [ebp - 0x358]
mov byte [eax], 0
mov ecx, dword [ebp - 0x340]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00413920
push 0x58e3dc
lea ecx, [ebp - 0x20c]
call fcn.00413920
mov edx, dword [ebp - 0x340]
mov dword [ebp - 0x374], edx
mov eax, dword [ebp - 0x374]
push eax
call fcn.00534ac4
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x350]
call fcn.00535075
jmp 0x530ee6
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x378]
call fcn.0053c43f
push 1
lea ecx, [ebp - 0x20c]
call fcn.0052f0e0
push eax
mov ecx, dword [ebp - 0x378]
call fcn.00531890
push 0
push 0
mov ecx, dword [ebp - 0x378]
call fcn.0053c43f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20c]
call fcn.0052ee60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00536813
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x208]
call fcn.0052ee60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f4]
call fcn.0054420a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00556710
mov esp, ebp
pop ebp
ret