Function at 0x404590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x109c
call fcn.00413cd0
push ebx
mov ebx, dword [esp + 0x10a4]
mov al, byte [ebx + 0x10]
push ebp
mov ebp, dword [ebx + 0x18]
and al, 1
mov byte [esp + 0x13], al
mov eax, dword [edi + 8]
push esi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4045c7
mov byte [0x461bfa], 1
jmp 0x404607
cmp byte [0x461bfa], 0
je 0x404600
mov edx, dword [edi + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
push esi
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [0x461bfa], 0
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x20]
sub eax, ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [ebx + 0x28]
sub ecx, edx
inc ecx
inc eax
mov dword [esp + 0x30], ecx
add ecx, 2
push ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x58], eax
lea ebp, [eax - 1]
add eax, 2
push eax
push ecx
mov dword [esp + 0x78], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [ebx + 0x18]
push edx
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [esp + 0x50]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test byte [ebx + 0xc], 3
mov dword [esp + 0x5c], eax
je 0x404b79
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40467f
or eax, 0xffffffff
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov edx, dword [ebx + 8]
push edx
mov edx, edi
call fcn.004051a0
cmp byte [esp + 0x17], 0
mov cl, byte [eax + 0x20]
mov dword [esp + 0x48], eax
mov byte [eax + 0x21], cl
je 0x4046aa
mov dword [esp + 0x10], 0x6a240a
mov ebx, 0xffffff
jmp 0x4046dd
test cl, cl
je 0x4046bd
mov dword [esp + 0x10], 0x742e14
mov ebx, 0xffffff
jmp 0x4046dd
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x10], 0xffffff
cmp ecx, 0xffffffff
je 0x4046d1
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0x28]
mov ebx, eax
inc ebx
neg ebx
sbb ebx, ebx
and ebx, eax
push ebx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0xc1c0bf
push 1
push 0
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x30]
push eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
dec ecx
push eax
lea edx, [ebp + 1]
inc ecx
mov dword [esp + 0x28], ebp
push esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x11
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push esi
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0x1004
lea edx, [esp + 0xa4]
push 0
push edx
mov dword [esp + 0x74], eax
call sub.MSVCR90.dll_memset
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebp
xor ebp, ebp
dec eax
add esp, 0xc
cmp dword [edi + 0x3c], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebp
jle 0x404abf
mov dword [esp + 0x28], ebp
jmp 0x4047d6
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 8]
push 0
push ebp
push 0x101d
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x38]
mov edx, dword [esp + 0x28]
mov dword [edx + ecx + 8], eax
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
lea edx, [ecx + eax]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edx
inc ecx
dec edx
inc eax
dec ebx
cmp ebp, dword [edi + 0x70]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ebx
jne 0x404881
cmp ebp, dword [edi + 0x68]
jne 0x404881
mov dword [esp + 0x84], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x9c], eax
push 5
lea eax, [esp + 0x7c]
dec edx
dec ebx
push eax
push esi
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa4], ecx
call dword [sym.imp.GDI32.dll_Polyline]
jmp 0x4048cd
mov ecx, dword [esp + 0x4c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x24]
push 2
lea ecx, [esp + 0x7c]
push ecx
dec edx
inc eax
push esi
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], eax
call dword [sym.imp.GDI32.dll_Polyline]
mov edx, dword [esp + 0x34]
push edx
push esi
call ebx
mov eax, dword [esp + 0x10ac]
mov ecx, dword [eax + 8]
cmp ecx, dword [edi + 0x20]
jne 0x4048e9
mov edx, dword [esp + 0x10]
cmp edx, dword [edi + 0x24]
je 0x404a9a
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
push esi
mov dword [esp + 0x6c], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [edi + 0x38]
mov ebx, dword [esp + 0x28]
mov eax, dword [ecx + ebx + 0xc]
add ecx, ebx
and eax, 0xff
cmp eax, 3
ja case.default.0x40491b
jmp dword [eax*4 + 0x404b88]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [edi + 0x38]
mov edx, dword [ebp]
mov edx, dword [edx + 4]
push 0x7ff
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebx + ecx]
push eax
push edi
mov ecx, ebp
call edx
xor eax, eax
mov word [esp + 0x109e], ax
lea eax, [esp + 0xa0]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404960
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0xa4]
push ecx
inc edx
push edx
inc eax
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
jmp case.default.0x40491b
push 2
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [edi + 0x38]
mov edx, dword [ebp]
mov edx, dword [edx + 4]
push 0x7ff
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebx + ecx]
push eax
push edi
mov ecx, ebp
call edx
xor eax, eax
mov word [esp + 0x109e], ax
lea eax, [esp + 0xa0]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4049d0
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xa4]
push ecx
inc edx
push edx
add eax, 0xfffffffd
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
jmp case.default.0x40491b
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [edi + 0x38]
mov edx, dword [ebp]
mov edx, dword [edx + 4]
push 0x7ff
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebx + ecx]
push eax
push edi
mov ecx, ebp
call edx
xor eax, eax
mov word [esp + 0x109e], ax
lea eax, [esp + 0xa0]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404a40
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0xa4]
push ecx
inc edx
push edx
inc eax
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
jmp case.default.0x40491b
mov eax, dword [edi + 0xac]
test eax, eax
je case.default.0x40491b
mov ecx, dword [ecx]
push ecx
push ebp
push edi
lea edx, [esp + 0x44]
push edx
push esi
call eax
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x404a9e
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
add ebx, 0x14
cmp eax, dword [edi + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebx
jl 0x4047d2
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x6c]
push 0xcc0020
push 0
push 0
push esi
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x10c4]
push ecx
mov ecx, dword [eax + 0x18]
push edx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x60]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x2c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x70]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x68]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [esp + 0x58]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x34]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call ebp
mov edx, dword [esp + 0x4c]
push edx
call ebp
mov eax, dword [esp + 0x2c]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x5c]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x50]
push edx
call ebp
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404b79
mov ecx, dword [edi + 0x10]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebp
pop ebx
add esp, 0x109c
ret 4