Function at 0x409000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x280
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [esp + 0x278], eax
call fcn.00429670
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
cmp byte [eax + 4], 0
je 0x409074
mov esi, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 8]
call dword [section..00cfg]
push dword [ebp + 0x30]
push esi
push dword [ebp + 0x28]
push edi
push ebx
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call ecx
test eax, eax
je 0x409074
xor esi, esi
inc esi
jmp 0x4090a1
push ebx
push 0x431e26
call fcn.0040ed70
add esp, 8
call fcn.00429670
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
xor esi, esi
cmp dword [eax], 0
jg 0x4090bb
mov ecx, dword [esp + 0x278]
xor ecx, ebp
call fcn.0040a740
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x2c
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push 1
push 0x10
push dword [ebp + 0x30]
call fcn.00418390
add esp, 0xc
test al, al
jne 0x4090df
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x4090a1
call fcn.004296b0
test al, al
je 0x4090d6
mov eax, dword [0x43831c]
test eax, eax
je 0x4090d6
lea ebx, [esp + 0x70]
push ebx
push 0x104
mov dword [esp + 0xc], eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
dec eax
xor ecx, ecx
cmp eax, 0x103
cmovae ebx, ecx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x10]
mov eax, dword [esp + 4]
mov dword [ecx], eax
add eax, dword [eax + 8]
mov dword [ecx + 4], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x60], 0
call fcn.00418780
mov dword [esp + 4], eax
test eax, eax
je 0x4090d6
mov ebx, dword [esp + 4]
mov dword [ebx], 0xd
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 0x3c], 5
mov dword [ebx + 0x44], 0x88
lea ecx, [esp + 0x2c]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.004187d0
mov ecx, ebx
push 1
xor edx, edx
push edx
push eax
lea eax, [esp + 0x38]
push dword [eax]
push edx
call fcn.00418ea0
test al, al
je 0x4090d6
lea ebx, [esp + 0x28]
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
mov ecx, ebx
call fcn.004187d0
xor edx, edx
inc edx
mov ecx, dword [esp + 4]
push edx
push 0
push eax
push dword [ebx]
push edx
call fcn.00418ea0
test al, al
je 0x4090d6
lea ebx, [esp + 0x24]
mov eax, dword [esp + 0xc]
mov dword [ebx], eax
mov ecx, ebx
call fcn.004187d0
mov ecx, dword [esp + 4]
push 1
push 0
push eax
push dword [ebx]
push 2
call fcn.00418ea0
mov ecx, 4
test al, al
je 0x409292
lea ebx, [esp + 0x20]
mov eax, dword [ebp + 0x28]
mov dword [ebx], eax
mov ecx, ebx
call fcn.004187d0
mov ecx, dword [esp + 4]
push 1
push 0
push eax
push dword [ebx]
push 3
call fcn.00418ea0
mov ecx, 4
test al, al
je 0x409292
mov eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 4]
push 6
push 1
push eax
push edx
push 4
call fcn.00418ea0
mov ecx, 4
test al, al
je 0x409292
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
push dword [esp + 8]
call fcn.00418930
mov ecx, 0xa
mov dword [esp + 0xc], eax
cmp eax, 0xa
je 0x409292
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 0x74]
add eax, ebx
lea ecx, [esp + 0x18]
push eax
call fcn.00419300
mov byte [esp + 0xb], al
lea ecx, [esp + 0x10]
push ebx
call fcn.00418b00
cmp byte [esp + 0xb], 0
mov ecx, 2
cmovne ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x4090d6
push dword [esp + 0x38]
call dword [sym.imp.kernel32.dll_SetLastError]
xor esi, esi
cmp dword [esp + 0x38], 0
jne 0x4090a1
push dword [ebp + 0xc]
push 0x431e26
call fcn.0040ef00
add esp, 8
jmp 0x40906f