Function at 0x4058f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b3bd
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x5662f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebx, ebx
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405960
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x238]
call fcn.004050e0
lea edx, [ebp - 0x238]
push edx
mov eax, 0x5492e8
lea ecx, [ebp - 0x28c]
mov dword [ebp - 4], ebx
call fcn.00403170
mov ecx, eax
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.00407460
push eax
mov eax, 0x5491c8
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 2
call fcn.00403170
add esp, 8
mov edi, eax
mov esi, 0x568764
mov byte [ebp - 4], 3
call fcn.00402880
mov edi, 8
cmp dword [ebp - 0x240], edi
jb 0x4059f0
mov eax, dword [ebp - 0x254]
push eax
call fcn.004078b0
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], cx
cmp dword [ebp - 0x25c], edi
jb 0x405a21
mov edx, dword [ebp - 0x270]
push edx
call fcn.004078b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ebx
mov word [ebp - 0x270], ax
cmp dword [ebp - 0x278], edi
jb 0x405a4d
mov ecx, dword [ebp - 0x28c]
push ecx
call fcn.004078b0
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x27c], ebx
mov word [ebp - 0x28c], dx
cmp dword [ebp - 0x224], edi
jb 0x405a80
mov eax, dword [ebp - 0x238]
push eax
call fcn.004078b0
add esp, 4
call fcn.004065a0
test eax, eax
jne 0x405ab0
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f5f9c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 4
cmp byte [0x56879c], bl
je 0x405b2c
sub esp, 0x1c
mov edi, esp
mov dword [ebp - 0x290], esp
push ebx
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push 0x568748
or eax, 0xffffffff
mov word [edi], cx
call fcn.00404e20
push 1
push 1
sub esp, 0x1c
mov byte [ebp - 4], 5
mov edi, esp
mov dword [ebp - 0x294], esp
push ebx
xor edx, edx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push 0x5684c0
or eax, 0xffffffff
mov word [edi], dx
call fcn.00404e20
cmp dword [0x568528], 8
mov eax, dword [0x568514]
jae 0x405b22
mov eax, 0x568514
push eax
mov byte [ebp - 4], 4
call fcn.00405c40
cmp byte [0x56879d], bl
je 0x405ba1
sub esp, 0x1c
mov edi, esp
mov dword [ebp - 0x294], esp
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push ebx
mov word [edi], ax
push 0x568748
or eax, 0xffffffff
call fcn.00404e20
push 1
push 1
sub esp, 0x1c
mov byte [ebp - 4], 6
mov edi, esp
mov dword [ebp - 0x290], esp
push ebx
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push 0x5684dc
or eax, 0xffffffff
mov word [edi], cx
call fcn.00404e20
cmp dword [0x568544], 8
mov eax, dword [0x568530]
jae 0x405b97
mov eax, 0x568530
push eax
mov byte [ebp - 4], 4
call fcn.00405c40
cmp byte [0x56879e], bl
je 0x405c15
sub esp, 0x1c
mov edi, esp
mov dword [ebp - 0x294], esp
push ebx
xor edx, edx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push 0x568748
or eax, 0xffffffff
mov word [edi], dx
call fcn.00404e20
push 1
push ebx
sub esp, 0x1c
mov edi, esp
mov byte [ebp - 4], 7
mov dword [ebp - 0x290], esp
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push ebx
mov word [edi], ax
push 0x5684f8
or eax, 0xffffffff
call fcn.00404e20
cmp dword [0x568560], 8
mov eax, dword [0x56854c]
jae 0x405c0b
mov eax, 0x56854c
push eax
mov byte [ebp - 4], 4
call fcn.00405c40
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405ab0