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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
cmp edi, 0x20
je 0x450ac8
cmp edi, 0x200
jb 0x451017
cmp edi, 0x206
ja 0x451017
mov ebx, dword [esp + 0x6c]
movzx ecx, ax
mov dword [esp + 0x24], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x28], ecx
cmp edi, 0x20
jne 0x450b12
cmp edx, dword [ebx + 4]
jne 0x451017
cmp ax, 1
jne 0x451017
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx + 0xbc]
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp eax, edx
je 0x450bb9
mov esi, dword [eax + 0x20]
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.004525d0
mov ecx, dword [esi + 4]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ebx + 4]
lea esi, [ebx + 4]
push 0x1038
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], 2
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x34]
mov edx, dword [ebx + 0xbc]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x38]
mov ebp, eax
sub ebp, dword [edx + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ebp
mov ebp, ecx
sub ebp, dword [edx + 0x10]
mov dword [esp + 0x30], ebp
cmp edi, 0x200
jne 0x450de9
push ecx
push eax
add edx, 0xc
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x450d5b
mov ecx, dword [ebx + 0xbc]
mov dword [esp + 0x18], ecx
jmp 0x450d5b
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x54]
push ecx
push edx
mov edx, dword [ebx + 4]
lea esi, [ebx + 4]
push 0x1039
push edx
mov dword [esp + 0x64], eax
call ebp
cmp edi, 0x200
jne 0x450c58
cmp dword [ebx + 0x78], 0
je 0x450c58
mov eax, dword [ebx + 0x7c]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
je 0x450c58
mov dword [ebx + 0x7c], ecx
cmp eax, 0xffffffff
je 0x450c28
mov edx, dword [esi]
lea ecx, [esp + 0x44]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x54], 0
call ebp
mov ecx, dword [esi]
push 0
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebx + 0x7c]
cmp eax, 0xffffffff
je 0x450c58
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [esi]
push 0x100e
push eax
mov dword [esp + 0x54], 0
call ebp
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x450d4f
cmp dword [esp + 0x64], 0xffffffff
je 0x450d4f
push eax
mov edx, esi
call fcn.00454450
mov edi, eax
test edi, edi
je 0x450d4b
mov eax, dword [esp + 0x64]
cmp eax, dword [edi + 4]
jge 0x450d4b
test eax, eax
jl 0x450dd8
mov ecx, dword [edi]
cmp dword [ecx + eax*4], 0
je 0x450d4b
mov ecx, dword [esi]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
push eax
push 0x1038
push ecx
mov dword [esp + 0x54], 2
call ebp
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov ecx, edi
call fcn.0045ba30
mov edi, dword [eax]
mov edx, dword [edi + 0xc]
add edi, 8
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
test edx, edx
jle 0x450d4b
test ecx, ecx
jl 0x450dd8
cmp ecx, dword [edi + 4]
jge 0x450dd8
mov eax, dword [edi]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 4]
test al, 1
je 0x450d3e
shr eax, 2
not eax
test al, 1
je 0x450d3e
mov ecx, dword [esp + 0x38]
push ecx
push ebp
lea edx, [ebx + 0xc]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x450db9
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jl 0x450cf8
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
cmp edi, 0x200
jne 0x450de9
mov ecx, dword [ebx + 0xc0]
mov ebp, dword [esp + 0x18]
cmp ebp, ecx
je 0x450d8d
test ecx, ecx
je 0x450d74
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
call edx
mov dword [ebx + 0xc0], ebp
test ebp, ebp
je 0x450d8d
mov eax, dword [ebp]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x74]
mov dword [ecx], 0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x450ea3
cmp edi, 0x200
jne 0x450e60
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
jmp 0x450e8b
sub ebp, dword [ebx + 0xc]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], ebp
sub eax, dword [ebx + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], eax
jmp 0x450d47
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp edi, 0x20
jne 0x450d8d
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x450e0b
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
lea edx, [esp + 0x2c]
push edx
call eax
test eax, eax
je 0x450e0b
lea eax, [edi - 0x1f]
jmp 0x450e0d
xor eax, eax
cmp dword [ebx + 0xc4], 0
mov edi, dword [esp + 0x74]
mov dword [edi], eax
je 0x450e51
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x450e51
push eax
mov edx, esi
call fcn.00454450
test eax, eax
je 0x450e51
cmp dword [eax + 0x18], 1
jne 0x450e51
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [edi], 1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
cmp edi, 0x201
jne 0x450e6f
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
jmp 0x450e8b
cmp edi, 0x202
jne 0x450e7e
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
jmp 0x450e8b
cmp edi, 0x203
jne 0x450ea3
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x2c]
push eax
call edx
mov ecx, dword [esp + 0x74]
mov edx, ecx
mov dword [ecx], eax
cmp dword [edx], 0
jne 0x451017
mov ebp, dword [sym.imp.USER32.dll_GetParent]
cmp edi, 0x201
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
jne 0x450eef
mov eax, dword [esi]
push eax
mov dword [esp + 0x48], eax
call edi
mov ecx, dword [esi]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
push ecx
mov dword [esp + 0x50], 0xffffd8ec
mov dword [esp + 0x54], eax
call ebp
lea edx, [esp + 0x44]
push edx
push 0
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x70]
jmp 0x450eff
mov ecx, dword [esp + 0x70]
cmp ecx, 0x204
jne 0x450faa
mov eax, dword [ebx + 0x80]
mov edx, dword [esp + 0x60]
cmp edx, eax
je 0x450fae
mov dword [ebx + 0x80], edx
cmp eax, 0xffffffff
je 0x450f48
mov edx, dword [esi]
lea ecx, [esp + 0x34]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x44], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi]
push 0
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebx, dword [ebx + 0x80]
cmp ebx, 0xffffffff
je 0x450f7f
mov eax, dword [esi]
lea edx, [esp + 0x34]
push edx
push ebx
push 0x100e
push eax
mov dword [esp + 0x44], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
push eax
mov dword [esp + 0x48], eax
call edi
mov ecx, dword [esp + 0x60]
mov edx, dword [esi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0xffffd8f0
mov dword [esp + 0x50], ecx
push edx
jmp 0x450ffb
mov edx, dword [esp + 0x60]
cmp ecx, 0x203
jne 0x450fce
cmp edx, 0xffffffff
je 0x45100d
mov eax, dword [esi]
push eax
mov dword [esp + 0x48], eax
call edi
mov dword [esp + 0x4c], 0xffffd8ef
jmp 0x450fec
cmp ecx, 0x205
jne 0x45100d
cmp edx, 0xffffffff
je 0x45100d
mov eax, dword [esi]
push eax
mov dword [esp + 0x48], eax
call edi
mov dword [esp + 0x4c], 0xffffd8ee
mov edx, dword [esp + 0x60]
mov dword [esp + 0x48], eax
mov eax, dword [esi]
push eax
mov dword [esp + 0x54], edx
call ebp
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x74]
mov dword [edx], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret 0xc