Function at 0x402870
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x3ac
mov dword [0x426c84], eax
call fcn.00413e50
mov esi, eax
add esp, 4
test esi, esi
je 0x402c9f
mov ecx, 0xeb
xor eax, eax
mov edi, esi
push 0x24
rep stosd dword es:[edi], eax
call fcn.00413e50
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 0x1c], edi
jne 0x4028da
push esi
call fcn.00413db0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ebx, dword [esp + 0x50]
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
mov ecx, 9
xor eax, eax
push 5
push ebx
rep stosd dword es:[edi], eax
call ebp
mov edi, eax
test edi, edi
je 0x40290c
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x4028f8
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x8e
mov ecx, 0x4284f0
call fcn.00409a00
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 1
lea ecx, [esp + 0x30]
push eax
push ecx
push 0x8f
mov ecx, 0x4284f0
mov dword [esi + 0x10], edx
call fcn.00409a00
test eax, eax
je 0x4029de
mov dword [esi + 0x38], 5
mov edi, dword [esp + 0x10]
mov edx, 1
push 0
mov cl, byte [edi + 0xe]
mov eax, dword [edi]
shl edx, cl
lea ebp, [eax + edx*4]
add ebp, edi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push edi
push ebp
push 4
push edi
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ecx, dword [esi + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [edi + 4]
cdq
idiv dword [esi + 0x38]
mov edx, dword [esi + 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x1c]
mov eax, dword [edi + 8]
mov dword [edx + 0x10], eax
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
push edx
push 0
mov dword [eax + 8], ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x10]
push eax
call fcn.00413db0
add esp, 4
mov dword [esp + 0x10], 0
push esi
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x18]
push 0xf
push ecx
push edx
push 0
push 0
push eax
call fcn.00402210
mov ecx, dword [esi + 0x1c]
mov edi, dword [0x428520]
add esp, 0x18
lea ebp, [esi + 0x24]
mov dword [esi + 0x30], 1
mov dword [esi + 0x2c], 0xa
push ebp
push ecx
call fcn.00402840
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov ecx, dword [ebp]
add esp, 8
shl eax, 1
add edx, eax
add ecx, eax
mov eax, edx
mov dword [esi + 0x28], edx
mov edx, dword [esi + 0x18]
push eax
push ecx
push edx
mov dword [ebp], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x402c37
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esi + 0x20], eax
je 0x402c2c
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push ecx
call ebx
mov edx, dword [esi + 0x18]
push 1
push edx
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call ebx
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xf
call ebx
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call ebx
mov edx, dword [esi + 0x20]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x12
call ebx
push eax
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esi + 0x18]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ecx
call ebx
mov edx, dword [esi + 0x20]
push edi
push edx
call ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x38]
xor ebx, ebx
test eax, eax
jle 0x402b65
lea edi, [esi + 0x330]
mov eax, dword [esi + 0x2c]
test bl, 1
mov dword [edi + 4], eax
mov dword [edi], eax
je 0x402b1b
neg eax
mov dword [edi], eax
call fcn.00413e20
mov ecx, dword [esi + 8]
mov edx, dword [ebp]
sub ecx, edx
cdq
idiv ecx
mov dword [edi - 0x10], edx
call fcn.00413e20
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x28]
sub ecx, edx
add edi, 0x1c
cdq
idiv ecx
mov dword [edi - 0x28], edx
mov edx, dword [edi - 0x2c]
mov eax, dword [ebp]
add edx, eax
mov eax, dword [edi - 0x28]
mov dword [edi - 0x24], edx
mov ecx, dword [esi + 0x28]
add eax, ecx
mov dword [edi - 0x14], ebx
mov dword [edi - 0x20], eax
mov eax, dword [esi + 0x38]
inc ebx
cmp ebx, eax
jl 0x402b0a
mov ebx, dword [esp + 0x50]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
xor edi, edi
push edi
push 0x64
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
lea ecx, [esp + 0x38]
push edi
push ecx
call ebp
mov eax, dword [esp + 0x34]
sub eax, 0x100
je 0x402bd2
sub eax, 0x13
je 0x402ba7
sub eax, 0xee
jne 0x402be9
jmp 0x402be5
mov edx, dword [esp + 0x18]
mov ecx, 0x14
lea eax, [edx + 1]
cdq
idiv ecx
cmp edx, edi
mov dword [esp + 0x18], edx
jne 0x402bc7
push esi
call fcn.00402480
add esp, 4
push esi
call fcn.00402810
add esp, 4
jmp 0x402be9
mov eax, dword [esp + 0x38]
cmp eax, 0x1b
je 0x402be5
cmp eax, 0xd
je 0x402be5
cmp eax, 0x20
jne 0x402be9
mov dword [esp + 0x14], edi
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esp + 0x14], edi
jne 0x402b84
push 1
push ebx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
push edx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esi + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.00402280
mov edx, dword [esi + 0x10]
add esp, 4
push edx
call fcn.00413db0
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
add esp, 4
push 5
push ebx
call ebp
mov edi, eax
test edi, edi
je 0x402c8b
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x402c77
push esi
call fcn.00413db0
add esp, 4
push 1
push 0
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret