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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d3598
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004bd9fe
mov ecx, dword [esi + 0x1c]
xor ebp, ebp
push 0x180
push ebp
push ebp
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov eax, dword [esi + 0xd4]
cmp eax, 0xe81b
je 0x45a17b
cmp eax, 0xe81e
je 0x45a17b
mov dword [esp + 0x10], ebp
lea eax, [esi + 0x80]
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
mov dword [esi + 0xb4], edx
mov edx, dword [esi + 0x1c]
mov eax, dword [eax + 4]
push ecx
push edx
mov dword [esi + 0xb8], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x60]
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push eax
push edi
mov eax, dword [esp + 0x28]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0045a880
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x98], edi
mov dword [esi + 0xc4], 1
lea eax, [edx + ecx]
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x2c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], ecx
lea ecx, [esp + 0x3c]
call fcn.004bc941
mov dword [esp + 0x3c], vtable.CSCBArray.0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], ebp
call fcn.004bc9a1
lea eax, [esp + 0x18]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.0045aa30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
cmp eax, ecx
mov ebx, eax
jg 0x45a12f
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + 0x80]
mov edi, dword [ecx + ebx*4]
mov edx, edi
shr edx, 0x10
je 0x45a126
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc8]
test eax, eax
je 0x45a126
push edi
mov ecx, esi
call fcn.0045aab0
test eax, eax
jl 0x45a126
mov ecx, dword [esp + 0x44]
push edi
push ecx
lea ecx, [esp + 0x44]
call fcn.004bcaba
mov eax, dword [esp + 0x60]
inc ebx
cmp ebx, eax
jle 0x45a0ea
mov edx, dword [esi + 0x9c]
mov ebx, dword [esp + 0x44]
mov eax, dword [esi + 0xa0]
mov dword [esi + 0xa4], edx
cmp ebx, ebp
mov ebp, dword [esp + 0x40]
mov dword [esi + 0xa8], eax
jle 0x45a1ab
mov edx, ebp
mov edi, ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45a18b
mov ecx, dword [edx]
mov eax, dword [esi + 0xa8]
mov ecx, dword [ecx + 0xa0]
cmp eax, ecx
jg 0x45a173
mov eax, ecx
mov dword [esi + 0xa8], eax
jmp 0x45a1a5
mov dword [esp + 0x10], 1
lea eax, [esi + 0x78]
jmp 0x45a017
mov ecx, dword [edx]
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx + 0x9c]
cmp eax, ecx
jg 0x45a19f
mov eax, ecx
mov dword [esi + 0xa4], eax
add edx, 4
dec edi
jne 0x45a157
mov edx, dword [esi + 0x98]
cmp edx, 0xa
je 0x45a1f4
cmp edx, 0xb
je 0x45a1f4
mov eax, dword [esi + 0xd4]
cmp eax, 0xe81c
je 0x45a1cf
cmp eax, 0xe81d
jne 0x45a208
xor eax, eax
test ebx, ebx
jle 0x45a1e3
mov ecx, ebp
cmp dword [ecx], esi
je 0x45a1e3
inc eax
add ecx, 4
cmp eax, ebx
jl 0x45a1d7
cmp edx, 0xc
je 0x45a25f
cmp edx, 0xa
je 0x45a25f
mov ecx, 1
jmp 0x45a262
mov eax, dword [esi + 0xd4]
cmp eax, 0xe81b
je 0x45a1cf
cmp eax, 0xe81e
je 0x45a1cf
mov ecx, dword [esi + 0x6c]
push 1
lea edx, [esp + 0x20]
push 0
push edx
push 1
push 0xe900
push 0xffff
push 0
call fcn.004bf268
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0xb8]
mov ebp, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x24]
add edx, eax
mov eax, dword [esi + 0xb4]
sub ecx, ebp
add eax, ecx
lea ecx, [edx - 4]
add eax, 0xfffffffc
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], ecx
jmp 0x45a2aa
or ecx, 0xffffffff
add ecx, eax
mov eax, dword [ebp + ecx*4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
lea ecx, [eax + 0x78]
jne 0x45a279
lea ecx, [eax + 0x80]
mov edx, dword [eax + 0x9c]
mov edi, dword [eax + 0xa0]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0xb8]
add eax, ecx
mov ecx, dword [esi + 0xb4]
add ecx, ebx
sub eax, edi
sub ecx, edx
mov dword [esi + 0xac], ecx
mov dword [esi + 0xb0], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf8]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], 0xffffffff
call fcn.004bc974
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 4