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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5868f4
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x6606f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 4], 0
test eax, eax
jne 0x420f89
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420f81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x42129c
push 4
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp + 8]
call fcn.00403a30
mov eax, dword [eax]
push 0x599228
push eax
call fcn.0056c479
mov edi, eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
or esi, 0xffffffff
add esp, 8
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420fd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x421000
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420ff9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x42129c
lea ecx, [ebp - 0x23c]
call fcn.00478cbb
push 0x103
lea ecx, [ebp - 0x113]
push 0
push ecx
mov byte [ebp - 4], 2
mov byte [ebp - 0x114], 0
call fcn.0056c7b0
push 0x103
lea edx, [ebp - 0x217]
push 0
push edx
mov byte [ebp - 0x218], 0
call fcn.0056c7b0
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00401870
mov eax, dword [ebp - 0x21c]
push 0x5c
mov bl, 3
push eax
mov byte [ebp - 4], bl
call fcn.0056c53a
add esp, 8
test eax, eax
jne 0x42109c
mov eax, esi
jmp 0x4210a2
sub eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00402040
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.00402290
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4210e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x21c]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
call edi
mov edx, dword [ebp + 8]
push 0
push 0
push edx
lea ecx, [ebp - 0x23c]
call fcn.00479143
test eax, eax
jne 0x421175
lea eax, [ebp - 0x114]
push eax
call edi
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42113d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.00478deb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x42116b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
jmp 0x42129c
lea ecx, [ebp - 0x114]
push ecx
call edi
lea ecx, [ebp - 0x23c]
call fcn.00478ba7
mov ebx, dword [ebp + 0x14]
mov edi, eax
cmp edi, ebx
jge 0x4211fa
lea ecx, [ebp - 0x23c]
call fcn.00478c56
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4211c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.00478deb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x4211f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffd
jmp 0x42129c
push edi
call fcn.0046dda9
add esp, 4
mov esi, eax
push edi
push esi
lea ecx, [ebp - 0x23c]
call fcn.004789b0
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x224]
push ebx
add ecx, esi
push ecx
push edx
call fcn.0056e920
add esp, 0xc
lea ecx, [ebp - 0x23c]
call fcn.00478c56
push esi
call fcn.0046dd9e
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421265
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.00478deb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42129a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056c19b
mov esp, ebp
pop ebp
ret 0x10