Function at 0x406aa0
Capabilities:
Create thread
Terminate process

Disassembly:
sub esp, 0x12c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x128], eax
push ebp
push esi
mov esi, dword [esp + 0x138]
xor ebp, ebp
push 0x2c
lea eax, [esp + 0x20]
push ebp
push eax
mov dword [esp + 0x24], ebp
call fcn.00418570
add esp, 0xc
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebp
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdiplusStartup
push 0xc8
lea eax, [esp + 0x6c]
push ebp
push eax
call fcn.00418570
add esp, 0xc
mov dword [esp + 0x24], ebp
call fcn.004185fc
cdq
mov ecx, 0x1e
idiv ecx
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
add dl, 0x41
cmp eax, 0x14
mov byte [esp + eax + 0x67], dl
jl 0x406b14
push ebp
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 0x406840
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push ebp
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x68]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
push ebp
push 0x190
push 0x297
push 1
mov dword [esp + 0x70], 0x100a0000
call esi
sub eax, 0x190
cdq
sub eax, edx
sar eax, 1
sub eax, 0x28
push eax
push ebp
call esi
mov ecx, dword [esp + 0x70]
sub eax, 0x297
cdq
sub eax, edx
mov edx, dword [esp + 0x5c]
sar eax, 1
push eax
push ecx
push 0x4268ec
push edx
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
cmp esi, ebp
jne 0x406bdf
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x4268e4
push 0x20
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0xc
call dword [sym.imp.GDI32.dll_CreateFontA]
push 0x42c594
mov dword [0x42c5e4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x42c62c
push ebp
push esi
push 0x404300
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.myGd
mov dword [0x42b00c], eax
call fcn.00402aa0
push str.Code
call fcn.00402b20
push str.zdmk
call fcn.00402b20
push str.qtgn
call fcn.00402b20
push str._rczs
call fcn.00402b20
push str.Kjzcz
call fcn.00402b20
push 0x4268a8
call fcn.00402b20
push str._bk_img
call fcn.00402b20
add esp, 0x20
push 0xa
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00406620
test eax, eax
je 0x406c98
push 1
push ebp
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call fcn.00402a40
add esp, 4
push ebp
push 0x3e7
push 0x3f5
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x42c62c]
push ebp
push ebp
push 0x5fa
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebp
push ebp
push ebp
lea ecx, [esp + 0x58]
push ecx
call esi
test eax, eax
je 0x406d06
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x54]
push edx
call edi
lea eax, [esp + 0x54]
push eax
call ebx
push ebp
push ebp
push ebp
lea ecx, [esp + 0x60]
push ecx
call esi
test eax, eax
jne 0x406ce8
pop edi
pop ebx
push 0x42c594
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0x130]
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0041869b
add esp, 0x12c
ret 0x10