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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e299f
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
mov esi, dword [edi + 0x1c]
xor eax, eax
cmp esi, eax
mov dword [esp + 0x10], esi
je 0x10104778
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x30]
push edx
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add edx, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x101043a2
cmp byte [edi + 0x74], al
jne 0x10104778
mov edx, dword [edi]
mov eax, dword [edx + 0x88]
mov ecx, edi
jmp 0x10104776
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
lea eax, [edi + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x10104778
mov eax, dword [edi + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
jle 0x10104476
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
push edi
lea esi, [esp + 0x24]
call fcn.10103630
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
mov edx, esi
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x1010442a
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x101043e9
jmp 0x10104470
mov eax, dword [esp + 0x28]
movzx edx, word [esp + 0x1c]
add eax, 2
movzx ecx, ax
mov eax, dword [edi + 0x60]
shl ecx, 0x10
or ecx, edx
push ecx
push 0
push 0x412
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [edi + 0x64], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x68], edx
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], ecx
mov byte [edi + 0x74], 0
mov esi, dword [esp + 0x10]
xor eax, eax
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x14], edx
je 0x10104778
lea ecx, [esp + 0x2c]
push ecx
push eax
push 0x848
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x2c]
cmp byte [edx], 0
je 0x10104778
cmp dword [edi + 0x60], 0
je 0x10104778
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x70], ecx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], 0x30
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], edx
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov esi, dword [edi + 0x10]
test esi, esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], esi
je 0x1010450a
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov dword [esp + 0x140], 0
test esi, esi
jne 0x10104529
mov dword [esp + 0x140], 0xffffffff
jmp 0x10104778
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call edx
mov byte [esp + 0x140], 1
cmp dword [esp + 0x10], 0
jne 0x10104576
mov byte [esp + 0x140], 0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1010455d
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esp + 0x140], 0xffffffff
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
jmp 0x10104778
mov edx, 0x1022fcf8
lea eax, [esp + 0x114]
call fcn.10007690
mov bl, 2
mov byte [esp + 0x140], bl
mov eax, dword [esp + 0x14]
cmp eax, 4
ja case.default.0x1010459d
jmp dword [eax*4 + 0x101047a0]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0xe184
lea edx, [esp + 0xfc]
push edx
call eax
mov byte [esp + 0x140], 3
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x11c]
call fcn.10007880
mov byte [esp + 0x140], bl
lea ecx, [esp + 0xf8]
jmp 0x101046e8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push 0xe185
lea eax, [esp + 0xc4]
push eax
call edx
mov byte [esp + 0x140], 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x11c]
call fcn.10007880
mov byte [esp + 0x140], bl
lea ecx, [esp + 0xc0]
jmp 0x101046e8
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0xe186
lea edx, [esp + 0x8c]
push edx
call eax
mov byte [esp + 0x140], 5
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x11c]
call fcn.10007880
mov byte [esp + 0x140], bl
lea ecx, [esp + 0x88]
jmp 0x101046e8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push 0xe187
lea eax, [esp + 0xa8]
push eax
call edx
mov byte [esp + 0x140], 6
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x11c]
call fcn.10007880
mov byte [esp + 0x140], bl
lea ecx, [esp + 0xa4]
jmp 0x101046e8
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 0xe188
lea edx, [esp + 0xe0]
push edx
call eax
mov byte [esp + 0x140], 7
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x11c]
call fcn.10007880
mov byte [esp + 0x140], bl
lea ecx, [esp + 0xdc]
call fcn.10001dd0
cmp dword [esp + 0x12c], 8
jb 0x10104704
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x7c], ecx
jmp 0x1010470f
lea edx, [esp + 0x118]
mov dword [esp + 0x7c], edx
mov ecx, dword [edi + 0x60]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x58]
push eax
push 0
push 0x439
push ecx
call ebx
mov eax, dword [edi + 0x60]
lea edx, [esp + 0x58]
push edx
push 1
push 0x411
push eax
call ebx
mov byte [esp + 0x140], 1
lea ecx, [esp + 0x114]
call fcn.10001dd0
mov byte [esp + 0x140], 0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10104764
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x140], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.101d19cc
mov esp, ebp
pop ebp
ret 4