Function at 0x407dfa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp byte [0x41e0e8], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x407e18
xor al, al
jmp 0x408303
mov eax, dword [ebp + 0xc]
and byte [ebp - 1], 0
sub eax, 0x2b
mov byte [0x41e0e8], 1
je 0x407fee
dec eax
je 0x407fd0
sub eax, 0xe5
jne 0x4082f9
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cmp ax, 2
mov dword [ebp + 0xc], eax
jne 0x407ebc
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebx + 0x40]
jne 0x407ebc
xor edi, edi
cmp dword [ebx + 0x4c], edi
je 0x407ebe
push edi
mov ecx, ebx
call fcn.00408481
mov esi, eax
cmp esi, edi
je 0x407ebe
cmp dword [esi + 0x1c], 9
jne 0x407ebe
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x40]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebx + 8]
inc eax
inc eax
cmp dword [ebp - 0xc], eax
jl 0x407ebe
push 1
push edi
push edi
lea ecx, [esi + 8]
call fcn.004051f3
push eax
push 0x419f50
push dword [ebx + 0x40]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
mov byte [ebp - 1], 1
jmp 0x407ebe
xor edi, edi
cmp word [ebp + 0xc], 1
jne 0x407ed4
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebx + 0x40]
jne 0x407ed4
mov ecx, ebx
call fcn.004084c3
mov eax, dword [ebx + 0x38]
cmp eax, edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x407f30
cmp dword [ebp + 0x14], eax
jne 0x407f30
mov esi, dword [ebx + 0x20]
cmp esi, 0xffffffff
je 0x407f30
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x1c]
cmp eax, 5
je 0x407f0b
cmp eax, 6
je 0x407f0b
cmp eax, 7
je 0x407f0b
cmp eax, 8
jne 0x407f30
mov ecx, ebx
call fcn.0040833e
push 0
push esi
push 0x182
push dword [ebx + 0x40]
call edi
push esi
lea ecx, [ebx + 0x44]
call fcn.00405728
push esi
mov ecx, ebx
call fcn.00408702
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x407fa1
cmp dword [ebp + 0x14], eax
jne 0x407fa1
push 0x24
push 0x419f3c
push 0x419f28
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x407fa1
mov ecx, ebx
call fcn.0040833e
mov esi, dword [ebx + 0x4c]
jmp 0x407f95
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x1c]
cmp eax, 5
je 0x407f7f
cmp eax, 6
je 0x407f7f
cmp eax, 7
je 0x407f7f
cmp eax, 8
jne 0x407f95
push 0
push esi
push 0x182
push dword [ebx + 0x40]
call edi
push esi
lea ecx, [ebx + 0x44]
call fcn.00405728
dec esi
jns 0x407f62
push 0
mov ecx, ebx
call fcn.00408702
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4082f9
cmp dword [ebp + 0x14], eax
jne 0x4082f9
mov ecx, ebx
call fcn.0040833e
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4082f9
push ebx
call eax
pop ecx
jmp 0x4082f9
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx]
jne 0x4082f9
mov dword [eax + 0x10], 0x14
mov byte [ebp - 1], 1
jmp 0x4082f9
mov edi, dword [ebp + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [ebx + 0x40]
jne 0x4082f9
push 0xffffff
mov byte [ebp - 1], 1
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
lea esi, [edi + 0x1c]
push eax
push esi
mov dword [ebp + 0xc], eax
push dword [edi + 0x18]
mov dword [ebp + 0x10], esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x4082e7
cmp eax, dword [ebx + 0x4c]
jge 0x4082e7
mov ecx, dword [ebx + 0x50]
mov esi, dword [esi]
add esi, 6
mov eax, dword [ecx + eax*4]
mov dword [ebp + 0xc], eax
mov ecx, dword [eax + 0x1c]
cmp ecx, 3
je 0x4082e7
test ecx, ecx
je 0x40805f
add esi, 0x10
cmp ecx, 0xa
jne 0x408099
mov edx, dword [ebx + 0x54]
test edx, edx
je 0x408099
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x408099
cmp byte [eax + 0x10], 0
push 3
push 0
push 0
push 0x10
push 0x10
lea eax, [esi - 0x10]
je 0x408088
push edx
jmp 0x408089
push ecx
push dword [edi + 0x20]
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4080b8
push 3
push 0
push 0
push 0x10
push 0x10
push eax
push dword [edi + 0x20]
push esi
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [edi + 0x18]
add esi, 0x12
mov dword [ebp + 8], esi
mov esi, dword [ebp + 0x10]
push dword [edi + 8]
lea eax, [ebp - 0x14]
mov ecx, ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00407d21
mov ecx, dword [ebx + 4]
push 0
call fcn.00405542
mov esi, dword [ebp + 0x14]
test byte [esi + 0x10], 1
je 0x40812a
push 0x800000
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
lea eax, [ebp - 0x14]
push edi
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_FillRect]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 4]
push 0xffffff
call fcn.00405542
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40813d
cmp eax, 1
je 0x40813d
push 0
jmp 0x40813f
push 1
mov ecx, dword [ebx + 4]
call fcn.004055d3
mov eax, dword [edi + 0x1c]
cmp eax, 1
je 0x408154
cmp eax, 2
jne 0x408188
mov edi, dword [esi + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], edi
call fcn.004051f3
mov ecx, dword [ebx + 4]
push eax
push dword [esi + 0x18]
call fcn.004055f3
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x24]
sub eax, edi
cdq
sub eax, edx
mov edi, eax
sar ecx, 1
sar edi, 1
sub edi, ecx
add edi, dword [ebp + 0x14]
jmp 0x40818b
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.004051f3
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040b270
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
lea ecx, [eax + 8]
mov dword [ebp + 0x10], ecx
call fcn.004051f3
push eax
call fcn.0040b7d0
test eax, eax
pop ecx
je 0x408278
and byte [ebp + 0x17], 0
lea eax, [ebp - 0x118]
push eax
call fcn.0040b7d0
test eax, eax
pop ecx
je 0x408278
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040b270
cmp byte [ebp + 0x17], 0
pop ecx
pop ecx
je 0x408206
lea eax, [ebp - 0x21c]
push 0x419f24
push eax
call fcn.0040b280
pop ecx
pop ecx
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 0x18]
call fcn.004055f3
mov ecx, dword [ebx + 8]
sub ecx, edi
sub ecx, 5
cmp eax, ecx
jl 0x40824e
lea eax, [ebp - 0x118]
mov byte [ebp + 0x17], 1
push eax
call fcn.0040b7d0
and byte [ebp + eax - 0x119], 0
lea eax, [ebp - 0x118]
push eax
call fcn.0040b7d0
pop ecx
test eax, eax
pop ecx
jne 0x4081d8
cmp byte [ebp + 0x17], 0
je 0x408278
lea eax, [ebp - 0x118]
push eax
call fcn.0040b7d0
test eax, eax
pop ecx
je 0x408278
lea eax, [ebp - 0x118]
push 0x419f24
push eax
call fcn.0040b280
pop ecx
pop ecx
lea eax, [ebp - 0x118]
push 0
push eax
mov ecx, dword [ebx + 4]
push dword [esi + 0x20]
push edi
push dword [esi + 0x18]
call fcn.0040554c
mov ecx, dword [ebx + 4]
xor edi, edi
push edi
call fcn.00405542
mov ecx, dword [ebx + 4]
push edi
call fcn.004055d3
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 9
jne 0x4082c4
mov ecx, dword [ebx + 4]
push 1
call fcn.004055d3
mov ecx, dword [ebx + 4]
push 0xff0000
call fcn.00405542
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004051f3
mov ecx, dword [esi + 0x1c]
push eax
mov eax, dword [ebx + 8]
push dword [esi + 0x20]
lea eax, [eax + ecx + 2]
mov ecx, dword [ebx + 4]
push eax
push dword [esi + 0x18]
call fcn.0040554c
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x4082f9
push 1
push 0
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
and byte [0x41e0e8], 0
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0x10