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

Disassembly:
push 0xffffffffffffffff
push 0x5296b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589758]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x74]
mov eax, dword [eax - 0xc]
mov ebx, dword [esp + 0x70]
test eax, eax
je 0x40ae8f
cmp ebx, 0xfffffffe
jne 0x40ae8f
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x7c]
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x64]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x84]
lea eax, [eax + edx*2]
push 0xf
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
call ebp
mov edi, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.004aab31
mov ebx, dword [esi + 0x80]
mov edx, dword [esi + 0x64]
sub ebx, dword [esi + 0x78]
push 0x10
mov dword [esp + 0x70], edx
call ebp
mov edx, dword [esi + 0x7c]
push eax
mov eax, dword [esp + 0x70]
lea ecx, [eax*4]
push 1
sub ebx, ecx
mov ecx, dword [esi + 0x78]
push ebx
push edx
lea edx, [ecx + eax*2]
push edx
mov ecx, edi
call fcn.004aadc2
mov ebx, dword [esi + 0x80]
mov eax, dword [esi + 0x64]
sub ebx, dword [esi + 0x78]
push 0x14
mov dword [esp + 0x70], eax
call ebp
mov edx, dword [esi + 0x7c]
push eax
mov eax, dword [esp + 0x70]
lea ecx, [eax*4]
push 1
sub ebx, ecx
mov ecx, dword [esi + 0x78]
push ebx
inc edx
push edx
lea edx, [ecx + eax*2]
push edx
mov ecx, edi
call fcn.004aadc2
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ebx, 0xfffffffe
cmp dword [esi + 0x6c], ebx
jne 0x40ae10
cmp dword [esi + 0x68], ebx
je 0x40ae10
push 0x16
call ebp
push eax
lea ecx, [esp + 0x30]
push ecx
jmp 0x40ae1a
push 0xf
call ebp
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.004aab31
cmp dword [esi + 0x68], ebx
jne 0x40ae35
mov ecx, dword [edi + 4]
push 0xf
push 5
lea eax, [esp + 0x34]
push eax
push ecx
jmp 0x40ae47
cmp dword [esi + 0x6c], ebx
jne 0x40ae4d
mov eax, dword [edi + 4]
push 0xf
push 0xa
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0xa8]
push eax
mov ecx, edi
call edx
push 1
mov ecx, edi
mov ebx, eax
call fcn.004a61d8
mov esi, dword [esi + 0x74]
mov edx, dword [esi - 0xc]
mov eax, dword [edi]
mov eax, dword [eax + 0x68]
push 0x25
lea ecx, [esp + 0x30]
push ecx
push edx
push esi
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push ebx
mov ecx, edi
call eax
jmp 0x40b206
mov ecx, dword [esi + 0x70]
cmp dword [ecx - 0xc], 0
je 0x40b026
cmp ebx, 0xfffffffd
jne 0x40b026
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
lea ebx, [esi + 0x88]
call ebp
mov edi, dword [esp + 0x6c]
push eax
push ebx
mov ecx, edi
call fcn.004aab31
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [sym.imp.USER32.dll_InflateRect]
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call ebx
mov eax, 0xfffffffd
cmp dword [esi + 0x6c], eax
jne 0x40af09
cmp dword [esi + 0x68], eax
je 0x40af09
push 0x16
call ebp
push eax
lea ecx, [esp + 0x30]
push ecx
jmp 0x40af13
push 0xf
call ebp
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.004aab31
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x64]
add eax, eax
mov dword [esp + 0x50], ecx
mov ecx, eax
neg ecx
push ecx
neg eax
mov dword [esp + 0x58], edx
push eax
lea edx, [esp + 0x54]
push edx
call ebx
push 0x10
call ebp
push eax
push 1
push 0
lea ecx, [esp + 0x30]
call fcn.004a782e
lea eax, [esp + 0x24]
push eax
mov ecx, edi
mov dword [esp + 0x68], 0
call fcn.004a744e
mov edx, dword [edi]
mov ebp, eax
mov eax, dword [edx + 0x24]
push 5
mov ecx, edi
call eax
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
push ebp
mov ecx, edi
call fcn.004a744e
mov eax, 0xfffffffd
cmp dword [esi + 0x68], eax
jne 0x40afc0
mov ecx, dword [edi + 4]
push 0xf
push 5
lea eax, [esp + 0x34]
push eax
push ecx
jmp 0x40afd2
cmp dword [esi + 0x6c], eax
jne 0x40afd8
mov eax, dword [edi + 4]
push 0xf
push 0xa
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0xa8]
push eax
mov ecx, edi
call edx
push 1
mov ecx, edi
mov ebx, eax
call fcn.004a61d8
mov esi, dword [esi + 0x70]
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x25
lea ecx, [esp + 0x30]
push ecx
push eax
push esi
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push ebx
mov ecx, edi
call edx
mov dword [esp + 0x24], vtable.CPen.0
lea ecx, [esp + 0x24]
jmp 0x40b1f9
lea ecx, [esp + 0x70]
push ecx
lea eax, [esp + 0x40]
push ebx
mov ecx, esi
mov dword [esp + 0x78], eax
call fcn.0040a6d0
test eax, eax
je 0x40b206
mov edi, dword [esp + 0x6c]
mov edx, dword [edi + 8]
push 0x26
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x40b078
push 0
lea eax, [esi + 0xb0]
push eax
mov ecx, edi
call fcn.004a752f
mov ecx, dword [edi + 4]
push ecx
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [esi + 0x6c], ebx
jne 0x40b094
cmp dword [esi + 0x68], ebx
je 0x40b094
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
call ebp
push eax
lea edx, [esp + 0x40]
push edx
jmp 0x40b0a4
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call ebp
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.004aab31
cmp dword [esi + 0x68], ebx
jne 0x40b0bf
mov edx, dword [edi + 4]
push 0xf
push 5
lea ecx, [esp + 0x44]
push ecx
push edx
jmp 0x40b0d1
cmp dword [esi + 0x6c], ebx
jne 0x40b0d7
mov ecx, dword [edi + 4]
push 0xf
push 0xa
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [ebx*8 + 0x5818c8]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
mov edx, eax
or ecx, 0x200
shr edx, 8
shl ecx, 8
movzx edx, dl
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004a78c6
mov dword [esp + 0x64], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], vtable.CPen.0
push 0x10
mov byte [esp + 0x68], 2
call ebp
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x18]
call fcn.004a732e
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004a7499
lea edx, [esp + 0x14]
push edx
mov ecx, edi
mov ebx, eax
call fcn.004a744e
mov esi, dword [esi + 0x64]
mov ebp, eax
lea eax, [esi + 1]
mov ecx, eax
neg ecx
push ecx
neg eax
push eax
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
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.004a7499
push ebp
mov ecx, edi
call fcn.004a744e
lea ecx, [esp + 0x1c]
call fcn.004a7386
lea ecx, [esp + 0x14]
call fcn.004a7386
mov edx, dword [edi + 8]
push 0x26
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x40b1d7
mov eax, dword [esp + 0x6c]
push 0
push eax
mov ecx, edi
call fcn.004a752f
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 1
mov dword [esp + 0x14], vtable.CPen.0
call fcn.00404e40
mov dword [esp + 0x1c], vtable.CBrush.0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00404e40
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8