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

Disassembly:
push 0xffffffffffffffff
push 0x6639a9
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.004abff0
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0xfc]
call fcn.004ac5b0
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 0x4e2bfa
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 [0x68b7c8]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4e2cf3
fld dword [esi + 0xc]
fld dword [esi + 8]
fabs
fstp dword [esp + 0x10]
fabs
fld dword [esp + 0x10]
fmul dword [0x68b7c8]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4e2cf3
fld dword [esi + 8]
fabs
sub esp, 8
fstp qword [esp]
call fcn.0046b69f
call fcn.004665dc
fld dword [esi + 4]
fabs
fstp qword [esp]
mov ebx, eax
call fcn.0046b69f
add esp, 8
call fcn.004665dc
mov ecx, dword [edi + 8]
mov edx, eax
imul ecx, dword [edi + 4]
imul edx, ebx
cmp edx, ecx
jge 0x4e2c96
mov ecx, dword [esp + 0x51c]
push 0
push ecx
push ebx
push eax
mov ecx, edi
call fcn.004e3640
mov ebx, eax
jmp 0x4e2c98
mov ebx, edi
test ebx, ebx
jne 0x4e2ca3
xor eax, eax
jmp 0x4e3620
fld dword [esi + 4]
fcomp dword [0x675254]
fnstsw ax
test ah, 1
je 0x4e2cba
mov ecx, 1
jmp 0x4e2cbc
xor ecx, ecx
fld dword [esi + 8]
fcomp dword [0x675254]
fnstsw ax
test ah, 0x41
jne 0x4e2cd3
mov eax, 1
jmp 0x4e2cd5
xor eax, eax
push ecx
push eax
mov ecx, ebx
call fcn.004e2880
cmp ebx, edi
mov esi, eax
je 0x4e2cec
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov eax, esi
jmp 0x4e3620
fld dword [esi + 4]
fabs
fcomp dword [0x68be1c]
fnstsw ax
test ah, 1
je 0x4e2dd3
fld dword [esi + 8]
fabs
fcomp dword [0x68be1c]
fnstsw ax
test ah, 1
je 0x4e2dd3
fld dword [esi]
fcomp dword [0x675254]
fld dword [esi]
fnstsw ax
test ah, 0x41
jne 0x4e2d3d
sub esp, 8
fstp qword [esp]
call fcn.0046b69f
jmp 0x4e2d48
sub esp, 8
fstp qword [esp]
call fcn.00468174
add esp, 8
call fcn.004665dc
fld dword [esi + 0xc]
fcomp dword [0x675254]
fld dword [esi + 0xc]
mov dword [esp + 0x34], eax
fnstsw ax
test ah, 0x41
jne 0x4e2d74
sub esp, 8
fstp qword [esp]
call fcn.0046b69f
jmp 0x4e2d7f
sub esp, 8
fstp qword [esp]
call fcn.00468174
add esp, 8
call fcn.004665dc
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.004e3640
jmp 0x4e3620
push edi
lea ecx, [esp + 0x6c]
call fcn.004c7080
xor ebp, ebp
mov ecx, esi
mov dword [esp + 0x510], ebp
call fcn.004ac050
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.004abf30
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.004abff0
lea edx, [esp + 0xc8]
lea ecx, [esp + 0xe8]
push edx
call fcn.004ac5b0
fld dword [esp + 0xc0]
fadd dword [esp + 0xb8]
mov eax, dword [0x68be18]
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.004abf70
mov edx, dword [0x68be18]
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.004abde0
fld dword [esp + 0x7c]
fmul dword [0x68b82c]
push ecx
fstp dword [esp]
call fcn.004ac220
fld dword [esp + 0x84]
fmul dword [0x68b82c]
mov dword [esp + 0x4c], eax
fstp dword [esp]
call fcn.004ac220
fld dword [esp + 0x88]
fmul dword [0x68b82c]
mov dword [esp + 0x50], eax
fstp dword [esp]
call fcn.004ac220
fld dword [esp + 0x8c]
fmul dword [0x68b82c]
mov dword [esp + 0x54], eax
fstp dword [esp]
call fcn.004ac220
fld dword [esp + 0x90]
fmul dword [0x68b82c]
mov dword [esp + 0x58], eax
fstp dword [esp]
call fcn.004ac220
fld dword [esp + 0x94]
fmul dword [0x68b82c]
mov ebx, eax
fstp dword [esp]
call fcn.004ac220
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.00493aa0
add esp, 8
mov dword [esp + 0x44], eax
cmp eax, ebp
mov byte [esp + 0x510], 1
je 0x4e3055
mov ecx, eax
call fcn.004c5740
mov dword [esp + 0x34], eax
jmp 0x4e3059
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.004c5780
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 0x4e3331
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x10], 1
jne 0x4e31e8
test esi, esi
jle 0x4e35f0
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 0x4e31aa
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 0x4e3189
mov ecx, dword [esp + 0x30]
cmp edi, dword [ecx + 4]
jge 0x4e3189
test esi, esi
jl 0x4e3189
mov edx, ecx
cmp esi, dword [edx + 8]
jge 0x4e3189
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x4e314e
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 0x4e3189
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 0x4e3106
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 0x4e30ec
jmp 0x4e35f0
mov edi, dword [esp + 0x2c]
push 0
mov ecx, edi
call fcn.004c5b30
push 1
mov ecx, edi
mov dword [esp + 0x48], eax
call fcn.004c5b30
test esi, esi
mov dword [esp + 0x64], eax
jle 0x4e35f0
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 0x4e32ff
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 0x4e32cd
mov eax, dword [esp + 0x30]
cmp edi, dword [eax + 4]
jge 0x4e32cd
test esi, esi
jl 0x4e32cd
cmp esi, dword [eax + 8]
jge 0x4e32cd
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x4e327e
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 0x4e32c3
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
mov dword [edx], ecx
jmp 0x4e32cd
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 0x4e323a
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 0x4e3224
jmp 0x4e35f0
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x10]
cmp ecx, 1
jne 0x4e33fb
test esi, esi
jle 0x4e35f0
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 0x4e33cd
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 0x4e33b0
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 4]
jge 0x4e33b0
test eax, eax
jl 0x4e33b0
cmp eax, dword [edx + 8]
jge 0x4e33b0
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 0x4e336b
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 0x4e3361
jmp 0x4e35f0
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 1
mov dword [esp + 0x44], eax
jne 0x4e34ef
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x108]
push 0xff
push eax
call fcn.004c61e0
test esi, esi
jle 0x4e35f0
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 0x4e34bd
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 0x4e349f
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 4]
jge 0x4e349f
test eax, eax
jl 0x4e349f
cmp eax, dword [edx + 8]
jge 0x4e349f
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 0x4e3451
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 0x4e3445
jmp 0x4e35f0
xor edx, edx
cmp ecx, 2
sete dl
test esi, esi
mov dword [esp + 0x64], edx
jle 0x4e35f0
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 0x4e35c3
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 0x4e35a1
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 4]
jge 0x4e35a1
test eax, eax
jl 0x4e35a1
cmp eax, dword [edx + 8]
jge 0x4e35a1
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 0x4e3580
mov eax, dword [eax]
mov dword [ebp], eax
jmp 0x4e35a1
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 0x4e352b
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 0x4e351d
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
je 0x4e3608
test eax, eax
je 0x4e3608
mov ecx, eax
push 1
mov edx, dword [ecx]
call dword [edx]
lea ecx, [esp + 0x68]
mov dword [esp + 0x510], 0xffffffff
call fcn.004c7110
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