Function at 0x40f386
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
push 0x40
mov byte [ebp - 0x218], bl
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x114], al
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.00412069
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0040f2af
mov edi, dword [ebp + 0xc]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40f425
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x40f425
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb80
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
pop ecx
mov dword [edi], eax
push 0x455e00
lea eax, [ebp - 0x114]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0040f2af
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40f484
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x40f484
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb80
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
pop ecx
mov dword [edi], eax
lea eax, [ebp - 0x114]
push eax
push 0x26
call fcn.0041290b
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0040f2af
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40f4df
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x40f4df
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb80
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
pop ecx
mov dword [edi], eax
lea eax, [ebp - 0x114]
push eax
push 0x1c
call fcn.0041290b
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0040f2af
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40f53a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x40f53a
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb80
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
pop ecx
mov dword [edi], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4283c8
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0040f2af
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40f5a5
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x40f5a5
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb80
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
pop ecx
mov dword [edi], eax
push 0x455f08
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0040f2af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f5fd
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jbe 0x40f5fd
push ebx
call fcn.0040fb80
mov eax, dword [ebp - 8]
pop ecx
mov ebx, esi
mov dword [edi], eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret