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

Disassembly:
mov eax, 0x5d458c
call fcn.005a39e4
sub esp, 0x3c
mov eax, dword [0x624c00]
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
push 1
pop esi
lea ecx, [ebp - 0x18]
call fcn.00550fcc
test eax, eax
je 0x551baa
lea ecx, [ebp - 0x48]
call fcn.005351fe
push 3
pop esi
lea edx, [ebp - 0x48]
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [0x64868c], ebx
call fcn.00551332
test eax, eax
mov dword [0x648688], eax
je 0x551b9e
call fcn.00551133
mov ecx, dword [0x648688]
call fcn.00534137
mov ecx, dword [0x648688]
mov ebx, eax
mov dword [ebp - 0x38], ebx
call fcn.00534183
push eax
lea ecx, [ebp - 0x14]
call fcn.005bcdab
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.005bcdab
mov eax, dword [0x624c00]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 4
je 0x551a32
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x551a32
push 0x2e
lea ecx, [ebp - 0x14]
call fcn.005bac83
mov esi, eax
cmp esi, 0xffffffff
je 0x551a32
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.005bac83
push 0x2f
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.005bac83
cmp eax, edi
jge 0x551981
mov eax, edi
cmp esi, eax
jle 0x551a32
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
call fcn.005baaab
mov edi, eax
push 0x61cbe8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.005bcdab
mov ebx, eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.005babe0
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 7
call fcn.005bcf6c
push edi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 8
call fcn.005bcf6c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.005bce76
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.005bcd3d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.005bcd3d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.005bcd3d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.005bcd3d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.005bcd3d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.005bce76
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.005bce76
cmp dword [ebp + 8], 0
je 0x551a65
mov ecx, dword [ebp - 0x20]
call fcn.00534db0
test eax, eax
je 0x551b24
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.005bce76
jmp 0x551b24
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 8], 0
jne 0x551a7d
push 0x61cbd4
lea ecx, [ebp - 0x10]
call fcn.005bcec6
jmp 0x551a54
call fcn.00534db0
test eax, eax
je 0x551b24
mov eax, dword [0x624c00]
mov dword [ebp + 8], eax
mov esi, 0x104
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.005bd16d
push eax
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.005bd1bc
push 0x5fb2f0
lea ecx, [ebp - 0x30]
call fcn.005bcdab
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0xb
call fcn.005bcf6c
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0xc
call fcn.005bcf6c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.005bce76
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call fcn.005bcd3d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.005bcd3d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.005bcd3d
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.005bcd3d
push 4
pop esi
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
lea edi, [ebx + ebx*4]
call fcn.005bcab2
mov ecx, edi
call fcn.005511fc
test eax, eax
je 0x551b64
push 0xa
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x551b64
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
call fcn.00551bc9
mov esi, eax
mov ecx, fcn.00644320
call fcn.005522be
push dword [0x648688]
call fcn.00534075
pop ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.005bcd3d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.005bcd3d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005bcd3d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0053520e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005bcd3d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4