Function at 0x401d0d
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc4
cmp dword [ebp + 0xc], 0x138
je 0x401ebf
cmp dword [ebp + 0xc], 0x138
ja 0x402146
cmp dword [ebp + 0xc], 0x111
je 0x4020d1
cmp dword [ebp + 0xc], 0x111
ja 0x402146
cmp dword [ebp + 0xc], 0x2b
je 0x401f8c
cmp dword [ebp + 0xc], 0x2b
ja 0x402146
cmp dword [ebp + 0xc], 0xf
je 0x401dd3
cmp dword [ebp + 0xc], 0xf
ja 0x402146
cmp dword [ebp + 0xc], 1
je 0x401d84
cmp dword [ebp + 0xc], 2
je 0x40213a
jmp 0x402146
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], 0x3e8
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_LoadIconA]
call eax
sub esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
jmp 0x40216e
lea eax, [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_BeginPaint]
call eax
sub esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0x3c
mov word [ebp - 0x94], 0x3535
mov word [ebp - 0x92], 0
mov word [ebp - 0x90], 0xdada
mov word [ebp - 0x8e], 0x1000
mov dword [ebp - 0x8c], 0x320
mov dword [ebp - 0x88], 0x1f4
mov word [ebp - 0x84], 0xdddd
mov word [ebp - 0x82], 0
mov word [ebp - 0x80], 0xd4d4
mov word [ebp - 0x7e], 0x1000
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
lea eax, [ebp - 0x9c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.MSIMG32.DLL_GradientFill]
call eax
sub esp, 0x18
lea eax, [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_EndPaint]
call eax
sub esp, 8
mov eax, 0
jmp 0x40216e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetDlgCtrlID]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3e8
jne 0x401f27
mov dword [esp + 4], 0xab0000
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetBkColor]
call eax
sub esp, 8
mov dword [esp + 4], 0xffffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetTextColor]
call eax
sub esp, 8
mov dword [esp], 0xab0000
mov eax, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call eax
sub esp, 4
jmp 0x40216e
cmp dword [ebp - 0x10], 0x3e9
jne 0x401f76
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetBkMode]
call eax
sub esp, 8
mov dword [esp + 4], 0xffffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetTextColor]
call eax
sub esp, 8
mov dword [esp], 5
mov eax, dword [sym.imp.GDI32.dll_GetStockObject]
call eax
sub esp, 4
jmp 0x40216e
mov dword [esp], 0xf0f0f0
mov eax, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call eax
sub esp, 4
jmp 0x40216e
movzx eax, byte [0x407058]
test al, al
jne 0x40216d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [0x404008]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call eax
sub esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x34], edx
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x34]
lea ecx, [eax + 0x33]
mov eax, dword [ebp - 0x38]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x3c]
sub eax, 0x33
mov dword [esp + 0x14], 0x1e
mov dword [esp + 0x10], 0x1e
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
call eax
sub esp, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SelectClipRgn]
call eax
sub esp, 8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_FillRgn]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], 0xffffff
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetTextColor]
call eax
sub esp, 8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], 0xf600ff
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetBkColor]
call eax
sub esp, 8
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x1c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], 0x25
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], str.scan
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DrawTextA]
call eax
sub esp, 0x14
mov dword [esp], str.WM_DRAWITEM
call sym._puts
mov eax, 0
jmp 0x40216e
mov eax, dword [ebp + 0x10]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test ax, ax
jne 0x402133
cmp dword [ebp - 0x14], 0x7d0
jne 0x402133
mov dword [esp], str._start_scan_
call sym._puts
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._StartScan
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov eax, 0
jmp 0x40216e
mov dword [esp], 0
call sym._exit
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
call eax
sub esp, 0x10
jmp 0x40216e
nop
mov ebx, dword [ebp - 4]
leave
ret 0x10