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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56e4bc
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
call fcn.00462c50
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 0x4449d0
push reloc.WS2_32.dll_accept
call ecx
test eax, eax
jne 0x47fa93
lea eax, [esp + 0x184]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x47fa93
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], 0x4442f8
call fcn.004ba720
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 0x47f7fa
sub eax, 0xea
jne 0x47fa67
inc ebx
jmp 0x47f7b3
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 0x47f86f
sub eax, 0xea
jne 0x47fa1a
inc ebx
jmp 0x47f82b
cmp dword [esp + 0x44], 1
jne 0x47f94a
cmp dword [esp + 0x40], 2
jb 0x47f94a
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], 0x4442f8
call fcn.004ba720
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x398], 3
test ecx, ecx
je 0x47f8e3
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 0x47fab7
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 0x47f92c
movzx eax, byte [0x5a16d4]
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.0046bb40
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
mov byte [esp + 0x398], 1
mov dword [esp + 0x64], 0x4442f8
cmp ecx, 0x10
jb 0x47f94a
push edx
call fcn.00549eaf
add esp, 4
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x47f964
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.0048b460
mov esi, eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x20], eax
cmp esi, eax
je 0x47f9e6
lea eax, [esi + 0x10]
test eax, eax
je 0x47f98e
add eax, 4
jmp 0x47f990
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x47f99b
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.0046b450
add esp, 0xc
test eax, eax
jne 0x47f9ce
cmp ebx, edi
jb 0x47f9de
cmp ebx, edi
setne al
test eax, eax
mov ebx, dword [esp + 0x10]
js 0x47f9e2
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x2c]
jmp 0x47f9ee
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 0x47f82b
sub eax, 0x19
jne 0x47fa78
push dword [esp + 0x3c]
mov eax, dword [edi + 0x2b4]
call eax
mov eax, dword [esp + 0x1c]
test al, al
jne 0x47fa6c
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x48]
push dword [eax + 4]
call fcn.0047fc10
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 0x47f7ad
sub eax, 0x19
jne 0x47fa78
push dword [esp + 0x38]
mov eax, dword [edi + 0x2b4]
call eax
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x48], 0x4442f8
jb 0x47fa93
push dword [esp + 0x4c]
call fcn.00549eaf
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.0054a992
mov esp, ebp
pop ebp
ret
push 0x444514
call fcn.00545fbc
int3