Function at 0x403630
Capabilities:
Check if file exists
Copy file
Create a process with modified i/o handles and window
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47047b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x6bc
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.0044b130
add esp, 0xc
mov dword [ebp - 0x6b4], 0
lea eax, [ebp - 0x6b4]
mov dword [ebp - 0x64c], 1
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallXXPic
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4036fa
lea eax, [ebp - 0x668]
mov dword [ebp - 0x668], 0x20a
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x64c]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x6b4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x6b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4039f6
push 0x20a
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x654], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x650], 7
mov word [ebp - 0x664], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403760
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x664]
call fcn.00407ef0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x664]
push dword [ebp - 0x64c]
cmp dword [ebp - 0x650], 8
mov esi, dword [ebp - 0x654]
mov edx, esi
cmovae ecx, dword [ebp - 0x664]
push 1
push 0x487e58
push 0xffffffffffffffff
call fcn.00409050
add esp, 0x10
mov dword [ebp - 0x6bc], 0
mov dword [ebp - 0x6b8], 7
lea ecx, [eax + 1]
xor eax, eax
mov word [ebp - 0x6cc], ax
cmp esi, ecx
jb 0x403a13
mov eax, esi
sub eax, ecx
cmp eax, esi
cmovb esi, eax
cmp dword [ebp - 0x650], 8
lea eax, [ebp - 0x664]
cmovae eax, dword [ebp - 0x664]
push esi
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x6cc]
call fcn.00407ef0
lea eax, [ebp - 0x6cc]
push eax
lea ecx, [ebp - 0x664]
call fcn.00406740
mov edx, dword [ebp - 0x6b8]
cmp edx, 8
jb 0x403863
mov ecx, dword [ebp - 0x6cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403859
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a18
push edx
push ecx
call fcn.00444954
add esp, 8
cmp dword [ebp - 0x650], 8
lea eax, [ebp - 0x664]
cmovae eax, dword [ebp - 0x664]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4039b6
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4039b6
push 0x20a
lea eax, [ebp - 0x648]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push str.__s___temp1__frominst__s1
push 0xffffffffffffffff
lea eax, [ebp - 0x648]
push 0x104
push eax
call fcn.004015b0
add esp, 0x14
mov dword [ebp - 0x6b0], 0x44
xor eax, eax
mov dword [ebp - 0x684], 0x101
mov word [ebp - 0x66e], ax
xorps xmm0, xmm0
mov eax, 1
movlpd qword [ebp - 0x6ac], xmm0
mov word [ebp - 0x680], ax
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x6b0]
movlpd qword [ebp - 0x6a4], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x648]
movlpd qword [ebp - 0x69c], xmm0
push eax
push 0
movlpd qword [ebp - 0x694], xmm0
movlpd qword [ebp - 0x68c], xmm0
movlpd qword [ebp - 0x67e], xmm0
movlpd qword [ebp - 0x676], xmm0
movups xmmword [ebp - 0x6c4], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4039b6
push 0x7530
push dword [ebp - 0x6c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x6c0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x6c4]
call esi
mov esi, 1
jmp 0x4039b8
xor esi, esi
mov edx, dword [ebp - 0x650]
cmp edx, 8
jb 0x4039f4
mov ecx, dword [ebp - 0x664]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4039ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a1d
push edx
push ecx
call fcn.00444954
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00408c70
call fcn.004538a3
call fcn.004538a3
int3