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

Disassembly:
push 0xffffffffffffffff
push 0x65ea89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x514]
push edi
mov edi, ecx
lea eax, [esp + 0xf8]
mov ecx, esi
push eax
mov dword [esp + 0x34], edi
call fcn.004aaf50
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0xfc]
call fcn.004ab510
mov eax, dword [esp + 0xe4]
mov ebx, dword [esp + 0xd8]
mov ebp, dword [esp + 0xdc]
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x520]
test eax, eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], edx
je 0x4e14da
lea ecx, [esp + 0xd8]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
fld dword [esi]
fld dword [esi + 4]
fabs
fstp dword [esp + 0x10]
fabs
fld dword [esp + 0x10]
fmul dword [0x6865b0]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4e15d3
fld dword [esi + 0xc]
fld dword [esi + 8]
fabs
fstp dword [esp + 0x10]
fabs
fld dword [esp + 0x10]
fmul dword [0x6865b0]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4e15d3
fld dword [esi + 8]
fabs
sub esp, 8
fstp qword [esp]
call fcn.0046b70f
call fcn.0046664c
fld dword [esi + 4]
fabs
fstp qword [esp]
mov ebx, eax
call fcn.0046b70f
add esp, 8
call fcn.0046664c
mov ecx, dword [edi + 8]
mov edx, eax
imul ecx, dword [edi + 4]
imul edx, ebx
cmp edx, ecx
jge 0x4e1576
mov ecx, dword [esp + 0x51c]
push 0
push ecx
push ebx
push eax
mov ecx, edi
call fcn.004e1f20
mov ebx, eax
jmp 0x4e1578
mov ebx, edi
test ebx, ebx
jne 0x4e1583
xor eax, eax
jmp 0x4e1f00
fld dword [esi + 4]
fcomp dword [0x670244]
fnstsw ax
test ah, 1
je 0x4e159a
mov ecx, 1
jmp 0x4e159c
xor ecx, ecx
fld dword [esi + 8]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x41
jne 0x4e15b3
mov eax, 1
jmp 0x4e15b5
xor eax, eax
push ecx
push eax
mov ecx, ebx
call fcn.004e1160
cmp ebx, edi
mov esi, eax
je 0x4e15cc
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov eax, esi
jmp 0x4e1f00
fld dword [esi + 4]
fabs
fcomp dword [0x686c04]
fnstsw ax
test ah, 1
je 0x4e16b3
fld dword [esi + 8]
fabs
fcomp dword [0x686c04]
fnstsw ax
test ah, 1
je 0x4e16b3
fld dword [esi]
fcomp dword [0x670244]
fld dword [esi]
fnstsw ax
test ah, 0x41
jne 0x4e161d
sub esp, 8
fstp qword [esp]
call fcn.0046b70f
jmp 0x4e1628
sub esp, 8
fstp qword [esp]
call fcn.004681e4
add esp, 8
call fcn.0046664c
fld dword [esi + 0xc]
fcomp dword [0x670244]
fld dword [esi + 0xc]
mov dword [esp + 0x34], eax
fnstsw ax
test ah, 0x41
jne 0x4e1654
sub esp, 8
fstp qword [esp]
call fcn.0046b70f
jmp 0x4e165f
sub esp, 8
fstp qword [esp]
call fcn.004681e4
add esp, 8
call fcn.0046664c
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
sub ecx, ebx
mov esi, dword [esp + 0x78]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x70]
sub ecx, ebp
sub edx, ebx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x51c]
lea ecx, [esp + 0x6c]
neg eax
push ecx
push edx
push eax
mov eax, dword [esp + 0x40]
sub esi, ebp
push eax
mov ecx, edi
mov dword [esp + 0x88], esi
call fcn.004e1f20
jmp 0x4e1f00
push edi
lea ecx, [esp + 0x6c]
call fcn.004c5d70
xor ebp, ebp
mov ecx, esi
mov dword [esp + 0x510], ebp
call fcn.004aafb0
fild dword [edi + 4]
mov ebx, dword [esp + 0x68]
mov ecx, 6
mov dword [esp + 0x2c], ebx
fimul dword [edi + 8]
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
fdivrp st(1)
lea ecx, [esp + 0xb0]
fsqrt
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push eax
push eax
call fcn.004aae90
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
lea ecx, [esp + 0xe8]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x14]
push ecx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x40], eax
call fcn.004aaf50
lea edx, [esp + 0xc8]
lea ecx, [esp + 0xe8]
push edx
call fcn.004ab510
fld dword [esp + 0xc0]
fadd dword [esp + 0xb8]
mov eax, dword [0x686c00]
mov dword [esp + 0xa0], ebp
mov ecx, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ebp
fstp dword [esp + 0xa8]
fld dword [esp + 0xc4]
fadd dword [esp + 0xbc]
fstp dword [esp + 0xac]
mov edx, dword [ebx + 4]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fdivr dword [esp + 0xb0]
fstp dword [esp + 0x98]
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xcc]
fild dword [esp + 0x10]
neg eax
push eax
fdivr dword [esp + 0xb8]
fstp dword [esp + 0xa0]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xcc]
fild dword [esp + 0x14]
neg ecx
push ecx
lea ecx, [esp + 0xa0]
fdivr dword [esp + 0xc0]
fchs
fstp dword [esp + 0xa8]
mov edx, dword [ebx + 8]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdivr dword [esp + 0xc4]
fchs
fstp dword [esp + 0xac]
call fcn.004aaed0
mov edx, dword [0x686c00]
lea ecx, [esp + 0x98]
mov eax, edx
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebp
call fcn.004aad40
fld dword [esp + 0x7c]
fmul dword [0x686614]
push ecx
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x84]
fmul dword [0x686614]
mov dword [esp + 0x4c], eax
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x88]
fmul dword [0x686614]
mov dword [esp + 0x50], eax
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x8c]
fmul dword [0x686614]
mov dword [esp + 0x54], eax
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x90]
fmul dword [0x686614]
mov dword [esp + 0x58], eax
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x94]
fmul dword [0x686614]
mov ebx, eax
fstp dword [esp]
call fcn.004ab180
mov ecx, dword [esp + 0xcc]
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xd4]
sub eax, ecx
push 0x24
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
sub esi, eax
call fcn.00492990
add esp, 8
mov dword [esp + 0x44], eax
cmp eax, ebp
mov byte [esp + 0x510], 1
je 0x4e1935
mov ecx, eax
call fcn.004c4430
mov dword [esp + 0x34], eax
jmp 0x4e1939
mov dword [esp + 0x34], ebp
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
push 0
mov eax, dword [edx + 0x10]
push 0
dec eax
mov byte [esp + 0x518], 0
neg eax
sbb eax, eax
and eax, 0x118
add eax, 0x108
push eax
push esi
push ecx
mov ecx, edi
call fcn.004c4470
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 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 0x4e1c11
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x10], 1
jne 0x4e1ac8
test esi, esi
jle 0x4e1ed0
mov edx, dword [esp + 0x5c]
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 0x4e1a8a
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 0x4e1a69
mov ecx, dword [esp + 0x30]
cmp edi, dword [ecx + 4]
jge 0x4e1a69
test esi, esi
jl 0x4e1a69
mov edx, ecx
cmp esi, dword [edx + 8]
jge 0x4e1a69
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x4e1a2e
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 0x4e1a69
mov ecx, dword [esp + 0x18]
mov byte [ecx + ebp], 0xff
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add ebx, edx
mov edx, dword [esp + 0x4c]
inc ebp
add ecx, edx
cmp ebp, eax
mov dword [esp + 0x24], ecx
jl 0x4e19e6
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
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 0x4e19cc
jmp 0x4e1ed0
mov edi, dword [esp + 0x2c]
push 0
mov ecx, edi
call fcn.004c4820
push 1
mov ecx, edi
mov dword [esp + 0x48], eax
call fcn.004c4820
test esi, esi
mov dword [esp + 0x64], eax
jle 0x4e1ed0
mov eax, ebx
mov ebx, dword [esp + 0x5c]
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 0x4e1bdf
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 0x4e1bad
mov eax, dword [esp + 0x30]
cmp edi, dword [eax + 4]
jge 0x4e1bad
test esi, esi
jl 0x4e1bad
cmp esi, dword [eax + 8]
jge 0x4e1bad
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x4e1b5e
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 + 0x94], edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x94]
test dl, al
je 0x4e1ba3
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
mov dword [edx], ecx
jmp 0x4e1bad
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
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 0x4e1b1a
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
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 0x4e1b04
jmp 0x4e1ed0
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x10]
cmp ecx, 1
jne 0x4e1cdb
test esi, esi
jle 0x4e1ed0
mov eax, dword [esp + 0x5c]
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 0x4e1cad
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 0x4e1c90
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 4]
jge 0x4e1c90
test eax, eax
jl 0x4e1c90
cmp eax, dword [edx + 8]
jge 0x4e1c90
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 + 0x48]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
inc edi
add esi, edx
add ebp, ecx
cmp edi, eax
jl 0x4e1c4b
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
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 0x4e1c41
jmp 0x4e1ed0
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 1
mov dword [esp + 0x44], eax
jne 0x4e1dcf
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x108]
push 0xff
push eax
call fcn.004c4ed0
test esi, esi
jle 0x4e1ed0
mov eax, dword [esp + 0x5c]
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 0x4e1d9d
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 0x4e1d7f
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 4]
jge 0x4e1d7f
test eax, eax
jl 0x4e1d7f
cmp eax, dword [edx + 8]
jge 0x4e1d7f
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 + 0x108]
mov dword [ebp], eax
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add ebp, 4
add edi, edx
add esi, ecx
dec ebx
jne 0x4e1d31
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
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 0x4e1d25
jmp 0x4e1ed0
xor edx, edx
cmp ecx, 2
sete dl
test esi, esi
mov dword [esp + 0x64], edx
jle 0x4e1ed0
mov eax, dword [esp + 0x5c]
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 0x4e1ea3
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 0x4e1e81
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 4]
jge 0x4e1e81
test eax, eax
jl 0x4e1e81
cmp eax, dword [edx + 8]
jge 0x4e1e81
imul ecx, dword [esp + 0x44]
imul eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x64]
add eax, edx
test ecx, ecx
je 0x4e1e60
mov eax, dword [eax]
mov dword [ebp], eax
jmp 0x4e1e81
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 + 0x48]
mov ecx, dword [esp + 0x4c]
add ebp, 4
add esi, edx
add ebx, ecx
dec edi
jne 0x4e1e0b
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
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 0x4e1dfd
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
je 0x4e1ee8
test eax, eax
je 0x4e1ee8
mov ecx, eax
push 1
mov edx, dword [ecx]
call dword [edx]
lea ecx, [esp + 0x68]
mov dword [esp + 0x510], 0xffffffff
call fcn.004c5e00
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x508]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x504
ret 0xc