Function at 0x491764
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4919f8
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x491989
cmp byte [ebx + 0x30], 0
jne 0x4919dd
cmp dword [ebx + 0x38], 0
je 0x4919dd
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x38]
call fcn.00409c0c
cmp dword [ebp - 4], 0
jne 0x4917fb
lea eax, [ebp - 4]
mov edx, 0x12c
call fcn.00404a94
mov eax, dword [ebp - 4]
call fcn.00404908
push eax
push 0x12c
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov eax, dword [ebp - 4]
call fcn.00404908
call fcn.00409df8
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404a94
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040e17c
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x38]
mov ecx, dword [ebx + 0x38]
call fcn.00404754
mov eax, dword [ebx + 0x38]
call fcn.0040993c
test al, al
je 0x49190b
cmp byte [ebx + 0x54], 0
je 0x491827
mov byte [ebx + 0x55], 1
mov edx, 0x20
mov eax, dword [ebx + 0x38]
call fcn.004097ac
mov dword [ebx + 0x4c], eax
jmp 0x49183b
mov byte [ebx + 0x55], 0
mov edx, 2
mov eax, dword [ebx + 0x38]
call fcn.004097ac
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x4c]
test eax, eax
jbe 0x491847
cmp eax, 0xffffffff
jne 0x49186e
mov byte [ebx + 0x55], 1
xor edx, edx
mov eax, dword [ebx + 0x38]
call fcn.004097ac
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x4c]
test eax, eax
jbe 0x491864
cmp eax, 0xffffffff
jne 0x49186e
xor eax, eax
mov dword [ebx + 0x4c], eax
jmp 0x4919dd
cmp dword [ebx + 0x34], 0
je 0x4918ca
mov eax, dword [ebx + 0x34]
call fcn.00404708
mov esi, eax
mov eax, esi
call fcn.00402744
mov edi, eax
mov edx, edi
mov ecx, esi
mov eax, dword [ebx + 0x4c]
call fcn.00409830
mov eax, dword [ebx + 0x34]
call fcn.00404908
mov ecx, esi
mov edx, edi
call fcn.00408e38
test al, al
jne 0x4918c1
mov eax, dword [ebx + 0x4c]
call fcn.004098cc
xor eax, eax
mov dword [ebx + 0x4c], eax
mov eax, edi
call fcn.00402764
jmp 0x4919dd
mov eax, edi
call fcn.00402764
jmp 0x4918cc
xor esi, esi
lea edx, [ebx + 0x40]
mov ecx, 4
mov eax, dword [ebx + 0x4c]
call fcn.00409830
lea eax, [esi + 4]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x44], eax
mov ecx, 2
xor edx, edx
mov eax, dword [ebx + 0x4c]
call fcn.00409888
mov dword [ebx + 0x3c], eax
xor ecx, ecx
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x4c]
call fcn.00409888
jmp 0x491983
mov byte [ebx + 0x55], 0
mov eax, dword [ebp - 4]
call fcn.00491264
mov eax, dword [ebx + 0x38]
call fcn.00409804
mov esi, eax
mov dword [ebx + 0x4c], esi
test esi, esi
ja 0x491932
xor eax, eax
mov dword [ebx + 0x4c], eax
jmp 0x4919dd
cmp dword [ebx + 0x34], 0
je 0x491958
mov eax, dword [ebx + 0x34]
call fcn.00404708
mov esi, eax
mov eax, dword [ebx + 0x34]
call fcn.00404908
mov edx, eax
mov ecx, esi
mov eax, dword [ebx + 0x4c]
call fcn.0040985c
jmp 0x49195a
xor esi, esi
xor eax, eax
mov dword [ebx + 0x40], eax
lea edx, [ebx + 0x40]
mov ecx, 4
mov eax, dword [ebx + 0x4c]
call fcn.0040985c
lea eax, [esi + 4]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x50]
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x30], 1
jmp 0x4919dd
mov byte [ebx + 0x55], 0
cmp byte [ebx + 0x30], 0
je 0x4919dd
mov edx, dword [ebx + 0x50]
sub edx, 4
xor ecx, ecx
mov eax, dword [ebx + 0x4c]
call fcn.00409888
lea edx, [ebx + 0x40]
mov ecx, 4
mov eax, dword [ebx + 0x4c]
call fcn.0040985c
mov eax, dword [ebx + 0x4c]
call fcn.004098cc
mov byte [ebx + 0x30], 0
xor eax, eax
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x4c], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4919ff
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404440
ret