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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.user32.dll_GetWindowLongA]
mov dword [esp + 0x18], eax
and eax, 0xfdffffff
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.user32.dll_SetWindowLongA]
mov ecx, dword [esp + 0x68]
mov ebx, dword [sym.imp.user32.dll_GetWindowRect]
lea eax, [esp + 0x34]
push eax
push ecx
call ebx
mov esi, dword [sym.imp.user32.dll_ScreenToClient]
lea edx, [esp + 0x34]
push edx
push edi
call esi
lea eax, [esp + 0x3c]
push eax
push edi
call esi
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, ecx
sub eax, esi
mov esi, dword [esp + 0x40]
sub esi, edx
xor edx, edx
cmp esi, eax
setg dl
mov ebp, edx
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x442ff1
mov esi, eax
mov eax, dword [esp + 0x34]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x74], eax
jmp 0x44300d
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x78]
cdq
sub eax, edx
mov dword [esp + 0x74], ecx
sar eax, 1
mov dword [esp + 0x14], eax
lea edx, [esp + 0x24]
push edx
push edi
call ebx
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x34]
push eax
push ecx
call ebx
call fcn.004429a0
test eax, eax
push 6
je 0x443034
call dword [fcn.004fbfb8]
jmp 0x44303a
call dword [sym.imp.user32.dll_GetSystemMetrics]
mov ebx, eax
call fcn.004429a0
test eax, eax
push 0x1f
je 0x44304f
call dword [fcn.004fbfb8]
jmp 0x443055
call dword [sym.imp.user32.dll_GetSystemMetrics]
lea edx, [eax + ebx]
mov eax, dword [esp + 0x28]
add eax, edx
test ebp, ebp
je 0x443090
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], edx
lea edx, [esi + ecx]
mov ecx, dword [esp + 0x40]
add eax, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
jmp 0x4430b8
mov edx, dword [esp + 0x70]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x30], ecx
lea ecx, [esi + edx]
mov edx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.user32.dll_ClipCursor]
push edi
call dword [sym.imp.user32.dll_GetDC]
push edi
mov ebx, eax
call dword [sym.imp.user32.dll_SetCapture]
mov edx, dword [esp + 0x74]
push edx
call dword [sym.imp.user32.dll_SetCursor]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.user32.dll_ScreenToClient]
push 0
push 0
push 0
lea edx, [esp + 0x30]
push 0
push edx
call dword [sym.imp.user32.dll_SetRect]
test ebp, ebp
je 0x44312b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add ecx, edx
mov dword [0x4fbf6c], eax
mov dword [0x4fbf68], ecx
jmp 0x443144
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ecx, edx
mov dword [0x4fbf68], eax
mov dword [0x4fbf6c], ecx
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.user32.dll_GetWindowRect]
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.user32.dll_ScreenToClient]
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.user32.dll_ScreenToClient]
mov eax, esi
test ebp, ebp
cdq
je 0x443196
mov ecx, dword [esp + 0x30]
sub eax, edx
mov edx, dword [0x4fbf68]
mov edi, eax
mov eax, dword [esp + 0x28]
push 0x550009
sub ecx, eax
sar edi, 1
push ecx
push esi
sub edx, edi
push eax
push edx
jmp 0x4431b7
mov ecx, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [0x4fbf6c]
mov edi, eax
mov eax, dword [esp + 0x24]
push 0x550009
sar edi, 1
sub ecx, eax
push esi
sub edx, edi
push ecx
push edx
push eax
mov ebp, dword [sym.imp.gdi32.dll_PatBlt]
push ebx
call ebp
push 1
push 0x108
push 0x100
lea eax, [esp + 0x50]
push 0
push eax
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
jne 0x44321d
push 1
push 0x209
push 0x200
lea ecx, [esp + 0x50]
push 0
push ecx
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
jne 0x44321d
call dword [sym.imp.user32.dll_WaitMessage]
push 1
push 0x108
push 0x100
lea edx, [esp + 0x50]
push 0
push edx
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
je 0x4431dd
mov eax, dword [esp + 0x48]
sub eax, 0x100
je 0x4432ce
sub eax, 0x100
je 0x44323e
sub eax, 2
je 0x4433e1
jmp 0x4431c0
mov eax, dword [esp + 0x10]
push 0x550009
test eax, eax
je 0x443263
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4fbf68]
sub ecx, eax
push ecx
push esi
sub edx, edi
push eax
push edx
jmp 0x443279
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [0x4fbf6c]
sub ecx, eax
push esi
sub edx, edi
push ecx
push edx
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov eax, ecx
push 0x550009
and eax, 0xffff
shr ecx, 0x10
test edx, edx
mov dword [0x4fbf68], eax
mov dword [0x4fbf6c], ecx
je 0x4432b8
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub edx, ecx
sub eax, edi
push edx
push esi
push ecx
push eax
push ebx
jmp 0x4431be
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub edx, eax
push esi
sub ecx, edi
push edx
push ecx
push eax
push ebx
jmp 0x4431be
mov eax, dword [esp + 0x4c]
cmp eax, 0x26
je 0x4432f4
cmp eax, 0x28
je 0x4432f4
cmp eax, 0x25
je 0x4432f4
cmp eax, 0x27
je 0x4432f4
cmp eax, 0xd
je 0x443478
jmp 0x4431c0
mov eax, dword [esp + 0x10]
push 0x550009
test eax, eax
je 0x443319
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4fbf68]
sub ecx, eax
push ecx
push esi
sub edx, edi
push eax
push edx
jmp 0x44332f
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [0x4fbf6c]
sub ecx, eax
push esi
sub edx, edi
push ecx
push edx
push eax
push ebx
call ebp
mov eax, dword [esp + 0x4c]
add eax, 0xffffffdb
cmp eax, 3
ja case.default.0x44333e
jmp dword [eax*4 + 0x4434c0]
sub dword [0x4fbf6c], esi
jmp case.default.0x44333e
add dword [0x4fbf6c], esi
jmp case.default.0x44333e
mov eax, dword [0x4fbf68]
sub eax, esi
jmp 0x443365
mov eax, dword [0x4fbf68]
add eax, esi
mov dword [0x4fbf68], eax
mov ecx, dword [esp + 0x64]
push 0x4fbf68
push ecx
call dword [sym.imp.user32.dll_ClientToScreen]
mov edx, dword [0x4fbf6c]
mov eax, dword [0x4fbf68]
push edx
push eax
call dword [sym.imp.user32.dll_SetCursorPos]
mov ecx, dword [esp + 0x64]
push 0x4fbf68
push ecx
call dword [sym.imp.user32.dll_ScreenToClient]
mov eax, dword [esp + 0x10]
push 0x550009
test eax, eax
je 0x4433c5
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
sub edx, eax
push edx
push esi
push eax
mov eax, dword [0x4fbf68]
sub eax, edi
push eax
push ebx
jmp 0x4431be
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [0x4fbf6c]
sub ecx, eax
push esi
sub edx, edi
push ecx
push edx
push eax
push ebx
jmp 0x4431be
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov eax, ecx
push 0x550009
and eax, 0xffff
shr ecx, 0x10
test edx, edx
mov dword [0x4fbf68], eax
mov dword [0x4fbf6c], ecx
je 0x443422
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub edx, ecx
sub eax, edi
push edx
push esi
push ecx
push eax
push ebx
call ebp
mov esi, dword [0x4fbf68]
jmp 0x44343b
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
sub edx, eax
push esi
sub ecx, edi
push edx
push ecx
push eax
push ebx
call ebp
mov esi, dword [0x4fbf6c]
call dword [sym.imp.user32.dll_ReleaseCapture]
mov edi, dword [esp + 0x64]
push ebx
push edi
call dword [sym.imp.user32.dll_ReleaseDC]
push 0
call dword [sym.imp.user32.dll_ClipCursor]
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov ecx, dword [esp + 0x18]
push ecx
push 0xfffffffffffffff0
push edi
call dword [sym.imp.user32.dll_SetWindowLongA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x10]
push 0x550009
test eax, eax
je 0x4434a6
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4fbf68]
sub ecx, eax
push ecx
push esi
sub edx, edi
push eax
push edx
push ebx
call ebp
mov esi, dword [0x4fbf68]
jmp 0x44343b
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [0x4fbf6c]
sub ecx, eax
push esi
sub edx, edi
push ecx
push edx
jmp 0x443431