Function at 0x412020
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1040
call fcn.00413370
push ebx
push esi
mov esi, dword [esp + 0x1050]
xor ebx, ebx
cmp word [esi], bx
je 0x412286
push esi
call fcn.00418683
pop ecx
cmp eax, 0x7f6
jae 0x412286
push edi
push 0x3c
pop edi
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00414440
mov cl, byte [esp + 0x1064]
add esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0x1c0
test cl, cl
je 0x412082
mov dword [esp + 0x14], 0x5c0
movzx edx, word [esi]
lea edi, [esi + 2]
push ebp
push 0x22
pop ebp
cmp dx, bp
je 0x412093
mov edi, esi
mov dword [esp + 0x24], edi
mov eax, ebx
test dx, dx
je 0x4120d4
mov edx, esi
mov dword [esp + 0x10], 0x20
cmp word [edx], bp
je 0x412237
mov edx, dword [esp + 0x10]
cmp word [esi + eax*2], dx
je 0x412250
cmp word [esi + eax*2 + 2], 0x2f
je 0x412250
inc eax
lea edx, [esi + eax*2]
cmp word [edx], bx
jne 0x4120a8
mov eax, dword [esp + 0x28]
pop ebp
test eax, eax
je 0x4120e2
cmp word [eax], bx
jne 0x4120f7
test cl, cl
jne 0x4120f7
cmp word [0x44fa72], bx
je 0x4120f7
mov dword [esp + 0x24], 0x44fa72
push edi
mov dword [esp + 0x30], 1
call fcn.00403252
mov edi, eax
test edi, edi
je 0x412122
push str..inf
push edi
call fcn.00407b7c
test eax, eax
jne 0x412122
mov dword [esp + 0x1c], 0x429020
push dword [esp + 0x20]
call fcn.00402520
test al, al
je 0x41214a
push 0x800
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x28]
call fcn.00402ff8
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412285
mov esi, dword [esp + 0x1050]
cmp byte [0x44da68], bl
jne 0x41217d
cmp byte [esp + 0x1058], bl
jne 0x41217d
cmp byte [0x463309], bl
je 0x4121ec
test esi, esi
je 0x412196
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x412196
push ebx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov bl, 1
push 0x7d0
push dword [esp + 0x4c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [esp + 0x48]
call fcn.004124b4
cmp byte [0x463309], 0
je 0x4121ec
cmp byte [esp + 0x1058], 0
jne 0x4121ec
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4121ec
mov eax, dword [esp + 0xc]
cmp eax, dword [0x46330c]
jbe 0x4121e5
mov dword [0x46330c], eax
mov byte [0x46330a], 1
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x412209
push str..exe
push edi
call fcn.00407b7c
test eax, eax
je 0x41226d
cmp byte [0x44da68], 0
mov al, byte [esp + 0x1058]
je 0x412274
test al, al
jne 0x412274
cmp byte [0x463309], al
jne 0x412274
mov dword [0x463310], 0x1b58
jmp 0x412274
cmp word [esi + eax*2], bp
je 0x412243
inc eax
cmp word [esi + eax*2], bx
jne 0x412231
jmp 0x4120b1
mov edx, dword [esp + 0x10]
mov word [esi + eax*2], dx
jmp 0x4120b5
mov ebp, dword [esp + 0x10]
cmp word [esi + eax*2], bp
jne 0x412260
xor edx, edx
mov word [esi + eax*2], dx
inc eax
lea eax, [esi + eax*2]
mov dword [esp + 0x28], eax
jmp 0x4120d8
mov al, byte [esp + 0x1058]
test bl, bl
je 0x412285
test al, al
je 0x412285
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add esp, 0x1040
ret 0xc