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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x49c8b3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
lea edi, [esi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 0xc]
lea eax, [esp + 0x18]
mov dword [esp + 0x34], ecx
push eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], edx
push ecx
lea ebx, [esp + 0x1c]
lea edx, [esp + 0x28]
call fcn.0049cc30
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x14]
mov edx, dword [ebp]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
mov dword [esp + 0x7c], eax
push 0
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x88], 0
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp]
jne 0x49ca59
mov eax, dword [esp + 0x50]
cmp eax, 0x202
ja 0x49cbed
je 0x49c98c
cmp eax, 0x100
je 0x49ca10
cmp eax, 0x200
jne 0x49cbf8
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x20]
test ebx, ebx
mov eax, dword [edi + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
je 0x49c9d6
mov ecx, dword [esi + 0x24]
movsx eax, dx
cmp eax, ecx
jle 0x49cacd
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
jge 0x49caae
sub eax, dword [esp + 0x14]
mov dword [ebx], eax
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x70]
cmp dword [esp + 0x1c], 0
je 0x49cb19
mov ecx, dword [esi + 0x28]
shr edx, 0x10
movsx eax, dx
cmp eax, ecx
jle 0x49cb06
mov ecx, dword [esi + 0x30]
cmp eax, ecx
jge 0x49caf2
sub eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
jmp 0x49cb19
cmp dword [esp + 0x54], 0x1b
jne 0x49cc03
cmp dword [esp + 0x78], 0
je 0x49ca3e
mov edx, dword [esi]
mov edx, dword [edx]
mov eax, 1
push ebp
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x78]
push eax
push 0
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [edi], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
cmp dword [esp + 0x78], eax
jne 0x49ca8b
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [edi], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x38]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], eax
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
add eax, 1
pop ebx
add esp, 0x5c
ret 0x10
mov ebx, dword [esp + 0x70]
cmp ebx, 1
je 0x49cac5
cmp ebx, 2
je 0x49cac5
cmp ebx, 5
jne 0x49c9da
mov dword [esi + 0x10], ecx
jmp 0x49c9da
jge 0x49c9d6
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49cae9
cmp eax, 3
je 0x49cae9
cmp eax, 7
jne 0x49c9d6
mov dword [edi], ecx
mov ebx, eax
jmp 0x49c9da
cmp ebx, 2
je 0x49cb01
cmp ebx, 3
je 0x49cb01
cmp ebx, 6
jne 0x49cb19
mov dword [esi + 0x14], ecx
jmp 0x49cb19
jge 0x49cb19
test ebx, ebx
je 0x49cb16
cmp ebx, 1
je 0x49cb16
cmp ebx, 4
jne 0x49cb19
mov dword [esi + 0xc], ecx
cmp ebx, 8
jne 0x49cb31
mov eax, dword [edi]
add eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
add ecx, dword [esp + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov edx, dword [esi]
mov eax, dword [edx + 4]
push edi
push ebx
mov ecx, esi
call eax
xor ecx, ecx
mov ebx, 0x202
cmp dword [esp + 0x50], ebx
push edi
sete cl
lea edx, [esp + 0x40]
push edx
mov dword [esi + 0x60], ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x49cb63
cmp dword [esi + 0x60], 0
je 0x49cbc7
cmp dword [esp + 0x78], 0
je 0x49cb86
mov ecx, dword [esp + 0x74]
mov eax, dword [esi]
mov eax, dword [eax]
push ebp
push ecx
push 0
lea edx, [esp + 0x48]
push edx
mov ecx, esi
mov dword [esi + 0x5c], 1
call eax
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x50], ebx
je 0x49cba2
mov dword [esp + 0x78], 1
cmp dword [esi + 0x60], 0
je 0x49cbc7
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp]
push 0
push 0
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0x60], 0
jne 0x49ca59
push edi
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x49cc03
mov edx, dword [esi]
mov edx, dword [edx]
push ebp
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x78]
push eax
push 0
push edi
mov ecx, esi
call edx
jmp 0x49cc03
cmp eax, 0x204
je 0x49ca1b
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp]
je 0x49c965
jmp 0x49ca59