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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55c308
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5b4e20]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4e20]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
cmp byte [ebx + 0x1c9], 0
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], esi
je 0x40f082
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebx + 0x20]
jne 0x40f082
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x40f082
push dword [esp + 0x4c]
mov esi, dword [ebx + 0x20]
push dword [esp + 0x4c]
call dword [sym.imp.USER32.dll_WindowFromPoint]
push 0
push 0
push 0xf2
push esi
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
jne 0x40f065
call esi
test al, 4
jne 0x40f07e
push 0
push 1
push 0xf3
push dword [ebx + 0x20]
call esi
jmp 0x40f731
call esi
test al, 4
je 0x40f07e
push 0
push 0
push 0xf3
push dword [ebx + 0x20]
call esi
jmp 0x40f731
mov esi, dword [esp + 0x2c]
call fcn.00410b4a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f09e
push 0x80004005
call fcn.00402a20
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x80], 0
push dword [esi + 0x18]
call fcn.0041b652
movq xmm0, qword [esi + 0x1c]
movq qword [esp + 0x50], xmm0
movq xmm0, qword [esi + 0x24]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
movq qword [esp + 0x58], xmm0
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x34], eax
mov eax, edi
sub eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], edx
movsx ecx, word [eax + 0x25c]
sub ebx, ecx
lea eax, [esi + 2]
add eax, ecx
sub ebx, 2
lea ecx, [esp + 0x14]
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edi
call fcn.0041ab43
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x80], 1
test ebx, ebx
jne 0x40f13b
xor eax, eax
jmp 0x40f13e
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.0041b3aa
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], vtable.CBitmap.0
push dword [esp + 0x38]
mov byte [esp + 0x84], 2
push dword [esp + 0x38]
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x40]
call fcn.0041b3e0
push dword [esp + 0x40]
push dword [esp + 0x1c]
call fcn.0041bb1e
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.004157db
push 1
lea ecx, [esp + 0x18]
call fcn.0041bc69
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x28], 0
je 0x40f1d1
lea eax, [ebx + 0x74]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x28]
mov dword [esp + 0x28], eax
jmp 0x40f1e8
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
test eax, eax
je 0x40f1e8
push eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebx + 0x26c], 0
je 0x40f24a
mov eax, dword [ebx + 0x290]
cmp eax, 0x100
je 0x40f23a
cmp eax, 0x200
je 0x40f228
cmp eax, 0x300
jne 0x40f24a
mov eax, dword [ebx + 0x288]
add dword [esp + 0x64], eax
movsx eax, word [ebx + 0x25c]
or ecx, 0xffffffff
sub ecx, eax
add dword [esp + 0x6c], ecx
jmp 0x40f24a
mov eax, dword [ebx + 0x27c]
sub eax, dword [ebx + 0x284]
add dword [esp + 0x68], eax
jmp 0x40f24a
mov eax, dword [ebx + 0x284]
sub eax, dword [ebx + 0x27c]
add dword [esp + 0x60], eax
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 0x10]
test al, 4
je 0x40f363
cmp dword [ebx + 0xf8], 0
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
lea ecx, [ebx + 0xf8]
je 0x40f27d
push 0
push 0
push dword [esp + 0x20]
call fcn.0040e880
jmp 0x40f290
push 0xf
call edi
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041da5a
mov ecx, dword [ebx + 0x288]
mov eax, dword [ebx + 0x284]
mov edx, dword [ebx + 0x278]
sub ecx, dword [ebx + 0x280]
sub eax, dword [ebx + 0x27c]
test edx, edx
jne 0x40f2cb
push 0x23
push ecx
push eax
push dword [ebx + 0x280]
push dword [ebx + 0x27c]
push edx
push dword [ebx + 0x26c]
jmp 0x40f2de
push 3
push ecx
push eax
push dword [ebx + 0x280]
push dword [ebx + 0x27c]
push 0
push edx
push 0
push 0
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_DrawStateA]
cmp dword [ebx + 0x268], 0
je 0x40f311
cmp byte [ebx + 0x294], 0
jne 0x40f311
push 0xf
push 5
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_DrawEdge]
mov esi, dword [esp + 0x14]
push 0x14
call edi
push eax
lea ecx, [esp + 0x18]
call dword [esi + 0x30]
push dword [ebx + 0x28c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x64]
push ecx
push dword [eax - 0xc]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x24]
call dword [eax + 0x68]
mov esi, dword [esp + 0x14]
push 0x11
call edi
push eax
lea ecx, [esp + 0x18]
call dword [esi + 0x30]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x40f672
test al, 1
jne 0x40f4be
cmp byte [ebx + 0x88], 0
jne 0x40f4be
cmp dword [ebx + 0x90], 0
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
je 0x40f3c3
cmp byte [ebx + 0x1c8], 0
je 0x40f3ae
cmp dword [ebx + 0x12c], 0
lea ecx, [ebx + 0x12c]
je 0x40f3ae
push 0
push 0
push dword [esp + 0x20]
call fcn.0040e880
jmp 0x40f3d6
push 0
push 0
push dword [esp + 0x20]
lea ecx, [ebx + 0x90]
call fcn.0040e880
jmp 0x40f3d6
push 0xf
call esi
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041da5a
mov edx, dword [ebx + 0x274]
test edx, edx
je 0x40f3e9
cmp byte [ebx + 0x1c8], 0
jne 0x40f3f3
mov edx, dword [ebx + 0x26c]
test edx, edx
je 0x40f42c
mov ecx, dword [ebx + 0x288]
sub ecx, dword [ebx + 0x280]
mov eax, dword [ebx + 0x284]
sub eax, dword [ebx + 0x27c]
push 3
push ecx
push eax
push dword [ebx + 0x280]
push dword [ebx + 0x27c]
push 0
push edx
push 0
push 0
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_DrawStateA]
cmp dword [ebx + 0x268], 0
je 0x40f5c4
cmp byte [ebx + 0x1c8], 0
jne 0x40f44f
cmp byte [ebx + 0x294], 0
jne 0x40f5c4
test byte [edi + 0x10], 0x20
je 0x40f48f
mov esi, dword [sym.imp.USER32.dll_DrawEdge]
push 0xf
push 0xa
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x24]
call esi
mov edi, dword [sym.imp.USER32.dll_InflateRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x58]
push eax
call edi
push 0xf
push 5
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x24]
call esi
jmp 0x40f5ca
cmp byte [ebx + 0x294], 0
je 0x40f4b5
push 0x10
call esi
push eax
push 0x14
call esi
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
call fcn.0041d70e
jmp 0x40f5c4
push 0xf
push 5
jmp 0x40f5b5
cmp dword [ebx + 0xc4], 0
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
lea ecx, [ebx + 0xc4]
je 0x40f4e6
mov eax, dword [ebx + 0x268]
push eax
push eax
push dword [esp + 0x20]
call fcn.0040e880
jmp 0x40f4f9
push 0xf
call esi
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041da5a
cmp dword [ebx + 0x270], 0
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
je 0x40f571
cmp byte [ebx + 0x89], 0
je 0x40f51e
push 1
lea eax, [ebx + 0x27c]
push 1
push eax
call edi
mov ecx, dword [ebx + 0x288]
sub ecx, dword [ebx + 0x280]
mov eax, dword [ebx + 0x284]
sub eax, dword [ebx + 0x27c]
lea esi, [ebx + 0x27c]
push 3
push ecx
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [ebx + 0x270]
push 0
push 0
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_DrawStateA]
cmp byte [ebx + 0x89], 0
je 0x40f56b
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call edi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
cmp byte [ebx + 0x89], 0
je 0x40f585
push 1
push 1
lea eax, [esp + 0x68]
push eax
call edi
cmp dword [ebx + 0x268], 0
je 0x40f5c4
cmp byte [ebx + 0x294], 0
je 0x40f5b1
push 0x14
call esi
push eax
push 0x10
call esi
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
call fcn.0041d70e
jmp 0x40f5c4
push 0xf
push 0xa
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_DrawEdge]
mov edi, dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x2c]
test byte [eax + 0x10], 0x10
je 0x40f650
movzx eax, word [ebx + 0x25c]
test ax, ax
jle 0x40f650
cwde
neg eax
push eax
push eax
lea eax, [esp + 0x58]
push eax
call edi
mov eax, dword [esp + 0x50]
push dword [esp + 0x54]
inc eax
push eax
push dword [esp + 0x20]
lea ecx, [ebx + 0x160]
call fcn.0040e880
mov eax, dword [esp + 0x50]
push dword [esp + 0x5c]
inc eax
push eax
push dword [esp + 0x20]
lea ecx, [ebx + 0x160]
call fcn.0040e880
mov eax, dword [esp + 0x54]
inc eax
push eax
push dword [esp + 0x54]
lea ecx, [ebx + 0x194]
push dword [esp + 0x20]
call fcn.0040e880
mov eax, dword [esp + 0x54]
inc eax
push eax
push dword [esp + 0x5c]
lea ecx, [ebx + 0x194]
push dword [esp + 0x20]
call fcn.0040e880
cmp byte [ebx + 0x1c8], 0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
je 0x40f669
push dword [ebx + 0x264]
jmp 0x40f66f
push dword [ebx + 0x260]
call dword [eax + 0x30]
push dword [ebx + 0x28c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x64]
push ecx
push dword [eax - 0xc]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x24]
call dword [eax + 0x68]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40f6a4
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x28]
mov eax, dword [esp + 0x30]
push 0xcc0020
push 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x48]
push dword [esp + 0x48]
push 0
push 0
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40f6de
push dword [eax + 4]
push dword [esp + 0x1c]
call fcn.0041bb1e
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.CBitmap.0
call fcn.00402590
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 0
call fcn.0041ac83
mov dword [esp + 0x80], 0xffffffff
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f731
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005308a3
mov esp, ebp
pop ebp
ret 4