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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x80], ebx
mov eax, dword [esi + 0x60]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x84], edi
or eax, 0x2000000
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], edi
mov dword [esi + 0x20], eax
movups xmm0, xmmword [esp + 0x80]
movups xmmword [esp + 0x38], xmm0
movups xmmword [esi + 0x1a8], xmm0
test eax, 0x200000
je 0x54e620
or eax, 0x4000000
mov dword [esi + 0x20], eax
lea eax, [esp + 0x90]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x90]
add edi, dword [esp + 0x94]
add ebp, ebx
push dword [esi]
xor bl, bl
mov dword [esp + 0x20], edi
mov byte [esp + 0x1b], bl
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
jmp 0x54e678
mov edi, dword [esp + 0x1c]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x54e825
mov eax, dword ds:[esp + 0x98]
cmp ebp, dword [esp + 0x90]
jl 0x54e6b1
cmp ebp, eax
jg 0x54e6b1
xor bh, bh
jmp 0x54e6b3
mov bh, 1
mov edx, dword ds:[esp + 0x9c]
cmp edi, dword [esp + 0x94]
jl 0x54e6d1
cmp edi, edx
jg 0x54e6d1
xor cl, cl
jmp 0x54e6d3
mov cl, 1
test byte [esi + 0x20], 4
je 0x54e775
nop dword [eax]
test cl, cl
je 0x54e775
lea eax, [esp + 0xa0]
mov dword [esp + 0xa0], 0x1c
push eax
push 2
push dword [esi + 0x10]
cmp edi, edx
mov dword [esp + 0xb0], 7
setg bl
call dword [sym.imp.USER32.dll_GetScrollInfo]
test bl, bl
je 0x54e755
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x54e742
mov eax, 1
sub eax, ecx
mov ecx, dword [esp + 0xac]
add ecx, eax
cmp dword [esp + 0xb4], ecx
setl al
jmp 0x54e766
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0xb4], ecx
setl al
jmp 0x54e766
mov eax, dword [esp + 0xb4]
cmp eax, dword [esp + 0xa8]
setg al
test al, al
jne 0x54e80a
mov eax, dword [esp + 0x98]
test byte [esi + 0x20], 8
je 0x54e817
nop
test bh, bh
je 0x54e817
cmp ebp, eax
mov dword [esp + 0xa0], 0x1c
lea eax, [esp + 0xa0]
mov dword [esp + 0xa4], 7
push eax
push 2
push dword [esi + 0x14]
setg bl
call dword [sym.imp.USER32.dll_GetScrollInfo]
test bl, bl
je 0x54e7f5
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x54e7e2
mov eax, 1
sub eax, ecx
mov ecx, dword [esp + 0xac]
add ecx, eax
cmp dword [esp + 0xb4], ecx
setl al
jmp 0x54e806
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0xb4], ecx
setl al
jmp 0x54e806
mov eax, dword [esp + 0xb4]
cmp eax, dword [esp + 0xa8]
setg al
test al, al
je 0x54e817
push edi
push ebp
call dword [sym.imp.USER32.dll_SetCursorPos]
jmp 0x54eb91
call dword [sym.imp.USER32.dll_WaitMessage]
nop dword [eax]
jmp 0x54eb91
mov eax, dword ds:[esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ebp
cmp eax, 0x200
ja 0x54ec16
je 0x54e8eb
sub eax, 0x100
je 0x54e885
nop dword [eax + eax]
sub eax, 2
je case.0x54ec32.522
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
nop
jmp case.0x54ec32.522
cmp dword [esp + 0x6c], 0x1b
jne case.0x54ec32.522
lea eax, [esp + 0x50]
or edx, 0xffffffff
push eax
lea eax, [esp + 0x58]
mov ecx, esi
push eax
push 4
push 0xffffffffffffffff
call fcn.0054a300
mov edx, dword ds:[esp + 0x54]
lea eax, [esp + 0xcc]
push eax
push 1
push dword [esp + 0x58]
mov ecx, esi
call fcn.0054a020
test al, al
je 0x54e8db
push 0
lea eax, [esp + 0xd0]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
nop dword [eax + eax]
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp case.0x54ec32.522
mov eax, dword [esp + 0x70]
xor edi, edi
mov ebx, dword [esi + 0x20]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x58], ecx
test bl, 4
je 0x54e942
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x54e929
mov eax, dword [esi + 0x4c]
dec edx
sub eax, ecx
add eax, edx
cdq
idiv dword [esi + 0x4c]
neg eax
jmp 0x54e942
mov edx, dword [esp + 0x9c]
cmp ecx, edx
jl 0x54e942
mov eax, dword [esi + 0x4c]
sub eax, edx
mov edx, ecx
dec edx
add eax, edx
cdq
idiv dword [esi + 0x4c]
test bl, 8
je 0x54e961
mov ecx, dword [esp + 0x90]
cmp ebp, ecx
jl 0x54e95d
mov ecx, dword [esp + 0x98]
cmp ebp, ecx
jl 0x54e961
mov edi, ebp
sub edi, ecx
mov ebx, dword [esi + 0x58]
mov ebp, dword [esi + 0x5c]
test eax, eax
jne 0x54e96f
test edi, edi
je 0x54e979
push edi
mov edx, eax
mov ecx, esi
call fcn.0054b920
mov ecx, dword [esi + 0x5c]
sub ebp, ecx
mov edi, dword [esi + 0x58]
sub ebx, edi
mov eax, dword [esp + 0x20]
imul ebx, dword [esi + 0x4c]
add eax, ebp
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x34], edx
cmovl eax, dword [esp + 0x20]
add dword [esp + 0x30], ebx
mov dword [esp + 0x20], eax
mov eax, edx
cmp dword [esp + 0x34], eax
jl 0x54e9d6
mov eax, dword [esp + 0x2c]
add eax, ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
add eax, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], eax
jmp 0x54e9e4
mov eax, dword [esp + 0x18]
add eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov ebp, dword [esi + 0x20]
add eax, ebx
mov edx, dword [esi + 0x48]
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], eax
mov eax, ecx
neg eax
xor ecx, ecx
and ebp, 0x10
cmove ecx, eax
mov eax, dword [esi + 0xd4]
sub edx, edi
mov dword [esp + 0x5c], ecx
mov edi, dword [esi + 0xb0]
add edi, dword [esi + 0x68]
mov ebx, dword [eax]
sub ebx, dword [esi + 0x58]
imul ebx, dword [esi + 0x4c]
sub edi, dword [esi + 0x5c]
add ebx, dword [esi + 0x48]
test byte [esi + 0x20], 4
je 0x54ea33
mov eax, dword [esi + 0x50]
jmp 0x54ea35
xor eax, eax
mov ecx, dword ds:[esi + 0x40]
sub ecx, eax
cmp edi, ecx
cmovg ecx, edi
test ebp, ebp
jne 0x54ea4f
test byte [esi + 0x20], 8
je 0x54ea4f
mov edi, dword [esi + 0x54]
jmp 0x54ea51
xor edi, edi
mov eax, dword ds:[esi + 0x44]
mov ebp, dword [esp + 0x20]
sub eax, edi
cmp ebx, eax
cmovg eax, ebx
mov ebx, dword [esp + 0x58]
cmp ebx, dword [esp + 0x5c]
cmovl ebx, dword [esp + 0x5c]
cmp ebx, ecx
cmovg ebx, ecx
cmp dword [esp + 0x60], edx
cmovge edx, dword [esp + 0x60]
cmp edx, eax
cmovg edx, eax
cmp ebp, ebx
jge 0x54ea88
mov ecx, ebp
jmp 0x54ea8c
mov ecx, ebx
mov ebx, ebp
mov edi, dword ds:[esp + 0x30]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x80], ecx
cmp edi, edx
jge 0x54eaa8
mov eax, edi
jmp 0x54eaac
mov eax, edx
mov edx, edi
mov edi, dword ds:[esp + 0x2c]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x84], eax
cmp ecx, edi
jne 0x54eada
cmp eax, dword [esp + 0x18]
jne 0x54eada
cmp ebx, dword [esp + 0x28]
jne 0x54eada
cmp edx, dword [esp + 0x24]
je 0x54eb8d
cmp ecx, edi
movups xmm0, xmmword [esp + 0x80]
cmovl edi, ecx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0xbc], edi
movups xmmword [esi + 0x1a8], xmm0
cmovl ecx, eax
mov eax, dword [esp + 0x28]
cmp ebx, eax
mov dword [esp + 0xc0], ecx
mov ecx, esi
cmovg eax, ebx
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x24]
cmp edx, eax
cmovg eax, edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0054ed20
push 0x101
push 0
lea eax, [esp + 0xc4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_RedrawWindow]
movups xmm0, xmmword [esp + 0x80]
mov dword [esp + 0x20], ebp
movups xmmword [esp + 0x38], xmm0
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x4c]
mov bl, byte [esp + 0x17]
mov edi, dword [esi]
call dword [sym.imp.USER32.dll_GetCapture]
nop dword [eax]
cmp eax, edi
je 0x54e674
and dword ds:[esi + 0x20], 0xfdffffff
lea eax, [esp + 0x80]
push 0x101
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_RedrawWindow]
test bl, bl
je 0x54ebfb
mov eax, dword [esp + 0x94]
add eax, dword [esp + 0xe4]
mov edx, dword [esi]
movzx ecx, ax
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0x34]
shl ecx, 0x10
movzx eax, ax
or ecx, eax
push ecx
push edx
push 0x7b
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00583f7f
add esp, 0xd0
ret 4
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x54ec32.515
movzx eax, byte [eax + 0x54ec68]
jmp dword [eax*4 + 0x54ec58]
call dword [sym.imp.USER32.dll_ReleaseCapture]
nop
jmp case.0x54ec32.522
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov bl, 1
mov byte [esp + 0x17], bl
jmp case.0x54ec32.522