Function at 0x41014f
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.00413365
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.00410078
mov edi, dword [ebp + 0xc]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4101ee
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x4101ee
push ebx
mov dword [ebp - 0xc], eax
call fcn.0041097e
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
pop ecx
mov dword [edi], eax
push 0x458ee8
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.00410078
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x41024d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x41024d
push ebx
mov dword [ebp - 0xc], eax
call fcn.0041097e
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.00413c07
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.00410078
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4102a8
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x4102a8
push ebx
mov dword [ebp - 0xc], eax
call fcn.0041097e
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.00413c07
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.00410078
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x410303
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x410303
push ebx
mov dword [ebp - 0xc], eax
call fcn.0041097e
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 0x42a3c0
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.00410078
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x41036e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x41036e
push ebx
mov dword [ebp - 0xc], eax
call fcn.0041097e
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
pop ecx
mov dword [edi], eax
push 0x458ff0
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.00410078
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4103c6
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jbe 0x4103c6
push ebx
call fcn.0041097e
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