Function at 0x475e90
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x475e99
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404930
mov eax, dword [ebp - 8]
call fcn.00404930
xor eax, eax
push ebp
push 0x4761a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x320]
call fcn.0043e5fc
mov eax, dword [ebp - 0xc]
call fcn.00404748
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
jne 0x475f03
mov eax, dword [ebp - 0xc]
call fcn.00404748
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 1
call fcn.004049e0
mov dl, 1
mov eax, dword [0x419d10]
call fcn.004036f4
mov ebx, eax
mov eax, dword [esi + 0x360]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x475f94
lea eax, [ebp - 0x119]
push eax
push 0
push 0x4761b0
lea eax, [ebp - 0x120]
mov ecx, 0x4761c0
mov edx, dword [ebp - 0xc]
call fcn.00404794
mov eax, dword [ebp - 0x120]
call fcn.00404940
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.004046f8
lea ecx, [ebp - 0x124]
mov edx, 0x4761cc
mov eax, 0x80000001
call fcn.0047423c
mov edx, dword [ebp - 0x124]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
cmp dword [ebp - 4], 0
je 0x476118
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404794
mov eax, dword [ebp - 0x128]
call fcn.00408ea8
test al, al
je 0x476118
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x12c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404794
mov edx, dword [ebp - 0x12c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404528
mov al, byte [0x4761e8]
push eax
lea eax, [ebp - 0x130]
push eax
mov ecx, 0x4761f4
mov edx, 0x4761c0
mov eax, dword [ebp - 0x10]
call fcn.0040d73c
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x10]
call fcn.00404528
mov al, byte [0x4761e8]
push eax
lea eax, [ebp - 0x134]
push eax
lea edx, [ebp - 0x138]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x10]
mov edx, 0x476200
call fcn.0040d73c
mov edx, dword [ebp - 0x134]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x119]
push eax
push 0
push 0x476208
lea eax, [ebp - 0x13c]
mov ecx, 0x4761c0
mov edx, dword [ebp - 0xc]
call fcn.00404794
mov eax, dword [ebp - 0x13c]
call fcn.00404940
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.004046f8
mov edx, dword [ebp - 0x140]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
push 0
push 0x476214
lea eax, [ebp - 0x148]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.004046f8
push dword [ebp - 0x148]
push 0x47622c
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00404808
mov eax, dword [ebp - 0x144]
call fcn.00404940
push eax
call sub.kernel32.dll_WinExec
lea eax, [ebp - 0x14c]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.004046f8
mov eax, dword [ebp - 0x14c]
call fcn.00408fc0
mov eax, ebx
call fcn.00403724
mov eax, dword [esi + 0x360]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x476175
mov eax, dword [ebp - 0x14]
call fcn.00408ea8
test al, al
je 0x476175
push 0
push 0x476214
push dword [ebp - 0x14]
push 0x47622c
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.00404808
mov eax, dword [ebp - 0x150]
call fcn.00404940
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 0x14]
call fcn.00408fc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4761a7
lea eax, [ebp - 0x150]
mov edx, 0xd
call fcn.004044b4
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004044b4
ret