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

Disassembly:
push 0xffffffffffffffff
push 0x626579
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4fc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x518]
mov ebp, ecx
lea eax, [esp + 0xf8]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x34], ebp
call fcn.0049bd90
lea ecx, [esp + 0xdc]
push ecx
lea ecx, [esp + 0x100]
call fcn.0049c330
mov eax, dword [esp + 0xe8]
mov edi, dword [esp + 0xdc]
mov ebx, dword [esp + 0xe0]
mov edx, dword [esp + 0xe4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x520]
test eax, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edx
je 0x4ccc6a
lea ecx, [esp + 0xdc]
push eax
lea edx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
fld dword [esi]
fst qword [esp + 0x44]
fabs
fcomp dword [0x646e70]
fnstsw ax
test ah, 1
je 0x4ccd3a
fld dword [esi + 0xc]
fabs
fcomp dword [0x646e70]
fnstsw ax
test ah, 1
je 0x4ccd3a
fld dword [esi + 8]
sub esp, 8
fabs
fstp qword [esp]
call fcn.00465c0f
call fcn.00460b50
fld dword [esi + 4]
fabs
fstp qword [esp]
mov edi, eax
call fcn.00465c0f
add esp, 8
call fcn.00460b50
mov ecx, dword [ebp + 8]
mov edx, eax
imul ecx, dword [ebp + 4]
imul edx, edi
cmp edx, ecx
jge 0x4ccce4
push 0
push edi
push eax
mov ecx, ebp
call fcn.004cd6a0
mov edi, eax
jmp 0x4ccce6
mov edi, ebp
fld dword [esi + 4]
fcomp dword [0x635e2c]
fnstsw ax
test ah, 1
je 0x4cccfd
mov ecx, 1
jmp 0x4cccff
xor ecx, ecx
fld dword [esi + 8]
fcomp dword [0x635e2c]
fnstsw ax
test ah, 0x41
jne 0x4ccd16
mov eax, 1
jmp 0x4ccd18
xor eax, eax
push ecx
push eax
mov ecx, edi
call fcn.004cc8f0
cmp edi, ebp
mov esi, eax
je 0x4ccd33
test edi, edi
je 0x4ccd33
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, esi
jmp 0x4cd67a
fld dword [esi + 4]
fabs
fcomp dword [0x646e70]
fnstsw ax
test ah, 1
je 0x4cce1b
fld dword [esi + 8]
fabs
fcomp dword [0x646e70]
fnstsw ax
test ah, 1
je 0x4cce1b
fld dword [esi]
fcomp dword [0x635e2c]
fnstsw ax
test ah, 0x41
jne 0x4ccd86
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
call fcn.00465c0f
jmp 0x4ccd95
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call fcn.004626ea
add esp, 8
call fcn.00460b50
fld dword [esi + 0xc]
fcomp dword [0x635e2c]
fld dword [esi + 0xc]
mov dword [esp + 0x34], eax
fnstsw ax
test ah, 0x41
jne 0x4ccdc1
sub esp, 8
fstp qword [esp]
call fcn.00465c0f
jmp 0x4ccdcc
sub esp, 8
fstp qword [esp]
call fcn.004626ea
add esp, 8
call fcn.00460b50
mov edx, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
sub edx, ebx
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x70]
neg eax
sub esi, edi
sub ecx, edi
mov edi, dword [esp + 0x74]
push edx
push eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], ecx
sub edi, ebx
push eax
mov ecx, ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
call fcn.004cd6a0
jmp 0x4cd67a
push ebp
lea ecx, [esp + 0x70]
call fcn.004b5020
mov ecx, esi
mov dword [esp + 0x514], 0
call fcn.0049bdf0
fild dword [ebp + 4]
mov ebx, dword [esp + 0x6c]
mov ecx, 6
lea edi, [esp + 0xb4]
mov dword [esp + 0x2c], ebx
fimul dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
fdivrp st(1)
lea ecx, [esp + 0xb4]
fsqrt
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push eax
push eax
call fcn.0049bcd0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
lea ecx, [esp + 0xec]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x14]
push ecx
lea ecx, [esp + 0xb8]
mov dword [esp + 0x40], eax
call fcn.0049bd90
lea edx, [esp + 0xcc]
lea ecx, [esp + 0xec]
push edx
call fcn.0049c330
fld dword [esp + 0xc4]
fadd dword [esp + 0xbc]
mov eax, dword [0x646e68]
mov dword [esp + 0xa4], 0
mov ecx, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0
fstp dword [esp + 0xac]
fld dword [esp + 0xc8]
fadd dword [esp + 0xc0]
fstp dword [esp + 0xb0]
mov edx, dword [ebx + 4]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fdivr dword [esp + 0xb4]
fstp dword [esp + 0x9c]
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd0]
fild dword [esp + 0x10]
neg eax
push eax
fdivr dword [esp + 0xbc]
fstp dword [esp + 0xa4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xd0]
fild dword [esp + 0x14]
neg ecx
push ecx
lea ecx, [esp + 0xa4]
fdivr dword [esp + 0xc4]
fchs
fstp dword [esp + 0xac]
mov edx, dword [ebx + 8]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdivr dword [esp + 0xc8]
fchs
fstp dword [esp + 0xb0]
call fcn.0049bd10
mov edx, dword [0x646e68]
lea ecx, [esp + 0x9c]
mov eax, edx
push ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x90], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
call fcn.0049bb80
fld dword [esp + 0x80]
fmul dword [0x646e6c]
push ecx
fstp dword [esp]
call fcn.0049bfa0
fld dword [esp + 0x88]
fmul dword [0x646e6c]
mov dword [esp + 0x50], eax
fstp dword [esp]
call fcn.0049bfa0
fld dword [esp + 0x8c]
fmul dword [0x646e6c]
mov dword [esp + 0x54], eax
fstp dword [esp]
call fcn.0049bfa0
fld dword [esp + 0x90]
fmul dword [0x646e6c]
mov dword [esp + 0x58], eax
fstp dword [esp]
call fcn.0049bfa0
fld dword [esp + 0x94]
fmul dword [0x646e6c]
mov dword [esp + 0x5c], eax
fstp dword [esp]
call fcn.0049bfa0
fld dword [esp + 0x98]
fmul dword [0x646e6c]
mov ebx, eax
fstp dword [esp]
call fcn.0049bfa0
mov edi, dword [esp + 0xd8]
mov edx, dword [esp + 0xd0]
mov esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd4]
sub edi, edx
push 0x24
mov dword [esp + 0x68], eax
mov dword [esp + 0x28], edi
sub esi, ecx
call fcn.00486570
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
mov byte [esp + 0x514], 1
je 0x4cd0d3
mov edx, dword [ebp + 0x10]
push 0
dec edx
mov ecx, eax
neg edx
sbb edx, edx
and edx, 0x118
add edx, 0x108
push edx
push esi
push edi
call fcn.004b3500
mov dword [esp + 0x34], eax
jmp 0x4cd0db
mov dword [esp + 0x34], 0
mov edi, dword [esp + 0x34]
mov byte [esp + 0x514], 0
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov ecx, dword [edi + 0x14]
mov ebp, eax
mov dword [esp + 0x40], ecx
imul ecx, esi
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
cmp eax, 1
jne 0x4cd38b
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x10], 1
jne 0x4cd242
test esi, esi
jle 0x4cd64a
mov edx, dword [esp + 0x60]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x20]
xor ebp, ebp
test eax, eax
jle 0x4cd204
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x24]
cdq
and edx, 0xff
add eax, edx
mov esi, eax
sar edi, 8
sar esi, 8
test edi, edi
jl 0x4cd1e3
mov ecx, dword [esp + 0x30]
cmp edi, dword [ecx + 4]
jge 0x4cd1e3
test esi, esi
jl 0x4cd1e3
mov edx, ecx
cmp esi, dword [edx + 8]
jge 0x4cd1e3
mov eax, edi
and eax, 0x80000007
jns 0x4cd1a8
dec eax
or eax, 0xfffffff8
inc eax
imul esi, dword [esp + 0x3c]
mov ecx, 7
mov edx, 1
sub ecx, eax
mov eax, edi
shl edx, cl
mov ecx, dword [esp + 0x38]
add ecx, esi
mov dword [esp + 0x10], edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x10]
test dl, al
je 0x4cd1e3
mov ecx, dword [esp + 0x18]
mov byte [ecx + ebp], 0xff
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add ebx, edx
mov edx, dword [esp + 0x50]
inc ebp
add ecx, edx
cmp ebp, eax
mov dword [esp + 0x24], ecx
jl 0x4cd160
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
add esi, eax
mov eax, dword [esp + 0x28]
add ecx, edx
dec eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
jne 0x4cd146
jmp 0x4cd64a
mov edi, dword [esp + 0x2c]
push 0
mov ecx, edi
call fcn.004b3950
push 1
mov ecx, edi
mov dword [esp + 0x48], eax
call fcn.004b3950
test esi, esi
mov dword [esp + 0x68], eax
jle 0x4cd64a
mov eax, ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
test ecx, ecx
jle 0x4cd359
mov ebp, eax
mov dword [esp + 0x28], ecx
mov eax, ebp
cdq
and edx, 0xff
add eax, edx
mov edi, eax
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
mov esi, eax
sar edi, 8
sar esi, 8
test edi, edi
jl 0x4cd327
mov eax, dword [esp + 0x30]
cmp edi, dword [eax + 4]
jge 0x4cd327
test esi, esi
jl 0x4cd327
cmp esi, dword [eax + 8]
jge 0x4cd327
mov eax, edi
and eax, 0x80000007
jns 0x4cd2d8
dec eax
or eax, 0xfffffff8
inc eax
imul esi, dword [esp + 0x3c]
mov ecx, 7
mov edx, 1
sub ecx, eax
mov eax, edi
shl edx, cl
mov ecx, dword [esp + 0x38]
add ecx, esi
mov dword [esp + 0x98], edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x98]
test dl, al
je 0x4cd31d
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
mov dword [edx], ecx
jmp 0x4cd327
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
add esi, 4
add ebp, edx
add ebx, ecx
dec eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x4cd294
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
add ebp, edi
add ebx, esi
add eax, edx
dec ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
jne 0x4cd27e
jmp 0x4cd64a
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x10]
cmp ecx, 1
jne 0x4cd455
test esi, esi
jle 0x4cd64a
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], ebx
mov ebx, ebp
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov ebp, eax
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
jle 0x4cd427
mov eax, esi
cdq
and edx, 0xff
add eax, edx
mov ecx, eax
mov eax, ebp
cdq
and edx, 0xff
add eax, edx
sar ecx, 8
sar eax, 8
test ecx, ecx
jl 0x4cd40a
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 4]
jge 0x4cd40a
test eax, eax
jl 0x4cd40a
cmp eax, dword [edx + 8]
jge 0x4cd40a
imul eax, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x38]
mov dl, byte [eax + ecx]
mov byte [ebx + edi], dl
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
inc edi
add esi, edx
add ebp, ecx
cmp edi, eax
jl 0x4cd3c5
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
add ebx, edi
add ebp, edx
add esi, ecx
dec eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
jne 0x4cd3bb
jmp 0x4cd64a
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 1
mov dword [esp + 0x44], eax
jne 0x4cd549
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10c]
push 0xff
push eax
call fcn.004b4000
test esi, esi
jle 0x4cd64a
mov eax, dword [esp + 0x60]
mov edi, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x4cd517
mov esi, eax
mov ebx, ecx
mov eax, edi
cdq
and edx, 0xff
add eax, edx
mov ecx, eax
mov eax, esi
cdq
and edx, 0xff
add eax, edx
sar ecx, 8
sar eax, 8
test ecx, ecx
jl 0x4cd4f9
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 4]
jge 0x4cd4f9
test eax, eax
jl 0x4cd4f9
cmp eax, dword [edx + 8]
jge 0x4cd4f9
imul eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add eax, ecx
xor ecx, ecx
mov cl, byte [eax + edx]
mov eax, dword [esp + ecx*4 + 0x10c]
mov dword [ebp], eax
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
add ebp, 4
add edi, edx
add esi, ecx
dec ebx
jne 0x4cd4ab
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
add ebp, ebx
add eax, esi
add edi, edx
dec ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
jne 0x4cd49f
jmp 0x4cd64a
xor edx, edx
cmp ecx, 2
sete dl
test esi, esi
mov dword [esp + 0x68], edx
jle 0x4cd64a
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4cd61d
mov edi, eax
mov eax, esi
cdq
and edx, 0xff
add eax, edx
mov ecx, eax
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
sar ecx, 8
sar eax, 8
test ecx, ecx
jl 0x4cd5fb
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 4]
jge 0x4cd5fb
test eax, eax
jl 0x4cd5fb
cmp eax, dword [edx + 8]
jge 0x4cd5fb
imul ecx, dword [esp + 0x44]
imul eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x68]
add eax, edx
test ecx, ecx
je 0x4cd5da
mov eax, dword [eax]
mov dword [ebp], eax
jmp 0x4cd5fb
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 2]
mov dl, byte [eax + 1]
or ecx, 0xffffff00
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
mov dword [ebp], ecx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
add ebp, 4
add esi, edx
add ebx, ecx
dec edi
jne 0x4cd585
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
add ebp, edi
add ebx, edx
add esi, ecx
dec eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
jne 0x4cd577
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
je 0x4cd662
test eax, eax
je 0x4cd662
mov ecx, eax
push 1
mov edx, dword [ecx]
call dword [edx]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x514], 0xffffffff
call fcn.004b50d0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x508
ret 8