Function at 0x408768
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
cmp ebx, 0x112
push edi
jne 0x4087b6
cmp dword [ebp + 0x10], 1
jne 0x4087b6
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call esi
push 0
push 0x405955
push ebx
push 0x72
push dword [0x47e17c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 1
push ebx
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x408823
push dword [ebp + 8]
call fcn.00407e63
mov esi, eax
pop ecx
test esi, esi
jne 0x4087cb
mov esi, dword [0x47df64]
mov edi, 0x80000000
test dword [0x47e18c], edi
je 0x4087f8
xor eax, eax
test esi, esi
je 0x4087e1
mov eax, dword [esi + 0x14]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.004241d8
add esp, 0x14
test eax, eax
jne 0x408823
test esi, esi
jne 0x40880e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x408823
cmp ebx, 0x14
jne 0x40882a
cmp byte [esi + 0xac], 0
jne 0x408c7e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp ebx, 0x402
jne 0x408878
test dword [esi + 0x10], edi
je 0x408c7e
xor edi, edi
cmp dword [esi + 0x7c], edi
jle 0x408c7e
push edi
lea ecx, [esi + 0x70]
call fcn.0041e860
mov ebx, eax
cmp dword [ebx + 8], 0xc
jne 0x408872
mov eax, dword [ebp + 0x14]
cmp dword [ebx + 0x10], eax
jne 0x408872
push dword [ebp + 0x10]
mov ecx, dword [ebx + 0x50]
call fcn.0041ee7e
mov ecx, dword [ebx + 0x50]
call fcn.0041ed05
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x408846
cmp dword [ebp + 0xc], 0xf
jne 0x4088ba
test byte [esi + 0x13], 0x80
je 0x408c05
xor ebx, ebx
cmp dword [esi + 0x7c], ebx
jle 0x408c05
lea edi, [esi + 0x70]
push ebx
mov ecx, edi
call fcn.0041e860
cmp dword [eax + 8], 0xc
jne 0x4088b4
push ebx
mov ecx, edi
call fcn.0041e860
mov ecx, dword [eax + 0x50]
call fcn.0041ed05
inc ebx
cmp ebx, dword [esi + 0x7c]
jl 0x408896
mov eax, dword [ebp + 0xc]
mov ebx, 0x133
cmp eax, ebx
jne 0x40890b
push dword [ebp + 0x14]
mov ecx, esi
call fcn.004070d7
mov esi, eax
test esi, esi
je 0x408c7e
mov eax, dword [esi + 8]
cmp eax, 5
je 0x4088eb
cmp eax, 6
jne 0x4087fc
push dword [esi + 0x24]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esi + 0x2c]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esi + 0x54]
jmp 0x408823
mov ebx, 0x134
cmp eax, ebx
jne 0x40893e
push dword [ebp + 0x14]
mov ecx, esi
call fcn.004070d7
mov esi, eax
test esi, esi
je 0x408c7e
cmp dword [esi + 8], 7
jne 0x4087fc
cmp dword [esi + 0x54], 0
je 0x4087fc
jmp 0x4088eb
cmp eax, 0x138
jne 0x40898e
cmp byte [esi + 0xac], 0
lea eax, [esi + 0xac]
jne 0x408957
mov byte [eax], 1
push dword [ebp + 0x14]
mov ecx, esi
call fcn.004070d7
mov esi, eax
test esi, esi
je 0x408c7e
push dword [esi + 0x24]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esi + 8]
cmp eax, 5
je 0x4088f7
cmp eax, 6
je 0x4088f7
jmp 0x4089b5
cmp eax, 0x135
jne 0x4089c5
push dword [ebp + 0x14]
mov ecx, esi
call fcn.004070d7
mov esi, eax
test esi, esi
je 0x408c7e
push dword [esi + 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 0x408903
cmp eax, 0x201
jne 0x408a04
test byte [esi + 0x9c], 2
je 0x408c7e
mov eax, dword [esi + 0x98]
xor edi, edi
cmp eax, edi
je 0x408c7e
push 3
push edi
push edi
lea ecx, [eax + 0x44]
call fcn.0041cd1e
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x408a06
xor edi, edi
cmp dword [ebp + 0xc], 0x200
jne 0x408b19
test byte [esi + 0x9c], 1
je 0x408c7e
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 8], edi
shr ebx, 0x10
cmp dword [esi + 0x98], edi
mov dword [esi + 0x98], edi
setne byte [ebp - 1]
and dword [esi + 0x9c], 0xfffffffd
cmp dword [esi + 0x7c], edi
jle 0x408af4
push dword [ebp - 8]
lea ecx, [esi + 0x70]
call fcn.0041e860
mov edi, eax
cmp dword [edi + 0x44], 0
jbe 0x408ae5
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x408ae5
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
add edx, eax
mov eax, dword [edi + 0x20]
add eax, ecx
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
movzx eax, word [ebp + 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x10], edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x408acd
or dword [esi + 0x9c], 2
mov dword [esi + 0x98], edi
mov eax, dword [edi + 0x24]
cmp eax, dword [edi + 0x28]
jne 0x408ae5
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
jmp 0x408ad8
mov eax, dword [edi + 0x28]
cmp dword [edi + 0x24], eax
je 0x408ae5
mov dword [edi + 0x24], eax
push 0
push 0
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_InvalidateRect]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x7c]
jl 0x408a49
cmp dword [esi + 0x98], 0
jne 0x408c7e
cmp byte [ebp - 1], 0
je 0x408c7e
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
xor edi, edi
cmp dword [ebp + 0xc], 0x20
jne 0x408b3d
test byte [esi + 0x9c], 2
je 0x408c7e
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x408820
cmp dword [ebp + 0xc], 6
jne 0x408b99
cmp word [ebp + 0x10], di
jne 0x408c7e
test byte [esi + 0x9c], 2
lea eax, [esi + 0x9c]
je 0x408c7e
and dword [eax], 0xfffffffd
mov dword [esi + 0x98], edi
xor ebx, ebx
cmp dword [esi + 0x7c], edi
jle 0x408c7e
push ebx
lea ecx, [esi + 0x70]
call fcn.0041e860
mov ecx, dword [eax + 0x28]
cmp dword [eax + 0x24], ecx
je 0x408b93
push edi
push edi
push dword [eax + 0x50]
mov dword [eax + 0x24], ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
inc ebx
cmp ebx, dword [esi + 0x7c]
jl 0x408b74
mov eax, 0x111
cmp dword [ebp + 0xc], eax
jne 0x408bca
mov ecx, esi
call fcn.00408e91
lea eax, [ebp - 1]
and byte [ebp - 1], 0
push eax
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00408658
cmp byte [ebp - 1], 0
je 0x408c05
jmp 0x408823
cmp dword [ebp + 0xc], 0x10
je 0x408bf3
cmp dword [ebp + 0xc], 0x110
je 0x408c05
cmp dword [ebp + 0xc], 0x4e
je 0x408c05
cmp dword [ebp + 0xc], 0xf
je 0x408c05
cmp dword [ebp + 0xc], 0x113
je 0x408c05
jmp 0x408c7e
push edi
push 2
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x408823
mov eax, dword [ebp + 0xc]
sub eax, 0xf
je 0x408c69
sub eax, 0x3f
je 0x408c5a
sub eax, 0xc2
je 0x408c48
dec eax
je 0x408c39
push dword [ebp + 0x14]
dec eax
dec eax
mov eax, dword [esi]
push dword [ebp + 0x10]
je 0x408c32
push dword [ebp + 0xc]
mov ecx, esi
call dword [eax + 0xc]
jmp 0x408c76
mov ecx, esi
call dword [eax + 0x18]
jmp 0x408c76
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0x10]
call dword [eax + 4]
jmp 0x408c76
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [eax + 8]
jmp 0x408c76
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0x10]
call dword [eax + 0x10]
jmp 0x408c76
push dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 0x10]
call dword [eax + 0x14]
test al, al
jne 0x408820
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
jmp 0x408803