Function at 0x40f361
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.00412044
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.0040f28a
mov edi, dword [ebp + 0xc]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40f400
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x40f400
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb5b
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.0040f28a
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40f45f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x40f45f
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb5b
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.004128e6
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.0040f28a
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40f4ba
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x40f4ba
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb5b
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.004128e6
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.0040f28a
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40f515
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x40f515
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb5b
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.0040f28a
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40f580
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x40f580
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040fb5b
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.0040f28a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f5d8
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jbe 0x40f5d8
push ebx
call fcn.0040fb5b
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