Function at 0x40e906
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b8d80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4eb664]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb664]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
jne 0x40ec52
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x40e979
push ecx
push ecx
push ecx
push ecx
mov ecx, ebx
call fcn.0040f082
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x40ec54
cmp eax, 0x138
jne 0x40e9b0
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0x41a
je 0x40e9a1
mov eax, dword [ebx + 0x20]
jmp 0x40e9a3
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, edi
jmp 0x40ec54
cmp eax, 0x201
jne 0x40e9c3
sub esp, 0x10
mov ecx, ebx
call fcn.00410cb6
jmp 0x40e96f
cmp eax, 0x20
jne 0x40e9d4
sub esp, 0x10
mov ecx, ebx
call fcn.00410d8a
jmp 0x40e96f
cmp eax, 0x111
jne 0x40ec04
xor edi, edi
inc edi
cmp di, si
jne 0x40ea3d
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40ec52
xor esi, esi
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebx + 0x5dc], esi
je 0x40ea28
push 0x430
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x40ea28
mov ecx, ebx
mov dword [ebx + 0x5dc], esi
call fcn.00410ead
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
jmp 0x40e9a9
push 2
pop eax
cmp ax, si
jne 0x40ea62
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40ec52
sub esp, 0x10
mov ecx, ebx
call fcn.004115a4
jmp 0x40e9a3
mov eax, 0x424
cmp ax, si
jne 0x40ea89
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40ec52
sub esp, 0x10
mov ecx, ebx
call fcn.00411b6a
jmp 0x40e9a3
mov eax, 0x430
cmp ax, si
jne 0x40eae9
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40ec52
xor esi, esi
push esi
push esi
push 0xf0
push dword [ebx + 0x220]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push dword [ebx + 4]
cmp eax, edi
jne 0x40eacb
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4d557c
jmp 0x40ead6
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4d45dc
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, ebx
call fcn.00411bfe
jmp 0x40ea32
mov eax, 0x400
cmp ax, si
jne 0x40eb10
shr esi, 0x10
mov eax, 0x100
cmp ax, si
jne 0x40ec52
mov ecx, dword [esp + 0x10]
and dword [ecx], 0
jmp 0x40e9a9
mov eax, 0x401
cmp ax, si
je 0x40eaf3
push 3
pop eax
cmp ax, si
jne 0x40eb66
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40ec52
push 5
xor esi, esi
push esi
push esi
lea eax, [ebx + 0x344]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
push 0xf5
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ea32
mov eax, 0x42f
cmp ax, si
jne 0x40eb8d
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40ec52
sub esp, 0x10
mov ecx, ebx
call fcn.00411e18
jmp 0x40e9a3
mov eax, 0x40e
cmp ax, si
jne 0x40ebb4
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40ec52
sub esp, 0x10
mov ecx, ebx
call fcn.00411e96
jmp 0x40e9a3
mov eax, 0x3f1
cmp ax, si
jne 0x40ebdb
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40ec52
sub esp, 0x10
mov ecx, ebx
call fcn.00411f14
jmp 0x40e9a3
mov eax, 0x432
cmp ax, si
jne 0x40ec52
shr esi, 0x10
xor eax, eax
cmp ax, si
jne 0x40ec52
push eax
push dword [ebx + 4]
mov dword [ebx + 0x5e4], edi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40eb04
cmp eax, 0x14
jne 0x40ec52
mov eax, dword [ebx + 0x18]
and dword [esp + 0x18], 0
mov dword [eax + 0x20], 1
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebx + 0x20]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x10]
and dword [ecx], 0
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x20], 0
jne 0x40e971
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0048f059
mov esp, ebp
pop ebp
ret 0x18