Function at 0x562660
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e5b6c
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x5fc7d0]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push esi
push edi
mov eax, dword [0x5fc7d0]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
call fcn.00545850
mov edi, eax
mov dword [esp + 0x38], 0
lea eax, [esp + 0x38]
mov dword [esp + 0x24], edi
push eax
push 9
mov ecx, dword [edi + 0x484]
push 0
push 0x52fa0c
push 0x80000001
call ecx
test eax, eax
jne 0x562a23
lea eax, [esp + 0x184]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x562a23
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
push 2
lea eax, [esp + 0x188]
mov dword [esp + 0x39c], 0
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0x52f2f8
call fcn.005977d0
mov dword [esp + 0x398], 1
xor ebx, ebx
mov esi, dword [sym.imp.USER32.dll_CharUpperBuffA]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x90]
mov dword [esp + 0x90], 0x100
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x2c], ebx
push eax
mov eax, dword [edi + 0x4cc]
push ebx
push dword [esp + 0x54]
call eax
sub eax, 0
je 0x56278a
sub eax, 0xea
jne 0x5629f7
inc ebx
jmp 0x562743
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push 9
push 0
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x48]
mov eax, dword [edi + 0x484]
call eax
xor al, al
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ebx
push 0
push 0
lea eax, [esp + 0x4c]
mov dword [esp + 0x18], ebx
push eax
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x100
push eax
lea eax, [esp + 0x298]
push eax
mov eax, dword [edi + 0x4d4]
push ebx
push dword [esp + 0x58]
call eax
sub eax, 0
je 0x5627ff
sub eax, 0xea
jne 0x5629aa
inc ebx
jmp 0x5627bb
cmp dword [esp + 0x44], 1
jne 0x5628da
cmp dword [esp + 0x40], 2
jb 0x5628da
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
push 2
lea eax, [esp + 0x288]
mov byte [esp + 0x39c], 2
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], 0x52f2f8
call fcn.005977d0
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x398], 3
test ecx, ecx
je 0x562873
cmp dword [esp + 0x7c], 0x10
lea eax, [esp + 0x68]
push ecx
cmovae eax, dword [esp + 0x6c]
push eax
call esi
mov ecx, dword [esp + 0x78]
cmp ecx, 1
jbe 0x562a47
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x68]
mov edx, dword [esp + 0x68]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax + 1], 0x3a
jne 0x5628bc
movzx eax, byte [0x6023d4]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x68]
push eax
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [ecx + 0x48]
call fcn.005602f0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
mov byte [esp + 0x398], 1
mov dword [esp + 0x64], 0x52f2f8
cmp ecx, 0x10
jb 0x5628da
push edx
call fcn.005c40d3
add esp, 4
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x5628f4
cmp dword [esp + 0x60], 0x10
lea eax, [esp + 0x4c]
push ecx
cmovae eax, dword [esp + 0x50]
push eax
call esi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.0056e080
mov esi, eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x20], eax
cmp esi, eax
je 0x562976
lea eax, [esi + 0x10]
test eax, eax
je 0x56291e
add eax, 4
jmp 0x562920
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x56292b
mov eax, dword [eax]
cmp dword [esp + 0x60], 0x10
lea edx, [esp + 0x4c]
mov ebx, dword [esp + 0x5c]
mov ecx, edi
cmovae edx, dword [esp + 0x4c]
cmp ebx, edi
cmovb ecx, ebx
push ecx
push eax
push edx
call fcn.0054e160
add esp, 0xc
test eax, eax
jne 0x56295e
cmp ebx, edi
jb 0x56296e
cmp ebx, edi
setne al
test eax, eax
mov ebx, dword [esp + 0x10]
js 0x562972
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x2c]
jmp 0x56297e
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_CharUpperBuffA]
cmp eax, dword [edx + 0x48]
mov eax, 1
mov edi, dword [esp + 0x24]
movzx ecx, cl
cmovne ecx, eax
inc ebx
mov dword [esp + 0x1c], ecx
jmp 0x5627bb
sub eax, 0x19
jne 0x562a08
push dword [esp + 0x3c]
mov eax, dword [edi + 0x2b4]
call eax
mov eax, dword [esp + 0x1c]
test al, al
jne 0x5629fc
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x48]
push dword [eax + 4]
call fcn.00546ab0
mov eax, dword [esi + 0x48]
mov ebx, dword [esp + 0x18]
inc ebx
mov dword [eax + 4], eax
mov eax, dword [esi + 0x48]
mov dword [eax], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 8], eax
mov dword [esi + 0x4c], 0
jmp 0x56273d
sub eax, 0x19
jne 0x562a08
push dword [esp + 0x38]
mov eax, dword [edi + 0x2b4]
call eax
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x48], 0x52f2f8
jb 0x562a23
push dword [esp + 0x4c]
call fcn.005c40d3
add esp, 4
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.005c4b26
mov esp, ebp
pop ebp
ret
push 0x52f514
call fcn.005c3705
int3