Function at 0x401029
Capabilities:
Extract resource via kernel32 functions
Inspect load icon resource
Log keystrokes via polling

Disassembly:
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40338c], eax
push 0
push 0x401029
push 0
push 0x65
push dword [0x40338c]
call sub.user32.dll_DialogBoxParamA
push 0
call sub.KERNEL32.DLL_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffa0
mov eax, dword [ebp + 0xc]
cmp eax, 0xf
jne 0x4010a1
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call sub.user32.dll_BeginPaint
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x5c], eax
push dword [0x4033a8]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x60], eax
push 0xcc0020
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x5c]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x40]
call sub.gdi32.dll_BitBlt
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
call sub.gdi32.dll_SelectObject
push dword [ebp - 0x5c]
call sub.gdi32.dll_DeleteDC
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call sub.user32.dll_EndPaint
jmp 0x401486
cmp eax, 0x110
jne 0x401273
push dword [ebp + 8]
pop dword [0x403390]
push 0
push 0x78
push 1
push dword [ebp + 8]
call sub.user32.dll_SetTimer
push 0xc9
push dword [0x40338c]
call sub.user32.dll_LoadIconA
mov dword [0x4033a4], eax
push eax
push 0
push 0x80
push dword [0x403390]
call sub.user32.dll_SendMessageA
push 0x65
push dword [0x40338c]
call sub.user32.dll_LoadBitmapA
mov dword [0x4033a8], eax
lea edx, [ebp - 0x58]
push edx
push 0x18
push eax
call sub.gdi32.dll_GetObjectA
test dword [ebp - 0x50], 0xffffffff
jns 0x401115
neg dword [ebp - 0x50]
push 0x236
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push 0
push 0
push 0
push dword [ebp + 8]
call sub.user32.dll_SetWindowPos
push 0x4032b7
push 0x4032b1
push dword [0x40338c]
call sub.KERNEL32.DLL_FindResourceA
mov dword [0x4032bb], eax
push eax
push dword [0x40338c]
call sub.KERNEL32.DLL_LoadResource
mov dword [0x4032c3], eax
push dword [0x4032bb]
push dword [0x40338c]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x4032bf], eax
push dword [0x4032c3]
call sub.KERNEL32.DLL_LockResource
mov dword [0x4032c3], eax
mov dword [0x4032c7], 0
mov dword [0x4032cb], 0
push 0x4032e7
push dword [0x403390]
call sub.user32.dll_GetWindowRect
push 0x4032c7
push dword [0x403390]
call sub.user32.dll_ClientToScreen
mov eax, dword [0x4032c7]
sub eax, dword [0x4032e7]
mov dword [0x4032df], eax
mov eax, dword [0x4032cb]
sub eax, dword [0x4032eb]
mov dword [0x4032e3], eax
mov dword [0x4032cf], 1
mov dword [0x4032db], 1
fild dword [0x4032cf]
fstp dword [0x4032cf]
fild dword [0x4032db]
fstp dword [0x4032db]
fild dword [0x4032df]
fstp dword [0x4032df]
fild dword [0x4032e3]
fstp dword [0x4032e3]
push dword [0x4032c3]
push dword [0x4032bf]
push 0x4032cf
call sub.gdi32.dll_ExtCreateRegion
push 1
push eax
push dword [ebp + 8]
call sub.user32.dll_SetWindowRgn
push 0x127
push 0x3b
push 0x119
push 0x1b
call sub.gdi32.dll_CreateRectRgn
mov dword [0x4033b0], eax
push 0x127
push 0xee
push 0x119
push 0xc9
call sub.gdi32.dll_CreateRectRgn
mov dword [0x4033b4], eax
jmp 0x401486
cmp eax, 0x201
jne 0x4012f1
movzx eax, word [ebp + 0x14]
movzx edx, word [ebp + 0x16]
push edx
push eax
push dword [0x4033b0]
call sub.gdi32.dll_PtInRegion
or eax, eax
je 0x4012ac
push 0
push 0x3ec
push 0x111
push dword [ebp + 8]
call sub.user32.dll_SendMessageA
jmp 0x401486
movzx eax, word [ebp + 0x14]
movzx edx, word [ebp + 0x16]
push edx
push eax
push dword [0x4033b4]
call sub.gdi32.dll_PtInRegion
or eax, eax
je 0x4012db
push 0
push 0x3ed
push 0x111
push dword [ebp + 8]
call sub.user32.dll_SendMessageA
jmp 0x4012ec
push 0
push 2
push 0xa1
push dword [ebp + 8]
call sub.user32.dll_PostMessageA
jmp 0x401486
cmp eax, 0x111
jne 0x40134f
mov eax, dword [ebp + 0x10]
and eax, 0xffff
cmp eax, 0x3ec
jne 0x401320
push 0
push 0x403020
push 0x403025
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
jmp 0x401486
cmp eax, 0x3ed
jne 0x401486
push 0x90000
push 0x4b0
push dword [0x403390]
call sub.user32.dll_AnimateWindow
push 0
push dword [ebp + 8]
call sub.user32.dll_EndDialog
jmp 0x401486
cmp eax, 0x113
jne 0x401422
push 0x31
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x40136c
push 0
call fcn.0040148f
push 0x32
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x40137e
push 1
call fcn.0040148f
push 0x33
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x401390
push 2
call fcn.0040148f
push 0x34
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x4013a2
push 3
call fcn.0040148f
push 0x35
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x4013b4
push 4
call fcn.0040148f
push 0x36
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x4013c6
push 5
call fcn.0040148f
push 0x37
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x4013d8
push 6
call fcn.0040148f
push 0x38
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x4013ea
push 7
call fcn.0040148f
push 0x39
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x4013fc
push 8
call fcn.0040148f
push 0x30
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x40140e
push 9
call fcn.0040148f
push 0x23
call sub.user32.dll_GetAsyncKeyState
or eax, eax
je 0x401486
push 0xa
call fcn.0040148f
jmp 0x401486
cmp eax, 2
jne 0x40147d
push dword [0x4033a8]
call sub.gdi32.dll_DeleteObject
push 0
push 0
push dword [ebp + 8]
call sub.user32.dll_SetWindowRgn
push dword [0x4033ac]
call sub.gdi32.dll_DeleteObject
push dword [0x4033b0]
call sub.gdi32.dll_DeleteObject
push dword [0x4033b4]
call sub.gdi32.dll_DeleteObject
push 0
push 0
push 0x80
push dword [ebp + 8]
call sub.user32.dll_SendMessageA
push dword [0x4033a4]
call sub.user32.dll_DestroyIcon
jmp 0x401486
mov eax, 0
leave
ret 0x10
mov eax, 1
leave
ret 0x10