Function at 0x445990
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
push 0x407ca0
mov dword [ebp - 0xc], edx
xor ebx, ebx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x445a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4459ca
movzx ebx, bx
or ebx, 0x80070000
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x445ba9
test byte [eax + 0x1c], 1
je 0x445ba9
cmp byte [eax + 0x19], 2
jb 0x445ba9
call fcn.00411040
push eax
mov eax, dword [0x46a020]
mov edx, 0x407ea8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
pop ecx
call fcn.004110b1
jmp 0x445ba9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x407cbc
push eax
call esi
push 0x407cdc
push dword [ebp - 4]
mov edi, eax
mov dword [ebp - 8], edi
call esi
mov dword [ebp - 0x18], eax
test edi, edi
je 0x445b65
test eax, eax
je 0x445b65
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x70], esi
lea edi, [ebp - 0x28]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 8]
test eax, eax
je 0x445b28
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x10
push 1
push ebx
push ebx
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, 0x46a020
test eax, eax
jne 0x445ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x445aa8
movzx ebx, bx
or ebx, 0x80070000
mov eax, dword [0x46a020]
cmp eax, edi
je 0x445af0
test byte [eax + 0x1c], 1
je 0x445af0
cmp byte [eax + 0x19], 2
jb 0x445af0
push esi
push ecx
call fcn.00411040
pop ecx
push eax
mov eax, dword [0x46a020]
mov edx, 0x407ea8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.0041d606
jmp 0x445af0
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x14]
call dword [ebp - 0x18]
test eax, eax
jne 0x445ba0
mov eax, dword [0x46a020]
cmp eax, edi
je 0x445b5e
test byte [eax + 0x1c], 1
je 0x445b5e
cmp byte [eax + 0x19], 2
jb 0x445b5e
call fcn.00411040
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
jmp 0x445b53
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x445b5e
test byte [eax + 0x1c], 1
je 0x445b5e
cmp byte [eax + 0x19], 2
jb 0x445b5e
call fcn.00411040
push eax
mov eax, dword [0x46a020]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
mov edx, 0x407ea8
pop ecx
call fcn.004110b1
mov ebx, 0x80004005
jmp 0x445ba0
mov ebx, 0x80004005
mov eax, dword [0x46a020]
cmp eax, 0x46a020
je 0x445ba0
test byte [eax + 0x1c], 1
je 0x445ba0
cmp byte [eax + 0x19], 2
jb 0x445ba0
call fcn.00411040
push eax
mov eax, dword [0x46a020]
mov edx, 0x407ea8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.004110b1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret