Function at 0x42ca00
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 0x42cca9
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push eax
call edi
add esp, 4
test eax, eax
jbe 0x42cca9
mov esi, dword [esp + 0x848]
cmp esi, ebp
je 0x42cca9
push esi
call edi
add esp, 4
test eax, eax
jbe 0x42cca9
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.00433280
lea ecx, [esp + 0x44]
push ecx
call fcn.004339c0
mov eax, dword [esp + 0x86c]
lea edx, [esp + 0x48]
push edx
push eax
call fcn.004d18f0
add esp, 0x30
test eax, eax
je 0x42cca9
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
push 0x4f15ac
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 0x42cb49
lea ecx, [esp + 0x228]
push ebp
push ecx
call fcn.00433100
add esp, 8
test eax, eax
jne 0x42cb70
push 0x4f15a4
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 0x42cca9
lea edx, [esp + 0x228]
push 0
push edx
call fcn.00433100
add esp, 8
test eax, eax
je 0x42cca9
test ebp, ebp
jne 0x42cbb2
lea eax, [esp + 0x20]
push eax
call fcn.0042ced0
add esp, 4
test eax, eax
je 0x42cca9
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.0042c940
test eax, eax
je 0x42cca9
cmp dword [esp + 0x14], 1
jne 0x42cca9
mov eax, dword [0x5e2760]
test eax, eax
je 0x42cc2f
mov ecx, ebp
call fcn.0042c190
test eax, eax
jne 0x42cc2f
lea ecx, [esp + 0x20]
push esi
push ecx
mov ecx, ebp
call fcn.0042ccc0
test eax, eax
je 0x42cc98
push esi
push 0
mov ecx, ebp
call fcn.00424910
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x830
ret 8
mov dx, word [0x50b180]
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 0x50b3fc
push 0x4ef9e0
lea eax, [esp + 0x43c]
push 0x103
push eax
call ebx
lea ecx, [esp + 0x444]
push ecx
call fcn.004339c0
lea edx, [esp + 0x448]
push 1
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00434270
add esp, 0x24
test eax, eax
je 0x42cc98
jmp 0x42cc18
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