Function at 0x495600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55b121
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5b3940]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3940]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
call edx
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x4958b1
cmp dword [edi + 8], 0
je 0x4958b1
mov eax, dword [esi + 0xf8]
mov ecx, dword [esi + 0x80]
mov eax, dword [eax + 0x2c]
inc ecx
cmp ecx, eax
jge 0x4956f4
mov eax, dword [esi + 0x80]
add eax, 1
mov ecx, dword [esi + 0xf8]
js 0x495699
cmp eax, dword [ecx + 0x2c]
jge 0x495699
mov edx, dword [ecx + 0x28]
mov edi, dword [edx + eax*4]
lea eax, [edx + eax*4]
jmp 0x49569b
xor edi, edi
mov eax, dword [esi]
mov edx, dword [eax + 0x140]
mov ebx, dword [edi + 0x84]
mov ecx, esi
call edx
cmp ebx, eax
jl 0x4956f0
mov eax, dword [esi]
mov edx, dword [eax + 0x140]
mov ebx, dword [edi + 0x84]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x10]
add eax, dword [ecx + 4]
cmp ebx, eax
jg 0x4956f0
mov ecx, dword [esi + 0xf8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
push edi
call eax
mov ecx, dword [esi + 0xf8]
mov edx, dword [esi + 0x80]
mov eax, dword [ecx + 0x2c]
inc edx
cmp edx, eax
jl 0x495678
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x100]
call fcn.0044d530
test eax, eax
je 0x49571d
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
push 1
mov ecx, esi
mov dword [esi + 0xd0], 0
call edx
jmp 0x4958b1
mov ecx, dword [edi + 8]
call fcn.00401320
test al, al
je 0x495743
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
push 0
mov ecx, esi
mov dword [esi + 0xd0], 0
call edx
jmp 0x4958b1
or dword [esi + 0xd0], 1
lea eax, [esp + 0x2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov edx, 0x5c
mov word [esp + ebx*2 + 0x2c], dx
inc ebx
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov word [esp + ebx*2 + 0x2c], ax
call fcn.00401410
xor edi, edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x250], edi
call fcn.00401410
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x250], 1
cmp dword [ecx + 4], edi
mov dword [esp + 0x14], edi
jle 0x49589f
jmp 0x4957bb
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
push ebx
lea eax, [esp + 0x34]
push eax
push edi
lea eax, [esp + 0x28]
push eax
call edx
test eax, eax
je 0x49589f
mov eax, dword [esi + 0x80]
mov edx, dword [esi]
lea ecx, [edi + eax + 1]
mov eax, dword [edx + 0x140]
push 1
push ecx
push 0x574340
mov ecx, esi
call eax
mov ecx, dword [esi + 0xf8]
add eax, edi
push eax
push 1
push ecx
call fcn.00445930
mov ebx, eax
lea eax, [edi + 1]
push eax
lea edx, [esp + 0x2c]
push edx
lea edi, [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.00494890
add esp, 8
mov ecx, eax
mov byte [esp + 0x250], 2
call fcn.00405840
push eax
call fcn.0048ef00
lea ecx, [esp + 0x28]
mov byte [esp + 0x250], 1
call fcn.00407f90
mov edi, dword [esp + 0x14]
mov dword [ebx + 0xd4], 8
test edi, edi
jne 0x495867
cmp dword [esi + 0x80], edi
je 0x495867
lea eax, [edi + 1]
jmp 0x495869
xor eax, eax
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x5c]
mov ecx, ebx
call eax
mov eax, 0x80
test byte [esi + 0xd4], al
je 0x49588a
test edi, edi
jne 0x49588a
or dword [ebx + 0xd4], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
jl 0x4957b3
lea ecx, [esp + 0x24]
call fcn.00407f90
lea ecx, [esp + 0x18]
call fcn.00407f90
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0050bb49
mov esp, ebp
pop ebp
ret 4