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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x442468
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x60]
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
mov eax, dword [eax - 0xc]
test eax, eax
push edi
je 0x40e246
cmp ebx, 0xfffffffe
jne 0x40e246
lea edi, [esi + 0x74]
mov ecx, edi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x60]
lea eax, [eax + edx*2]
push 0xf
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0043a340
mov ebp, dword [edi + 8]
mov eax, dword [edi]
mov edx, dword [esi + 0x60]
push 0x10
sub ebp, eax
mov dword [esp + 0x6c], edx
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esi + 0x78]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [eax*4]
push 1
sub ebp, ecx
mov ecx, dword [edi]
push ebp
push edx
lea edx, [ecx + eax*2]
push edx
mov ecx, ebx
call fcn.0043a486
mov eax, dword [edi]
mov ebp, dword [edi + 8]
sub ebp, eax
mov eax, dword [esi + 0x60]
push 0x14
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esi + 0x78]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [eax*4]
sub ebp, ecx
mov ecx, dword [edi]
push 1
push ebp
inc edx
push edx
lea edx, [ecx + eax*2]
push edx
mov ecx, ebx
call fcn.0043a486
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x68]
mov edi, 0xfffffffe
cmp eax, edi
jne 0x40e1b9
cmp dword [esi + 0x64], edi
je 0x40e1b9
push 0x16
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x2c]
push ecx
jmp 0x40e1c7
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
call fcn.0043a340
cmp dword [esi + 0x64], edi
jne 0x40e1e2
mov ecx, dword [ebx + 4]
push 0xf
push 4
lea eax, [esp + 0x30]
push eax
push ecx
jmp 0x40e1f4
cmp dword [esi + 0x68], edi
jne 0x40e1fa
mov eax, dword [ebx + 4]
push 0xf
push 2
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [ebx]
lea eax, [esi + 0xa4]
push eax
mov ecx, ebx
call dword [edx + 0x28]
push 1
mov ecx, ebx
mov edi, eax
call fcn.00436387
mov esi, dword [esi + 0x70]
mov ecx, dword [esi - 0xc]
mov edx, dword [ebx]
push 0x25
lea eax, [esp + 0x2c]
push eax
push ecx
push esi
mov ecx, ebx
call dword [edx + 0x68]
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 8
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40e3da
cmp ebx, 0xfffffffd
jne 0x40e3da
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
lea ebx, [esi + 0x84]
call ebp
mov edi, dword [esp + 0x68]
push eax
push ebx
mov ecx, edi
call fcn.0043a340
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0xc]
mov ebx, dword [sym.imp.USER32.dll_InflateRect]
push 0xffffffffffffffff
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call ebx
mov ecx, dword [esi + 0x68]
mov eax, 0xfffffffd
cmp ecx, eax
jne 0x40e2c3
cmp dword [esi + 0x64], eax
je 0x40e2c3
push 0x16
call ebp
push eax
lea eax, [esp + 0x2c]
push eax
jmp 0x40e2cd
push 0xf
call ebp
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0043a340
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x60]
shl eax, 1
mov dword [esp + 0x50], ecx
mov ecx, eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x34]
neg ecx
push ecx
neg eax
mov dword [esp + 0x58], edx
push eax
lea edx, [esp + 0x50]
push edx
call ebx
push 0x10
call ebp
push eax
push 1
push 0
lea ecx, [esp + 0x2c]
call fcn.00436daa
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x64], 0
call fcn.00436cee
mov edx, dword [edi]
push 5
mov ecx, edi
mov ebp, eax
call dword [edx + 0x24]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
push ebp
mov ecx, edi
call fcn.00436cee
mov ecx, dword [esi + 0x64]
mov eax, 0xfffffffd
cmp ecx, eax
jne 0x40e37a
mov eax, dword [edi + 4]
push 0xf
push 4
lea edx, [esp + 0x30]
push edx
push eax
jmp 0x40e38c
cmp dword [esi + 0x68], eax
jne 0x40e392
mov edx, dword [edi + 4]
push 0xf
push 2
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [edi]
lea ecx, [esi + 0xa4]
push ecx
mov ecx, edi
call dword [eax + 0x28]
push 1
mov ecx, edi
mov ebx, eax
call fcn.00436387
mov esi, dword [esi + 0x6c]
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
push 0x25
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
mov ecx, edi
call dword [edx + 0x68]
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0x28]
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
jmp 0x40e5ad
lea ecx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x3c]
push ebx
mov ecx, esi
mov dword [esp + 0x74], eax
call fcn.0040da20
test eax, eax
je 0x40e5ba
mov edi, dword [esp + 0x68]
mov edx, dword [edi + 8]
push 0x26
push edx
mov dword [esp + 0x74], 0
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x40e432
push 0
lea eax, [esi + 0xac]
push eax
mov ecx, edi
call fcn.00436d34
mov ecx, dword [edi + 4]
push ecx
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [esi + 0x68], ebx
jne 0x40e44e
cmp dword [esi + 0x64], ebx
je 0x40e44e
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call ebp
push eax
lea edx, [esp + 0x3c]
push edx
jmp 0x40e45e
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call ebp
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.0043a340
cmp dword [esi + 0x64], ebx
jne 0x40e479
mov edx, dword [edi + 4]
push 0xf
push 4
lea ecx, [esp + 0x40]
push ecx
push edx
jmp 0x40e48b
cmp dword [esi + 0x68], ebx
jne 0x40e491
mov ecx, dword [edi + 4]
push 0xf
push 2
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [ebx*8 + 0x4551b8]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
or ecx, 0x200
shl ecx, 8
movzx edx, ah
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00436dfa
mov dword [esp + 0x60], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], vtable.CPen.0
push 0x10
mov byte [esp + 0x64], 2
call ebp
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call fcn.00436c12
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00436cee
lea edx, [esp + 0x10]
push edx
mov ecx, edi
mov ebx, eax
call fcn.00436cee
mov esi, dword [esi + 0x60]
mov ebp, eax
lea eax, [esi + 1]
mov ecx, eax
neg ecx
push ecx
neg eax
push eax
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
push ebx
mov ecx, edi
call fcn.00436cee
push ebp
mov ecx, edi
call fcn.00436cee
lea ecx, [esp + 0x18]
call fcn.00436c69
lea ecx, [esp + 0x10]
call fcn.00436c69
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x40e58e
mov edx, dword [edi + 8]
push 0x26
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x40e58e
push 0
push esi
mov ecx, edi
call fcn.00436d34
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 1
mov dword [esp + 0x10], esi
call fcn.00436c69
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
call fcn.00436c69
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 8