Function at 0x54e5c0
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 0x54e640
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 0x54e698
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 0x54e845
mov eax, dword ds:[esp + 0x98]
cmp ebp, dword [esp + 0x90]
jl 0x54e6d1
cmp ebp, eax
jg 0x54e6d1
xor bh, bh
jmp 0x54e6d3
mov bh, 1
mov edx, dword ds:[esp + 0x9c]
cmp edi, dword [esp + 0x94]
jl 0x54e6f1
cmp edi, edx
jg 0x54e6f1
xor cl, cl
jmp 0x54e6f3
mov cl, 1
test byte [esi + 0x20], 4
je 0x54e795
nop dword [eax]
test cl, cl
je 0x54e795
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
ret
call dword [sym.imp.USER32.dll_GetScrollInfo]
test bl, bl
je 0x54e775
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x54e762
mov eax, 1
sub eax, ecx
mov ecx, dword [esp + 0xac]
add ecx, eax
cmp dword [esp + 0xb4], ecx
setl al
jmp 0x54e786
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0xb4], ecx
setl al
jmp 0x54e786
mov eax, dword [esp + 0xb4]
cmp eax, dword [esp + 0xa8]
setg al
test al, al
jne 0x54e82a
mov eax, dword [esp + 0x98]
test byte [esi + 0x20], 8
je 0x54e837
nop
test bh, bh
je 0x54e837
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 0x54e815
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x54e802
mov eax, 1
sub eax, ecx
mov ecx, dword [esp + 0xac]
add ecx, eax
cmp dword [esp + 0xb4], ecx
setl al
jmp 0x54e826
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0xb4], ecx
setl al
jmp 0x54e826
mov eax, dword [esp + 0xb4]
cmp eax, dword [esp + 0xa8]
setg al
test al, al
je 0x54e837
push edi
push ebp
call dword [sym.imp.USER32.dll_SetCursorPos]
jmp 0x54ebb1
call dword [sym.imp.USER32.dll_WaitMessage]
nop dword [eax]
jmp 0x54ebb1
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 0x54ec36
je 0x54e90b
sub eax, 0x100
je 0x54e8a5
nop dword [eax + eax]
sub eax, 2
je case.0x54ec52.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.0x54ec52.522
cmp dword [esp + 0x6c], 0x1b
jne case.0x54ec52.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.0054a320
mov edx, dword ds:[esp + 0x54]
lea eax, [esp + 0xcc]
push eax
push 1
push dword [esp + 0x58]
mov ecx, esi
call fcn.0054a040
test al, al
je 0x54e8fb
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.0x54ec52.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 0x54e962
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x54e949
mov eax, dword [esi + 0x4c]
dec edx
sub eax, ecx
add eax, edx
cdq
idiv dword [esi + 0x4c]
neg eax
jmp 0x54e962
mov edx, dword [esp + 0x9c]
cmp ecx, edx
jl 0x54e962
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 0x54e981
mov ecx, dword [esp + 0x90]
cmp ebp, ecx
jl 0x54e97d
mov ecx, dword [esp + 0x98]
cmp ebp, ecx
jl 0x54e981
mov edi, ebp
sub edi, ecx
mov ebx, dword [esi + 0x58]
mov ebp, dword [esi + 0x5c]
test eax, eax
jne 0x54e98f
test edi, edi
je 0x54e999
push edi
mov edx, eax
mov ecx, esi
call fcn.0054b940
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 0x54e9f6
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 0x54ea04
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 0x54ea53
mov eax, dword [esi + 0x50]
jmp 0x54ea55
xor eax, eax
mov ecx, dword ds:[esi + 0x40]
sub ecx, eax
cmp edi, ecx
cmovg ecx, edi
test ebp, ebp
jne 0x54ea6f
test byte [esi + 0x20], 8
je 0x54ea6f
mov edi, dword [esi + 0x54]
jmp 0x54ea71
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 0x54eaa8
mov ecx, ebp
jmp 0x54eaac
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 0x54eac8
mov eax, edi
jmp 0x54eacc
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 0x54eafa
cmp eax, dword [esp + 0x18]
jne 0x54eafa
cmp ebx, dword [esp + 0x28]
jne 0x54eafa
cmp edx, dword [esp + 0x24]
je 0x54ebad
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.0054ed40
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 0x54e694
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 0x54ec1b
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.00583f9f
add esp, 0xd0
ret 4
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x54ec52.515
movzx eax, byte [eax + 0x54ec88]
jmp dword [eax*4 + 0x54ec78]
call dword [sym.imp.USER32.dll_ReleaseCapture]
nop
jmp case.0x54ec52.522
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov bl, 1
mov byte [esp + 0x17], bl
jmp case.0x54ec52.522