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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [esp + 0x74]
push ebx
push eax
mov dword [esp + 0x28], ecx
call fcn.00422430
xor eax, eax
inc eax
add esp, 0xc
mov dword [esp + 0x9c], eax
mov word [esp + 0xa0], ax
mov al, byte [ebp + 0xc]
mov dword [esp + 0x70], esi
push 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
mov esi, ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [ebp + 0x10]
pop edi
test al, al
je 0x463188
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
call fcn.00409259
cmp dword [ebx + 8], 7
mov dword [esp + 0x2c], eax
jbe 0x4631be
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x1c]
call fcn.00409259
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x1c]
jmp 0x4631a1
cmp dword [ebx + 8], 3
jbe 0x4631d3
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
call fcn.00409259
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
and esi, 0xffff0000
call fcn.00409259
and eax, 0xffff
mov dword [esp + 0x20], eax
mov al, byte [ebp + 0xc]
test al, al
je 0x4631d3
jmp 0x4631c1
mov al, byte [ebp + 0xc]
cmp dword [ebx + 8], 6
jbe 0x4631cf
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
jmp 0x4631de
test al, al
jne 0x4631eb
cmp dword [ebx + 8], edi
jbe 0x4631eb
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 8]
call fcn.00409259
mov word [esp + 0xa0], ax
push 0
pop eax
push 0x10
pop ecx
test esi, 0x10000
cmovne eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov ecx, esi
call fcn.00404c31
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call fcn.00402a3b
cmp byte [ebp + 0xc], 0
je 0x4632d7
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov esi, dword [ecx + 4]
mov ecx, esi
call fcn.00404c31
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.00402a3b
mov ecx, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov esi, dword [ecx + 8]
mov ecx, esi
call fcn.00404c31
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.00402a3b
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov esi, dword [ecx + 0x10]
mov ecx, esi
call fcn.00404c31
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.00402a3b
cmp dword [ebx + 8], 5
mov dword [esp + 0x18], eax
jbe 0x4632a5
mov ecx, dword [ebx + 4]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call fcn.00404c31
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.00402a3b
mov esi, eax
test esi, esi
je 0x4632a5
push esi
call fcn.004223bb
pop ecx
test eax, eax
jne 0x46333d
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
call edi
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420bca
pop ecx
push esi
mov esi, eax
push esi
mov dword [esp + 0x2c], eax
call edi
jmp 0x46333d
mov dword [esp + 0x18], eax
xor eax, eax
inc eax
cmp dword [ebx + 8], eax
jbe 0x46330b
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
mov ecx, esi
call fcn.00404c31
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call fcn.00402a3b
mov esi, eax
test esi, esi
je 0x46330b
push esi
call fcn.004223bb
pop ecx
test eax, eax
jne 0x46336b
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420bca
pop ecx
push eax
push esi
mov dword [esp + 0x2c], eax
call edi
mov esi, dword [esp + 0x24]
cmp byte [ebp + 0xc], 0
je 0x46336b
mov ecx, dword [ebx + 4]
mov edi, 0x49ebf0
mov ecx, dword [ecx]
push edi
call fcn.00408f22
mov ecx, dword [ebx + 4]
push edi
mov ecx, dword [ecx + 4]
call fcn.00408f22
mov ecx, dword [ebx + 4]
push edi
mov ecx, dword [ecx + 8]
call fcn.00408f22
mov edi, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x4c]
call fcn.0044a583
test edi, edi
je 0x4633de
call fcn.0044ac70
xor ecx, ecx
inc ecx
movzx ebx, cl
xor ecx, ecx
cmp eax, 0xffffffff
cmove ebx, ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0xac], eax
call fcn.0044ab69
xor ecx, ecx
movzx ebx, bl
cmp eax, 0xffffffff
cmove ebx, ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0xb0], eax
call fcn.0044abf8
xor ecx, ecx
movzx ebx, bl
cmp eax, 0xffffffff
cmove ebx, ecx
mov dword [esp + 0xa8], eax
test bl, bl
je 0x4633e0
or dword [esp + 0x9c], 0x100
jmp 0x4633e0
xor bl, bl
cmp byte [ebp + 0xc], 0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x74]
push eax
push esi
je 0x46347b
push dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
push dword [esp + 0x28]
push ecx
push dword [esp + 0x44]
push dword [esp + 0x30]
push edi
push dword [esp + 0x34]
call fcn.0043c759
push dword [esp + 0x10]
mov byte [esp + 0x13], al
call fcn.004223bb
pop ecx
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x463431
mov byte [ecx], 0
inc ecx
dec eax
jne 0x46342a
push edi
call fcn.004223bb
pop ecx
mov ecx, edi
test eax, eax
je 0x463445
mov byte [ecx], 0
inc ecx
dec eax
jne 0x46343e
push dword [esp + 0x14]
call fcn.004223bb
pop ecx
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x46345e
mov byte [ecx], 0
inc ecx
dec eax
jne 0x463457
push dword [esp + 0x10]
call fcn.00420c3e
pop ecx
push edi
call fcn.00420c3e
pop ecx
push dword [esp + 0x14]
call fcn.00420c3e
pop ecx
jmp 0x46349c
push 0
push dword [esp + 0x40]
movzx eax, bl
push eax
push 0
push 0
push dword [esp + 0x38]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne byte [esp + 0xf]
push dword [esp + 0x18]
call fcn.00420c3e
pop ecx
push esi
call fcn.00420c3e
cmp byte [esp + 0x13], 0
pop ecx
jne 0x4634f7
mov ebx, dword [esp + 0x1c]
xor eax, eax
inc eax
push 0
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.0044e3f6
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.0040439f
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.0040ee00
xor eax, eax
inc eax
and dword [esi], 0
mov dword [esi + 0xc], eax
jmp 0x46358c
push dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test bl, bl
je 0x463537
lea ecx, [esp + 0x48]
call fcn.0044a7ff
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], eax
call fcn.0044ae7f
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
lea ecx, [esi + 0x488]
call fcn.004635cf
jmp 0x46353b
mov esi, dword [esp + 0x1c]
cmp byte [ebp + 8], 0
je 0x46354d
mov eax, dword [esp + 0x38]
mov dword [esi + 0x470], eax
jmp 0x46358c
mov eax, dword [esp + 0x40]
mov esi, dword [ebp + 0x14]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov ecx, esi
addsd xmm0, qword [eax*8 + 0x4b7590]
movsd qword [esp + 0x30], xmm0
call fcn.0040ee00
movsd xmm0, qword [esp + 0x30]
push dword [esp + 0x38]
mov dword [esi + 0xc], 3
movsd qword [esi], xmm0
call edi
lea ecx, [esp + 0x48]
call fcn.0044a61f
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10