Function at 0x408d2a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp dword [ebp + 0xc], 1
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x408d4e
test ebx, ebx
je 0x408d8e
push dword [ebx]
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [ebp + 0xc], 0x112
jne 0x408d8e
cmp dword [ebp + 0x10], 1
jne 0x408d8e
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push edi
call esi
push 0
push 0x405985
push edi
push 0x72
push dword [0x4825fc]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 1
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x408e02
push edi
call fcn.0040817a
mov esi, eax
pop ecx
test esi, esi
jne 0x408da1
mov esi, dword [0x4823ac]
test byte [0x48260f], 0x80
je 0x408dc8
xor eax, eax
test esi, esi
je 0x408db3
mov eax, dword [esi + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00427fd2
add esp, 0x14
test eax, eax
jne 0x408e02
test esi, esi
jne 0x408dec
cmp dword [0x48261c], esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
je 0x408de4
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x408e02
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x408e02
cmp dword [ebp + 0xc], 0x14
jne 0x408e09
cmp byte [esi + 0xac], 0
jne 0x40904f
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 0x402
jne 0x408e59
test byte [esi + 0x13], 0x80
je 0x40904f
xor ebx, ebx
cmp dword [esi + 0x7c], ebx
jle 0x40904f
push ebx
lea ecx, [esi + 0x70]
call fcn.00421fff
mov edi, eax
cmp dword [edi + 8], 0xc
jne 0x408e53
mov eax, dword [ebp + 0x14]
cmp dword [edi + 0x10], eax
jne 0x408e53
push dword [ebp + 0x10]
mov ecx, dword [edi + 0x50]
call fcn.0042263f
mov ecx, dword [edi + 0x50]
call fcn.004224c5
inc ebx
cmp ebx, dword [esi + 0x7c]
jl 0x408e27
cmp dword [ebp + 0xc], 0xf
jne 0x408e9b
test byte [esi + 0x13], 0x80
je 0x40904f
xor edi, edi
cmp dword [esi + 0x7c], edi
jle 0x40904f
lea ebx, [esi + 0x70]
push edi
mov ecx, ebx
call fcn.00421fff
cmp dword [eax + 8], 0xc
jne 0x408e95
push edi
mov ecx, ebx
call fcn.00421fff
mov ecx, dword [eax + 0x50]
call fcn.004224c5
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x408e77
mov edi, 0x133
cmp dword [ebp + 0xc], edi
jne 0x408eea
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00407539
mov ebx, eax
test ebx, ebx
je 0x40904f
mov eax, dword [ebx + 8]
cmp eax, 5
je 0x408eca
cmp eax, 6
jne 0x40949f
push dword [ebx + 0x24]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 0x2c]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [ebx + 0x54]
jmp 0x408e02
mov eax, dword [ebp + 0xc]
mov ebx, 0x134
cmp eax, ebx
jne 0x408f49
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00407539
mov edi, eax
test edi, edi
je 0x40904f
cmp dword [edi + 8], 7
jne 0x408f36
cmp dword [edi + 0x54], 0
je 0x408f36
push dword [edi + 0x24]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [edi + 0x2c]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [edi + 0x54]
jmp 0x408e02
push dword [ebp + 0x14]
cmp dword [0x48261c], 0
push dword [ebp + 0x10]
push ebx
jmp 0x4094ad
cmp eax, 0x138
jne 0x408f91
cmp byte [esi + 0xac], 0
lea eax, [esi + 0xac]
jne 0x408f62
mov byte [eax], 1
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00407539
mov edi, eax
test edi, edi
je 0x40904f
push dword [edi + 0x24]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [edi + 8]
cmp eax, 5
je 0x408f22
cmp eax, 6
je 0x408f22
jmp 0x408fb8
cmp eax, 0x135
jne 0x408fc8
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00407539
mov edi, eax
test edi, edi
je 0x40904f
push dword [edi + 0x24]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetBkMode]
jmp 0x408f2e
cmp eax, 0x2b
jne 0x408ffb
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00407571
test eax, eax
je 0x40904f
cmp dword [eax + 8], 2
jne 0x40904f
mov ecx, dword [eax]
and ecx, 0xb
cmp cl, 0xb
jne 0x40904f
push dword [ebp + 0x14]
mov ecx, esi
push eax
call fcn.00407d54
jmp 0x408e02
cmp eax, 0x201
jne 0x40904f
test byte [esi + 0x9c], 2
lea ecx, [esi + 0x9c]
je 0x40904f
mov edx, dword [esi + 0x98]
lea eax, [esi + 0x98]
xor edi, edi
cmp edx, edi
je 0x40904f
cmp dword [edx + 8], 2
jne 0x409036
and dword [ecx], 0xfffffff9
mov ecx, dword [eax]
and dword [ecx + 0x60], 0xfffffffe
mov dword [eax], edi
jmp 0x40904f
push 3
push edi
push edi
lea ecx, [edx + 0x44]
call fcn.0041ff07
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test byte [esi + 0x9c], 1
mov ebx, 0x200
je 0x4090ec
cmp dword [ebp + 0xc], 0x20
jne 0x4090ec
mov eax, dword [ebp + 0x14]
shr eax, 0x10
cmp ax, bx
jne 0x409282
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], eax
je 0x409282
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00407539
mov edi, eax
test edi, edi
je 0x409282
push 0xfffffffffffffff0
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
jne 0x409282
cmp dword [edi + 8], 2
jne 0x409282
mov eax, dword [edi]
and eax, 0xb
cmp al, 0xb
jne 0x409282
test byte [edi + 0x60], 1
jne 0x409282
or dword [esi + 0x9c], 6
push 1
mov dword [esi + 0x98], edi
or dword [edi + 0x60], 1
push edi
mov ecx, esi
call fcn.00408ca8
cmp dword [ebp + 0xc], ebx
jne 0x40927a
test byte [esi + 0x9c], 1
je 0x4093fe
mov eax, dword [ebp + 0x14]
movzx ecx, ax
shr eax, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x98]
xor ecx, ecx
cmp eax, ecx
je 0x409129
cmp dword [eax + 8], 2
je 0x409129
mov byte [ebp - 1], 1
jmp 0x40912d
and byte [ebp - 1], 0
and dword [esi + 0x9c], 0xfffffff9
mov dword [esi + 0x98], ecx
cmp dword [esi + 0x7c], ecx
mov dword [ebp - 8], ecx
jle 0x409257
push dword [ebp - 8]
lea ecx, [esi + 0x70]
call fcn.00421fff
mov edi, eax
push 0xfffffffffffffff0
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
jne 0x409248
xor ebx, ebx
cmp dword [edi + 0x44], ebx
ja 0x409187
cmp dword [edi + 8], 2
jne 0x409248
mov eax, dword [edi]
and eax, 0xb
cmp al, 0xb
jne 0x409248
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x409248
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
push dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
add edx, eax
mov eax, dword [edi + 0x20]
push dword [ebp - 0x10]
add eax, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x409219
or dword [esi + 0x9c], 2
mov dword [esi + 0x98], edi
mov eax, dword [edi + 8]
cmp eax, 2
je 0x409210
mov ecx, dword [edi + 0x24]
cmp ecx, dword [edi + 0x28]
jne 0x40920b
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [edi + 0x24]
mov dword [edi + 0x24], 0xff
mov dword [edi + 0x28], eax
push ebx
push ebx
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x409248
cmp eax, 2
jne 0x409248
or dword [esi + 0x9c], 4
jmp 0x409248
mov ecx, dword [edi + 8]
cmp ecx, 2
je 0x409233
mov eax, dword [edi + 0x28]
cmp dword [edi + 0x24], eax
je 0x40922e
mov dword [edi + 0x24], eax
jmp 0x4091fe
cmp ecx, 2
jne 0x409248
mov eax, dword [edi + 0x60]
test al, 1
je 0x409248
and al, 0xfe
push ebx
push edi
mov ecx, esi
mov dword [edi + 0x60], eax
call fcn.00408ca8
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x7c]
jl 0x409146
cmp dword [esi + 0x98], 0
jne 0x4093fe
cmp byte [ebp - 1], 0
je 0x4093fe
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x20
jne 0x4092a9
mov eax, dword [esi + 0x9c]
test al, 2
je 0x4093fe
test al, 4
jne 0x4093fe
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x408dff
cmp ecx, 0x113
jne 0x4093af
cmp dword [ebp + 0x10], 0xd
jne 0x409426
test byte [esi + 0x9c], 2
je 0x409426
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
and byte [ebp - 1], 0
and dword [ebp - 8], 0
cmp dword [esi + 0x7c], 0
jle 0x409399
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 8]
lea ecx, [esi + 0x70]
call fcn.00421fff
mov edi, eax
cmp dword [edi + 0x44], 0
jbe 0x40933b
mov eax, dword [edi + 0x24]
cmp eax, dword [edi + 0x28]
je 0x40933b
lea eax, [ebp - 0x20]
push eax
push dword [edi + 0x50]
call ebx
push dword [ebp - 0xc]
lea eax, [ebp - 0x20]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x40937c
mov eax, dword [edi + 0x28]
push 0
push 0
mov dword [edi + 0x24], eax
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x409380
cmp dword [edi + 8], 2
jne 0x409380
mov eax, dword [edi]
and eax, 0xb
cmp al, 0xb
jne 0x409380
test byte [edi + 0x60], 1
je 0x409380
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x50]
call ebx
push dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x40937c
and dword [edi + 0x60], 0xfffffffe
push eax
push edi
mov ecx, esi
call fcn.00408ca8
jmp 0x409380
mov byte [ebp - 1], 1
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x7c]
jl 0x4092ee
cmp byte [ebp - 1], 0
jne 0x409426
push dword [esi + 0xa4]
and dword [esi + 0x9c], 0xfffffff9
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0xc]
mov eax, 0x111
cmp ecx, eax
jne 0x4093df
mov ecx, esi
call fcn.00409815
lea eax, [ebp - 1]
and byte [ebp - 1], 0
push eax
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00408ad6
cmp byte [ebp - 1], 0
je 0x409426
jmp 0x408e02
cmp ecx, 0x10
je 0x409413
cmp ecx, 0x110
je 0x409426
cmp ecx, 0x4e
je 0x409426
cmp ecx, 0xf
je 0x409426
cmp ecx, 0x113
je 0x409426
push dword [ebp + 0x14]
cmp dword [0x48261c], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jmp 0x4094ad
push 0
push 2
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x408e02
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, 0xf
je 0x40948a
sub eax, 0x3f
je 0x40947b
sub eax, 0xc2
je 0x409469
dec eax
je 0x40945a
push dword [ebp + 0x14]
dec eax
dec eax
mov eax, dword [esi]
push dword [ebp + 0x10]
je 0x409453
push edi
mov ecx, esi
call dword [eax + 0xc]
jmp 0x409497
mov ecx, esi
call dword [eax + 0x18]
jmp 0x409497
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0x10]
call dword [eax + 4]
jmp 0x409497
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [eax + 8]
jmp 0x409497
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0x10]
call dword [eax + 0x10]
jmp 0x409497
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0x10]
call dword [eax + 0x14]
test al, al
jne 0x408dff
push dword [ebp + 0x14]
cmp dword [0x48261c], 0
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
jmp 0x408dda