Function at 0x40cb70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x20c], edx
push ebx
mov ebx, 1
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x208], ecx
push edi
mov edi, dword [ebp + 8]
cmp eax, 0x110
ja 0x40cc5d
je 0x40cbea
cmp eax, 6
je 0x40cbd6
cmp eax, 0x10
je 0x40cbe3
cmp eax, 0x4e
jne 0x40cc72
mov eax, dword [esi]
push edx
push ecx
push edi
mov ecx, esi
call dword [eax + 0x1c]
mov ebx, eax
jmp 0x40cded
xor eax, eax
test ecx, ecx
cmove edi, eax
mov dword [0x42935c], edi
xor ebx, ebx
jmp 0x40cded
push 0xfffffffffffffffa
push edi
mov dword [esi + 4], edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp - 0x20c]
mov dword [esi + 0x10], eax
mov ecx, esi
push dword [ebp - 0x208]
mov eax, dword [esi]
push edi
call dword [eax + 8]
push 0xc9
push dword [esi + 0x24]
mov ebx, eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x429378], eax
test eax, eax
je 0x40cc47
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push edi
call esi
push dword [0x429378]
push 0
push 0x80
push edi
call esi
test ebx, ebx
je 0x40cded
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40cded
cmp eax, 0x111
je 0x40ccab
cmp eax, 0x31a
je 0x40cc9e
cmp eax, 0x484
je 0x40cc87
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0x484
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40cded
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x44]
jmp 0x40cded
movzx eax, cx
cmp eax, 9
jg 0x40cd90
je 0x40cd45
dec eax
je 0x40cd02
dec eax
jne 0x40cded
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x429378]
test eax, eax
je 0x40cce8
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x429378], 0
push 0
push 0x962
push 0x111
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40cded
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x34]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x429378]
test eax, eax
je 0x40cd2b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x429378], 0
push 0
push 0x961
push 0x111
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40cded
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.00418440
mov ecx, dword [esi + 0x20]
lea edx, [ebp - 0x204]
add esp, 8
call fcn.00404010
add esp, 4
lea eax, [ebp - 0x204]
push 5
push 0
push 0
push eax
push 0x4245e0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40cded
cmp eax, 0x4b0
je 0x40cdc6
cmp eax, 0x964
jne 0x40cded
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x40cdaf
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x4c]
jmp 0x40cded
push 0
push 0x965
push 0x111
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40cded
push 0x4b0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40cded
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x48]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f324
mov esp, ebp
pop ebp
ret 0x10