Function at 0x40201e
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0xf4
call sub.KERNEL32.dll_FreeConsole
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401e70
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov eax, dword [0x408024]
test eax, eax
je 0x4020e0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401ed4
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov eax, 0
jmp 0x40237a
call sub.KERNEL32.dll_FreeConsole
mov eax, dword [ebp + 8]
mov dword [0x408078], eax
lea edx, [ebp - 0x6c]
mov eax, 0
mov ecx, 0xc
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x6c], 0x30
mov dword [ebp - 0x68], 3
mov dword [ebp - 0x64], 0x40151e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], str.ClassName
mov dword [esp + 4], 0x62
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_LoadIconA
sub esp, 8
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call sub.USER32.dll_RegisterClassExA
sub esp, 4
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x258
mov dword [esp + 0x18], 0x258
mov dword [esp + 0x14], 0x96
mov dword [esp + 0x10], 0x96
mov dword [esp + 0xc], 0x200a0000
mov dword [esp + 8], str.image.jpg
mov dword [esp + 4], str.ClassName
mov dword [esp], 0x300
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.USER32.dll_UpdateWindow
sub esp, 4
jmp 0x4021f1
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sub.USER32.dll_TranslateMessage
sub esp, 4
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sub.USER32.dll_DispatchMessageA
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sub.USER32.dll_GetMessageA
sub esp, 0x10
test eax, eax
jne 0x4021d5
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401ff0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
jmp 0x4022f3
cmp dword [ebp - 0xc], 8
jne 0x4022ac
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401c3e
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xbc], edx
jmp 0x4022ef
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401d79
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xbc], edx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x13
jle 0x402261
jmp 0x40230e
mov dword [esp], 3
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov eax, dword [0x408020]
test eax, eax
je 0x4022ff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40157f
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 1
lea eax, [ebp - 0xbc]
mov dword [esp + 4], eax
mov dword [esp], 0x14
call sub.KERNEL32.dll_WaitForMultipleObjects
sub esp, 0x10
mov edi, dword [ebp - 4]
leave
ret 0x10