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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b2858
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4e70ac]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
cmp byte [ebx + 0x49], 0
je 0x40eba6
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40eba6
cmp dword [edi + 8], 0
jl 0x40eba6
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x20], eax
test eax, eax
je 0x40eba6
mov esi, dword [edi + 0x18]
mov dword [esp + 0x28], esi
test byte [edi + 0x10], 1
mov dword [esp + 0x78], 0
je 0x40e86b
mov eax, dword [ebx + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x4000
jne 0x40e86b
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov byte [esp + 0x13], 1
test eax, eax
jne 0x40e870
mov byte [esp + 0x13], 0
lea eax, [edi + 0x1c]
push eax
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
cmp byte [esp + 0x13], 0
je 0x40e88d
mov edi, 0x5bd277
jmp 0x40e897
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x24], eax
push edi
mov byte [esp + 0x7c], 1
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x64], ecx
sub eax, 2
mov dword [esp + 0x60], ebx
inc ebx
mov ecx, eax
push 0
add edi, 3
sub ecx, ebx
add ecx, edi
push 0xb
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 8]
mov ecx, dword [edx + 4]
cmp eax, ecx
jne 0x40e9b6
dec dword [esp + 0x58]
cmp byte [esp + 0x13], 0
jne 0x40e97e
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], vtable.CBrush.0
push 0xffffff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 2
call fcn.0040de30
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 1
mov dword [esp + 0x18], vtable.CBrush.0
call fcn.0040e6b0
mov ecx, dword [esp + 0x14]
push 1
push ebx
push edi
push 0
push esi
add ecx, 0x50
call fcn.0040dd00
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x40ea65
push 1
push ebx
push edi
mov edi, dword [esp + 0x20]
push 0
push esi
lea ecx, [edi + 0x4c]
call fcn.0040dd00
jmp 0x40ea69
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x48], 0
je 0x40ea65
sub eax, ecx
mov ecx, dword [edx + 0x1c]
dec eax
mov edi, eax
mov eax, dword [ecx]
mov ecx, dword [edx + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
lea esp, [esp]
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0x1c]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], eax
call fcn.00401440
test al, al
je 0x40ea65
lea ecx, [esp + 0x28]
test edi, edi
jle 0x40ea1b
push 0
lea eax, [esp + 0x38]
push eax
dec edi
call fcn.0040e0b0
mov edx, dword [esp + 0x20]
jmp 0x40e9e0
call fcn.0040e080
cmp dword [eax + 4], 0
jne 0x40ea3b
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push 1
push ecx
mov ecx, dword [esp + 0x1c]
push edx
add ecx, 0x54
jmp 0x40ea5d
lea ecx, [esp + 0x28]
call fcn.0040e080
cmp dword [eax + 4], 1
jne 0x40ea65
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push 1
push eax
push ecx
mov ecx, dword [esp + 0x20]
add ecx, 0x58
push 0
push esi
call fcn.0040dd00
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40ea7b
push 0x11
jmp 0x40ea88
cmp byte [esp + 0x13], 0
je 0x40ea86
push 0xe
jmp 0x40ea88
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 8]
push 0
push eax
mov eax, dword [edi + 4]
push 0x18a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.0040dd30
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 8]
mov eax, dword [edi + 4]
push ecx
push edx
push 0x189
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [edi + 0x48], 0
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x14], ecx
jne 0x40eaf6
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x20]
cmp edx, dword [eax + 4]
jne 0x40eb17
mov ecx, dword [ebx + 8]
push ecx
mov ecx, edi
call fcn.0040e050
test al, al
je 0x40eb0f
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], edx
jmp 0x40eb17
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], eax
add dword [esp + 0x14], 3
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov ebx, dword [ebx + 0x20]
push ecx
mov dword [esp + 0x24], eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push edx
push ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
mov ecx, dword [esp + 0x20]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, edi
jne 0x40eb72
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edx, dword [esp + 0x24]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00418b46
mov eax, dword [esp + 0x34]
add esp, 4
test eax, eax
je 0x40eba6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8