Function at 0x10045680
Capabilities:
Create process on windows

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 0x10181bf3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [0x101e40b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], edx
mov esi, ecx
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x130], edi
test edi, edi
je 0x100456dc
mov dword [edi], 0
cmp dword [esi + 0x10], 0
jne 0x100456e9
xor al, al
jmp 0x10045ae7
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.1003f320
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.10031f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 8
mov edx, 0x101aead0
cmovae ecx, dword [ebp - 0x8c]
call fcn.100308b0
test al, al
je 0x10045928
xor eax, eax
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov word [ebp - 0x96], ax
mov eax, 1
mov dword [ebp - 0x18], 0
mov word [ebp - 0xa8], ax
xor eax, eax
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movlpd qword [ebp - 0xc4], xmm0
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xa6], xmm0
movlpd qword [ebp - 0x9e], xmm0
movups xmmword [ebp - 0xe8], xmm0
mov dword [ebp - 0xd8], 0x44
mov dword [ebp - 0xac], 0x81
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
push 0x104
call fcn.10009090
push 1
push 0x101aec84
lea ecx, [ebp - 0x2c]
call fcn.100056d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10045803
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.10008ba0
push 1
push 0x101aec84
lea ecx, [ebp - 0x2c]
call fcn.10008ba0
mov eax, dword [ebp - 0x12c]
cmp dword [eax + 0x10], 0
je 0x10045855
push 1
push 0x101b367c
lea ecx, [ebp - 0x2c]
call fcn.10008ba0
mov eax, dword [ebp - 0x12c]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10045849
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10008ba0
cmp dword [ebp - 0x34], 0
jne 0x1004585f
xor eax, eax
jmp 0x1004586a
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edx, esi
cmovae ecx, dword [ebp - 0x2c]
cmp dword [esi + 0x14], 8
jb 0x1004587f
mov edx, dword [esi]
lea edi, [ebp - 0xe8]
push edi
lea edi, [ebp - 0xd8]
push edi
push eax
push 0
push 0x30
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [ebp - 0x130]
test eax, eax
je 0x1004591c
mov eax, dword [ebp - 0xe4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100458c7
push eax
call esi
mov dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe8]
test eax, eax
jne 0x100458e3
mov byte [ebp - 0x125], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
jmp 0x10045abe
test edi, edi
je 0x100458fc
mov dword [edi], eax
mov byte [ebp - 0x125], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
jmp 0x10045abe
push eax
call esi
mov dword [ebp - 0xe8], 0
mov byte [ebp - 0x125], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
jmp 0x10045abe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10005660
push 4
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x5c]
push str.open
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
call fcn.100056d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
push dword [ebp - 0x12c]
call fcn.10005590
mov byte [ebp - 4], 5
xorps xmm0, xmm0
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
movlpd qword [ebp - 0x104], xmm0
cmovae eax, dword [ebp - 0x5c]
cmp dword [esi + 0x14], 8
movlpd qword [ebp - 0xfc], xmm0
movlpd qword [ebp - 0xf4], xmm0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0x124], 0x3c
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0x100540
mov dword [ebp - 0x118], eax
jb 0x100459cb
mov esi, dword [esi]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0xb
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x60], 8
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
mov dword [ebp - 0x110], eax
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push str.Shell32.dll
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.100056d0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
push eax
call fcn.10043970
mov ecx, eax
call fcn.10043a30
mov esi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.10005660
test esi, esi
je 0x10045aa4
push 0x101b3bf4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10045aa4
lea ecx, [ebp - 0x124]
push ecx
call eax
test eax, eax
je 0x10045aa4
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x10045aa4
test edi, edi
je 0x10045a8a
mov dword [edi], eax
mov byte [ebp - 0x125], 1
jmp 0x10045aab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xec], 0
mov byte [ebp - 0x125], 1
jmp 0x10045aab
mov byte [ebp - 0x125], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.10005660
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.10005660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.10005660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.10005660
mov al, byte [ebp - 0x125]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10177d47
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret