Function at 0x4102f4
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.0041353f
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.0041021d
mov edi, dword [ebp + 0xc]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x410393
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x410393
push ebx
mov dword [ebp - 0xc], eax
call fcn.00410b23
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.0041021d
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4103f2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x4103f2
push ebx
mov dword [ebp - 0xc], eax
call fcn.00410b23
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.00413ed7
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.0041021d
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x41044d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x41044d
push ebx
mov dword [ebp - 0xc], eax
call fcn.00410b23
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.00413ed7
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.0041021d
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4104a8
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x4104a8
push ebx
mov dword [ebp - 0xc], eax
call fcn.00410b23
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
pop ecx
mov dword [edi], eax
push 0xf0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x42a3a8
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.0041021d
add esp, 0x10
test eax, eax
mov dword [ebp - 0x10], eax
je 0x410513
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x410513
push ebx
mov dword [ebp - 0xc], eax
call fcn.00410b23
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.0041021d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41056b
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jbe 0x41056b
push ebx
call fcn.00410b23
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