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

Disassembly:
sub esp, 0x17c
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x184]
cmp eax, 0x1f
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18c]
push edi
je 0x4bea1d
cmp eax, 0x201
je 0x4be367
cmp eax, 0x500
je 0x4be350
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x198]
push ecx
push edx
push eax
mov eax, dword [0x6073a0]
push esi
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
jmp 0x4bea45
mov ecx, dword [esp + 0x198]
mov dword [0x5acfc8], ecx
mov eax, 1
jmp 0x4bea45
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x30], 0
or edi, 0xffffffff
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x19c]
mov ebp, dword [esp + 0x198]
mov eax, dword [0x6073a0]
push ebx
push ebp
push 0x201
push esi
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
cmp dword [0x5acfc8], 0
jne 0x4be3cb
mov ecx, dword [0x6073a0]
push ebx
push ebp
push 0x202
push esi
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcA]
jmp 0x4bea43
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x18b
push esi
call ebp
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4bea43
mov edx, dword [esp + 0x198]
mov eax, dword [0x6073a0]
push ebx
push edx
push 0x202
push esi
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
push 0
push 0
push 0x1a1
push esi
call ebp
push 0
push 0
push 0x188
push esi
mov dword [0x607308], eax
call ebp
test eax, eax
mov dword [esp + 0x30], eax
jl 0x4bea43
mov edx, dword [esp + 0x24]
mov ecx, dword [0x607308]
sub edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00518a86
add esp, 8
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jge 0x4be462
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, 1
mov dword [esp + 0x10], eax
push 0
push 0x64
push 0x64
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
push eax
push ebx
call sym.convertifd.exe_IpMakePoint
mov eax, dword [0x607308]
mov ecx, dword [esp + 0x54]
cdq
sub eax, edx
add esp, 8
sar eax, 1
lea edx, [eax + ecx]
push edx
mov edx, dword [esp + 0x4c]
push edx
sub ecx, eax
push ecx
push edx
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push esi
mov dword [0x6073a4], 1
call dword [sym.imp.USER32.dll_SetCapture]
push esi
call dword [sym.imp.USER32.dll_GetDC]
cmp dword [0x6073a4], 0
mov dword [esp + 0x14], eax
je 0x4be882
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0x209
push 0x200
push 0
lea ecx, [esp + 0x60]
push ecx
call ebx
test eax, eax
jne 0x4be554
push 1
push 0x108
push pe_nt_image_headers32
push 0
lea edx, [esp + 0x60]
push edx
call ebx
test eax, eax
jne 0x4be554
push 1
push 0x1f
push 0x1f
push eax
lea eax, [esp + 0x60]
push eax
call ebx
test eax, eax
jne 0x4be554
push 1
push 0x113
push 0x113
push eax
lea ecx, [esp + 0x60]
push ecx
call ebx
test eax, eax
jne 0x4be554
call dword [sym.imp.USER32.dll_WaitMessage]
push 1
push 0x209
push 0x200
push 0
lea edx, [esp + 0x60]
push edx
call ebx
test eax, eax
je 0x4be4f2
mov eax, dword [esp + 0x54]
cmp eax, 0x200
ja 0x4be854
je 0x4be71e
cmp eax, 0x1f
je 0x4be6d9
cmp eax, 0x113
jne 0x4be85f
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0
push 0
push 0x18e
push esi
call ebp
mov ebx, eax
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x1c]
jge 0x4be61d
test ebx, ebx
jle 0x4be875
push 0
add ebx, 0xffffffff
push ebx
push 0x197
push esi
call ebp
test edi, edi
mov edx, dword [esp + 0x14]
jne 0x4be5d7
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov eax, dword [0x607308]
sub ecx, dword [esp + 0x10]
push 5
push ecx
add eax, 1
jmp 0x4be5ef
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, dword [0x607308]
sub eax, dword [esp + 0x10]
push 4
push eax
lea eax, [ecx + edi]
push edx
call fcn.004b9410
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push eax
push ecx
xor eax, eax
call fcn.004b9410
add esp, 0xc
xor edi, edi
jmp 0x4be875
cmp eax, dword [esp + 0x24]
jle 0x4be875
mov ecx, dword [esp + 0x40]
lea edx, [ebx + ecx]
cmp edx, dword [esp + 0x2c]
jge 0x4be875
mov eax, edi
cdq
idiv dword [0x607308]
sub eax, ebx
cmp eax, ecx
je 0x4be68b
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
push 4
push eax
push ecx
mov eax, edi
call fcn.004b9410
mov edi, dword [0x607308]
mov edx, dword [esp + 0x2c]
imul edi, dword [esp + 0x4c]
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sub edx, dword [esp + 0x1c]
push 0
push edx
push eax
mov eax, edi
call fcn.004b9410
add esp, 0x18
push 0
add ebx, 1
push ebx
push 0x197
push esi
call ebp
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
sub ecx, dword [esp + 0x10]
push 6
push ecx
mov eax, edi
sub eax, dword [0x607308]
push ebx
call fcn.004b9410
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
push 0
sub edx, dword [esp + 0x20]
mov eax, edi
push edx
push ebx
call fcn.004b9410
add esp, 0x18
jmp 0x4be875
xor ebx, ebx
cmp dword [0x6073a8], ebx
mov dword [0x6073a4], ebx
je 0x4be713
mov eax, dword [0x6073ac]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub ecx, dword [esp + 0x10]
push 4
push ecx
push edx
mov eax, edi
call fcn.004b9410
add esp, 0xc
mov dword [0x6073a8], ebx
jmp 0x4be875
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x34]
push eax
push ecx
call sym.convertifd.exe_IpMakePoint
add esp, 8
cmp dword [0x6073a8], 0
jne 0x4be76c
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x80]
jg 0x4be750
cmp eax, dword [esp + 0x78]
jge 0x4be875
mov edx, dword [0x60739c]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x6073ac], eax
mov dword [0x6073a8], 1
mov eax, dword [0x60739c]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x1c]
jl 0x4be875
cmp eax, dword [esp + 0x24]
jg 0x4be875
lea edx, [esp + 0x34]
push edx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0x607308]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.00518a86
mov ebx, eax
mov eax, dword [0x607308]
mov ecx, edx
cdq
sub eax, edx
sar eax, 1
add esp, 8
cmp ecx, eax
jge 0x4be875
mov edx, ebx
imul edx, dword [0x607308]
cmp edi, edx
je 0x4be875
mov eax, dword [esp + 0x2c]
add eax, 1
cmp ebx, eax
jge 0x4be875
test edi, edi
jne 0x4be80d
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub ecx, dword [esp + 0x10]
push 5
push ecx
push edx
xor eax, eax
jmp 0x4be823
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
push 4
push eax
push ecx
mov eax, edi
call fcn.004b9410
imul ebx, dword [0x607308]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sub edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push edx
mov edi, ebx
push eax
mov eax, edi
call fcn.004b9410
add esp, 0xc
jmp 0x4be875
cmp eax, 0x202
je 0x4be99e
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [0x6073a4], 0
jne 0x4be4d3
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [0x6073a8], 0
je 0x4be977
mov eax, dword [0x6073ac]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [esp + 0x28], 0
je 0x4be977
push 0
push 0
push 0x18e
push esi
call ebp
lea ecx, [esp + 0x84]
push ecx
push ebx
push 0x189
push esi
mov dword [esp + 0x3c], eax
call ebp
push 0
push ebx
push 0x199
push esi
call ebp
push 0
push 0
push 0xb
push esi
mov dword [esp + 0x38], eax
call ebp
push 0
push ebx
push 0x182
push esi
call ebp
push edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push esi
call ebx
push eax
call sym.convertifd.exe_FontMatchingMoveItem
add esp, 0xc
cmp edi, dword [esp + 0x30]
jle 0x4be915
sub edi, 1
lea edx, [esp + 0x84]
push edx
push edi
push 0x181
push esi
call ebp
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
push edi
push 0x19a
push esi
call ebp
push 0
push edi
push 0x186
push esi
mov dword [0x607370], 1
call ebp
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push 0x197
push esi
call ebp
push 0
push 1
push 0xb
push esi
call ebp
push 0
push esi
call ebx
push eax
push 0x468
push esi
call ebx
push eax
call ebx
push eax
call ebp
mov edx, dword [esp + 0x14]
push edx
push esi
mov dword [0x6073a8], 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x4bea43
push 0
push 0
push 0x18e
push esi
call ebp
cmp dword [0x6073a8], 0
mov ebx, eax
je 0x4bea06
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
push 4
push eax
push ecx
mov eax, edi
call fcn.004b9410
mov eax, edi
cdq
idiv dword [0x607308]
add esp, 0xc
mov edi, eax
add edi, ebx
mov ebx, dword [esp + 0x30]
cmp edi, ebx
je 0x4bea0e
lea edx, [ebx + 1]
cmp edi, edx
je 0x4bea0e
mov dword [esp + 0x28], 1
mov dword [0x6073a4], 0
jmp 0x4be88a
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov dword [0x6073a4], 0
jmp 0x4be88a
mov dword [0x6073a4], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [0x6073a8], 0
je 0x4bea43
mov ecx, dword [0x6073ac]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
mov ecx, dword [esp + 0x188]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511a80
add esp, 0x17c
ret 0x10