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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x49f014]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x38]
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x1c], ebx
push dword [ebx + 0x38]
call esi
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
cmp eax, 0xd
ja case.0x41852c.41
jmp dword [eax*4 + 0x418718]
mov edx, dword [ebx + 0xc4]
mov ecx, 1
cmp edx, 0xffffffff
push 1
lea eax, [edx + 1]
cmovne ecx, eax
push ecx
jmp 0x418681
mov eax, dword [ebx + 0xc4]
cmp eax, 0xffffffff
je 0x418563
cmp eax, 1
jae 0x41867d
xor eax, eax
jmp 0x41867e
lea eax, [esp + 0x24]
push eax
push dword [ebx + 0x38]
call esi
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x4c]
cdq
idiv dword [ebx + 0x78]
mov ebx, dword [ebx + 0xc4]
xor edx, edx
mov dword [esp + 0x14], ecx
nop
mov edi, dword [esp + 0x14]
lea ecx, [ebx + edx]
imul ecx, ecx, 0x23c
mov esi, edx
sub eax, dword [ecx + edi + 0x84]
mov edi, dword [ebp + 8]
test eax, eax
jle 0x4185c0
xor edx, edx
cmp edi, 0x22
sete dl
lea edx, [edx*2 - 1]
add edx, esi
jmp 0x418590
mov ebx, dword [esp + 0x18]
push ecx
push edx
mov ecx, ebx
call fcn.004170a0
jmp case.0x41852c.41
mov edx, dword [ebx + 0xc4]
cmp edx, 0xffffffff
je case.0x41852c.41
mov eax, dword [ebx + 0x4c]
imul ecx, edx, 0x23c
push 1
cmp byte [ecx + eax + 0x80], 0
mov ecx, ebx
sete al
movzx eax, al
push eax
push edx
call fcn.00417480
jmp case.0x41852c.41
mov edx, dword [ebx + 0xc4]
cmp edx, 0xffffffff
je case.0x41852c.41
mov eax, dword [ebx + 0x4c]
imul ecx, edx, 0x23c
push 1
cmp byte [ecx + eax + 0x80], 0
mov ecx, ebx
sete al
movzx eax, al
push eax
push edx
call fcn.00417480
mov eax, dword [ebx + 0xc4]
mov ecx, ebx
push 1
cmp eax, 0xffffffff
jne 0x418648
push 1
jmp 0x418683
inc eax
push eax
jmp 0x418683
mov eax, dword [ebx]
mov ecx, ebx
push 0
push 0
push 0
call dword [eax + 0x8c]
jmp case.0x41852c.41
mov eax, dword [ebx]
mov ecx, ebx
push 0
push 0
push 1
call dword [eax + 0x8c]
jmp case.0x41852c.41
push 1
push 0
jmp 0x418681
mov eax, dword [ebx + 0x44]
test eax, eax
je case.0x41852c.41
dec eax
push 1
push eax
mov ecx, ebx
call fcn.00416f40
push dword [ebx + 0x38]
mov esi, dword [ebx + 0xc4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4186ed
mov eax, dword [ebx + 0x38]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff4
push eax
mov dword [esp + 0x2c], eax
call edi
mov ecx, dword [ebp + 8]
push dword [ebx + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 9
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
lea eax, [esp + 0x24]
push eax
push 0xfffffffffffffff4
push dword [ebx + 0x38]
call edi
push eax
push 0x4e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x38]
push dword [ebx + 0x34]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045f9ee
mov esp, ebp
pop ebp
ret 0xc