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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60417c
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
call fcn.004ea3f0
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 0x4caa68
push 0x80000001
call ecx
test eax, eax
jne 0x508043
lea eax, [esp + 0x184]
push eax
push 0x100
call dword [0x629288]
test eax, eax
je 0x508043
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], 0x4ca328
call fcn.00542a00
mov dword [esp + 0x398], 1
xor ebx, ebx
mov esi, dword [0x629310]
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 0x507daa
sub eax, 0xea
jne 0x508017
inc ebx
jmp 0x507d63
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 0x507e1f
sub eax, 0xea
jne 0x507fca
inc ebx
jmp 0x507ddb
cmp dword [esp + 0x44], 1
jne 0x507efa
cmp dword [esp + 0x40], 2
jb 0x507efa
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], 0x4ca328
call fcn.00542a00
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x398], 3
test ecx, ecx
je 0x507e93
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 0x508067
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 0x507edc
movzx eax, byte [0x637914]
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.004f3a60
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
mov byte [esp + 0x398], 1
mov dword [esp + 0x64], 0x4ca328
cmp ecx, 0x10
jb 0x507efa
push edx
call fcn.005df995
add esp, 4
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x507f14
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.005081c0
mov esi, eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x20], eax
cmp esi, eax
je 0x507f96
lea eax, [esi + 0x10]
test eax, eax
je 0x507f3e
add eax, 4
jmp 0x507f40
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x507f4b
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.004f3050
add esp, 0xc
test eax, eax
jne 0x507f7e
cmp ebx, edi
jb 0x507f8e
cmp ebx, edi
setne al
test eax, eax
mov ebx, dword [esp + 0x10]
js 0x507f92
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x2c]
jmp 0x507f9e
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 [0x629310]
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 0x507ddb
sub eax, 0x19
jne 0x508028
push dword [esp + 0x3c]
mov eax, dword [edi + 0x2b4]
call eax
mov eax, dword [esp + 0x1c]
test al, al
jne 0x50801c
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x48]
push dword [eax + 4]
call fcn.004eb6d0
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 0x507d5d
sub eax, 0x19
jne 0x508028
push dword [esp + 0x38]
mov eax, dword [edi + 0x2b4]
call eax
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x48], 0x4ca328
jb 0x508043
push dword [esp + 0x4c]
call fcn.005df995
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.005e0482
mov esp, ebp
pop ebp
ret
push 0x4ca554
call fcn.005dbaa2
int3