Function at 0x42c660
Capabilities:
Get common file path

Disassembly:
sub esp, 0x830
mov eax, dword [esp + 0x834]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x1c], ecx
je 0x42c909
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push eax
call edi
add esp, 4
test eax, eax
jbe 0x42c909
mov esi, dword [esp + 0x848]
cmp esi, ebp
je 0x42c909
push esi
call edi
add esp, 4
test eax, eax
jbe 0x42c909
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x63a]
mov word [esp + 0x638], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x638]
mov dword [esp + 0x18], ebp
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
lea ecx, [esp + 0x63c]
push str.Extensions
push ecx
push str._sTheWorldinstall_s_s_
lea edx, [esp + 0x30]
push 0x103
push edx
call ebx
push ebp
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.00432b60
lea ecx, [esp + 0x44]
push ecx
call fcn.004332a0
mov eax, dword [esp + 0x86c]
lea edx, [esp + 0x48]
push edx
push eax
call fcn.004cbfc0
add esp, 0x30
test eax, eax
je 0x42c909
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
push 0x4e6d30
lea ecx, [esp + 0x24]
push esi
push ecx
push str._s_s._s
lea edx, [esp + 0x238]
push 0x103
push edx
stosw word es:[edi], ax
call ebx
lea eax, [esp + 0x240]
add esp, 0x18
test eax, eax
je 0x42c7a9
lea ecx, [esp + 0x228]
push ebp
push ecx
call fcn.004329e0
add esp, 8
test eax, eax
jne 0x42c7d0
push 0x4e6d28
lea edx, [esp + 0x24]
push esi
push edx
push str._s_s._s
lea eax, [esp + 0x238]
push 0x103
push eax
mov ebp, 1
call ebx
add esp, 0x18
lea ecx, [esp + 0x228]
test ecx, ecx
je 0x42c909
lea edx, [esp + 0x228]
push 0
push edx
call fcn.004329e0
add esp, 8
test eax, eax
je 0x42c909
test ebp, ebp
jne 0x42c812
lea eax, [esp + 0x20]
push eax
call fcn.0042cb30
add esp, 4
test eax, eax
je 0x42c909
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
lea eax, [esp + 0x228]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x18], 8
call fcn.0042c5a0
test eax, eax
je 0x42c909
cmp dword [esp + 0x14], 1
jne 0x42c909
mov eax, dword [0x5d6c18]
test eax, eax
je 0x42c88f
mov ecx, ebp
call fcn.004870b0
test eax, eax
jne 0x42c88f
lea ecx, [esp + 0x20]
push esi
push ecx
mov ecx, ebp
call fcn.0042c920
test eax, eax
je 0x42c8f8
push esi
push 0
mov ecx, ebp
call fcn.004245e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x830
ret 8
mov dx, word [0x4fff00]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x432]
mov word [esp + 0x430], dx
push str.Extensions
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x500178
push 0x4e514c
lea eax, [esp + 0x43c]
push 0x103
push eax
call ebx
lea ecx, [esp + 0x444]
push ecx
call fcn.004332a0
lea edx, [esp + 0x448]
push 1
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00433b30
add esp, 0x24
test eax, eax
je 0x42c8f8
jmp 0x42c878
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x830
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x830
ret 8