Function at 0x42ca10
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 0x42ccb9
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push eax
call edi
add esp, 4
test eax, eax
jbe 0x42ccb9
mov esi, dword [esp + 0x848]
cmp esi, ebp
je 0x42ccb9
push esi
call edi
add esp, 4
test eax, eax
jbe 0x42ccb9
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.00433090
lea ecx, [esp + 0x44]
push ecx
call fcn.004337d0
mov eax, dword [esp + 0x86c]
lea edx, [esp + 0x48]
push edx
push eax
call fcn.004cf360
add esp, 0x30
test eax, eax
je 0x42ccb9
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
push 0x4eb5b4
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 0x42cb59
lea ecx, [esp + 0x228]
push ebp
push ecx
call fcn.00432f10
add esp, 8
test eax, eax
jne 0x42cb80
push 0x4eb5ac
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 0x42ccb9
lea edx, [esp + 0x228]
push 0
push edx
call fcn.00432f10
add esp, 8
test eax, eax
je 0x42ccb9
test ebp, ebp
jne 0x42cbc2
lea eax, [esp + 0x20]
push eax
call fcn.0042cee0
add esp, 4
test eax, eax
je 0x42ccb9
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.0042c950
test eax, eax
je 0x42ccb9
cmp dword [esp + 0x14], 1
jne 0x42ccb9
mov eax, dword [0x5dc170]
test eax, eax
je 0x42cc3f
mov ecx, ebp
call fcn.0042c1a0
test eax, eax
jne 0x42cc3f
lea ecx, [esp + 0x20]
push esi
push ecx
mov ecx, ebp
call fcn.0042ccd0
test eax, eax
je 0x42cca8
push esi
push 0
mov ecx, ebp
call fcn.00424900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x830
ret 8
mov dx, word [0x505000]
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 0x50527c
push 0x4e99e8
lea eax, [esp + 0x43c]
push 0x103
push eax
call ebx
lea ecx, [esp + 0x444]
push ecx
call fcn.004337d0
lea edx, [esp + 0x448]
push 1
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00434060
add esp, 0x24
test eax, eax
je 0x42cca8
jmp 0x42cc28
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