Function at 0x40a240
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [ebp + 0xc], 0x201
je 0x40a3da
cmp dword [ebp + 0xc], 0x201
ja 0x40a499
cmp dword [ebp + 0xc], 0xf
je 0x40a28c
cmp dword [ebp + 0xc], 0xf
ja 0x40a499
cmp dword [ebp + 0xc], 1
je 0x40a4c0
cmp dword [ebp + 0xc], 2
je 0x40a4c3
jmp 0x40a499
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.ew_env_getOrderByListItem
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40a4c6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
call eax
sub esp, 8
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x10]
test ax, ax
je 0x40a2e3
mov dword [esp], 0x35a245
mov eax, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call eax
sub esp, 4
jmp 0x40a2f4
mov dword [esp], 0xa5ff
mov eax, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x74]
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 eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_FillRect]
call eax
sub esp, 0xc
mov eax, dword [0x438044]
mov eax, dword [eax + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
call eax
sub esp, 8
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0x10]
test ax, ax
je 0x40a35e
mov eax, 0x35a245
jmp 0x40a363
mov eax, 0xa5ff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetBkColor]
call eax
sub esp, 8
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetTextColor]
call eax
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], 6
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x19
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_TextOutW]
call eax
sub esp, 0x14
lea eax, [ebp - 0x74]
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
jmp 0x40a4cd
mov dword [ebp - 0xc], 0
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x10], eax
jmp 0x40a41d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40a413
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
cmp dword [ebp + 8], eax
jne 0x40a414
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x40a423
nop
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a3f1
cmp dword [ebp - 0xc], 0
je 0x40a4c9
mov eax, dword [0x438044]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
cmp edx, eax
je 0x40a4cc
mov eax, dword [0x438044]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x40a46c
mov eax, dword [0x438044]
mov eax, dword [eax + 0x44]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov eax, dword [0x438044]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x1c]
mov dword [eax + 0x44], edx
mov eax, dword [0x438044]
mov eax, dword [eax + 0x44]
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
jmp 0x40a4cd
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_DefWindowProcW]
call eax
sub esp, 0x10
jmp 0x40a4d2
nop
jmp 0x40a4cd
nop
jmp 0x40a4cd
nop
jmp 0x40a4cd
nop
jmp 0x40a4cd
nop
mov eax, 0
leave
ret 0x10