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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5e10
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x6360e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x20], eax
mov edi, dword [eax + 4]
lea ecx, [ebp - 0x14]
mov dword [eax], vtable.nana::widget_object_struct_nana::category::root_tag__class_nana::drawerbase::menu::menu_drawer__struct_nana::general_events__struct_nana::widget_geometrics__void_.0
mov eax, dword [0x5f0e90]
mov ebx, dword [eax]
add ebx, 0x54
push ebx
mov dword [ebp - 0x10], ebx
call fcn.00524170
mov esi, dword [ebx + 4]
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x4cf3a1
xor ecx, ecx
nop dword [eax]
cmp byte [esi + ecx + 4], 0
je 0x4cf116
mov eax, dword [esi + 0x20]
cmp dword [eax + ecx*8], edi
lea eax, [eax + ecx*8]
je 0x4cf22f
inc ecx
cmp ecx, 5
jb 0x4cf100
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x24]
call fcn.004950f0
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x4cf13e
mov byte [ebp - 0x18], 1
cmp edi, dword [eax + 0x10]
jae 0x4cf142
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
lea ecx, [esi + 4]
push edi
call fcn.00524500
test al, al
je 0x4cf3a1
test byte [edi + 0x74], 0x40
jne 0x4cf3a1
cmp dword [edi + 0xb0], 5
jne 0x4cf248
push ecx
push 0
mov ecx, 0x65d354
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0x602ef8
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x30], 0
call fcn.00516f20
push eax
push 1
lea eax, [ebp - 0x3c]
mov ecx, 0x65d354
push eax
push edi
push 0xd
call fcn.004e5020
cmp byte [ebp - 0x30], 0
jne 0x4cf222
test byte [edi + 0x74], 8
jne 0x4cf1b9
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4cf1b9
test byte [eax + 0x74], 0x10
je 0x4cf1ce
push 4
push dword [edi + 0xc8]
call dword [sym.imp.USER32.dll_GetWindow]
mov ecx, eax
call fcn.0051eda0
test byte [edi + 0x74], 0x40
jne 0x4cf1f2
mov eax, dword [edi + 0x60]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4cf1ea
mov dword [eax + 8], 0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [edi + 0xc8]
test esi, esi
je 0x4cf222
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
jne 0x4cf222
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4cf222
push 0
push 0
push 0x505
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
jmp 0x4cf3a7
cmp ecx, 0xffffffff
je 0x4cf11c
add eax, 4
je 0x4cf11c
mov al, byte [eax]
jmp 0x4cf14e
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00524170
mov esi, dword [ebx + 4]
xor ecx, ecx
mov dword [ebp - 0x18], edi
nop dword [eax]
cmp byte [ecx + esi + 4], 0
je 0x4cf272
mov eax, dword [esi + 0x20]
cmp dword [eax + ecx*8], edi
lea eax, [eax + ecx*8]
je 0x4cf2e0
inc ecx
cmp ecx, 5
jb 0x4cf260
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x24]
call fcn.004950f0
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x4cf29a
mov byte [ebp - 0x18], 1
cmp edi, dword [eax + 0x10]
jae 0x4cf29e
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
lea ecx, [esi + 4]
push edi
call fcn.00524500
test al, al
jne 0x4cf2ee
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
cmp dword [edx + 0x30], eax
jne 0x4cf2cf
add dword [edx + 0x34], 0xffffffff
jne 0x4cf2cf
mov eax, dword [ecx]
mov dword [eax + 0x30], 0
push dword [ecx]
call fcn.00562f90
add esp, 4
call esi
jmp 0x4cf3a7
cmp ecx, 0xffffffff
je 0x4cf278
add eax, 4
je 0x4cf278
mov al, byte [eax]
jmp 0x4cf2aa
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x38]
mov ebx, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], eax
test esi, esi
je 0x4cf35b
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0xd8]
cmp eax, ecx
je 0x4cf35b
lea edx, [eax + 4]
cmp dword [eax], edi
je 0x4cf33a
mov eax, edx
cmp eax, ecx
jne 0x4cf320
push edi
mov edi, dword [ebp - 0x10]
mov ecx, edi
call fcn.00523c70
jmp 0x4cf36a
sub ecx, edx
push ecx
push edx
push eax
call fcn.00578ab0
add dword [esi + 0xd8], 0xfffffffc
add esp, 0xc
push edi
mov edi, dword [ebp - 0x10]
mov ecx, edi
call fcn.00523c70
jmp 0x4cf36a
push edi
mov edi, dword [ebp - 0x10]
mov ecx, edi
call fcn.00523c70
test esi, esi
je 0x4cf38c
mov eax, dword [ebp - 0x18]
nop dword [eax]
cmp dword [esi + 0xb0], 3
jne 0x4cf389
add eax, dword [esi + 0x10]
add ebx, dword [esi + 0xc]
mov esi, dword [esi + 0x38]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x4cf370
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
push 0
push 0
push esi
call fcn.00521030
jmp 0x4cf2ae
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
cmp dword [edx + 0x30], eax
jne 0x4cf3c0
add dword [edx + 0x34], 0xffffffff
jne 0x4cf3c0
mov eax, dword [ecx]
mov dword [eax + 0x30], 0
push dword [ecx]
call fcn.00562f90
mov ebx, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x4cf3da
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4cf402
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4cf402
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4cf402
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x4c]
lea esi, [ebx + 0x28]
test ecx, ecx
je 0x4cf421
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret