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

Disassembly:
push 0xffffffffffffffff
push 0x65eb39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x100]
lea eax, [esp + 0xcc]
push edi
push eax
mov ecx, esi
call fcn.004aaf50
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0xd4]
call fcn.004ab510
mov edx, dword [esp + 0x100]
lea ecx, [esp + 0x30]
push edx
call fcn.004c5d70
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xf8], 0
mov edi, ecx
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
lea ebp, [ecx + 4]
lea ebx, [ecx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edx
call dword [eax + 4]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov ecx, esi
call fcn.004aafb0
fild dword [esp + 0x38]
mov ecx, 6
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
fimul dword [esp + 0x3c]
fdivrp st(1)
lea ecx, [esp + 0x98]
fsqrt
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push eax
push eax
call fcn.004aae90
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x98]
push edx
call fcn.004aaf50
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xc0]
push eax
call fcn.004ab510
fld dword [esp + 0xa8]
fadd dword [esp + 0xa0]
mov ecx, dword [0x686c0c]
mov dword [esp + 0x88], 0
mov edx, ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], 0
fstp dword [esp + 0x90]
fld dword [esp + 0xac]
fadd dword [esp + 0xa4]
fstp dword [esp + 0x94]
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdivr dword [esp + 0x98]
fstp dword [esp + 0x80]
mov ecx, dword [ebp]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fdivr dword [esp + 0x9c]
fstp dword [esp + 0x84]
mov edx, dword [ebx]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xb0]
fild dword [esp + 0x10]
neg ecx
neg edx
fdivr dword [esp + 0xa0]
push ecx
push edx
lea ecx, [esp + 0x88]
fchs
fstp dword [esp + 0x90]
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdivr dword [esp + 0xac]
fchs
fstp dword [esp + 0x94]
call fcn.004aaed0
mov eax, dword [0x686c0c]
lea edx, [esp + 0x80]
mov ecx, eax
push edx
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
call fcn.004aad40
fld dword [esp + 0x68]
fmul dword [0x686614]
push ecx
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x70]
fmul dword [0x686614]
mov dword [esp + 0x50], eax
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x74]
fmul dword [0x686614]
mov dword [esp + 0x54], eax
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x78]
fmul dword [0x686614]
mov dword [esp + 0x58], eax
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x7c]
fmul dword [0x686614]
mov dword [esp + 0x5c], eax
fstp dword [esp]
call fcn.004ab180
fld dword [esp + 0x80]
fmul dword [0x686614]
mov dword [esp + 0x60], eax
fstp dword [esp]
call fcn.004ab180
mov ebp, dword [esp + 0xbc]
mov esi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xb4]
push 0x24
sub ebp, eax
sub esi, ebx
mov dword [esp + 0x34], ebp
call fcn.00492990
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0xf8], 1
je 0x4e2972
mov ecx, eax
call fcn.004c4430
mov edi, eax
jmp 0x4e2974
xor edi, edi
mov ebx, dword [esp + 0x100]
push 0
push 0
mov ecx, edi
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x18], edi
dec eax
mov byte [esp + 0x100], 0
neg eax
sbb eax, eax
and al, 0
add eax, 0x101
push eax
push esi
push ebp
call fcn.004c4470
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov edi, dword [edi + 0x14]
mov ebp, eax
mov eax, dword [ebx + 0x10]
mov ecx, edi
imul ecx, esi
dec eax
mov edx, ecx
neg eax
sbb eax, eax
mov dword [esp + 0x48], edi
and eax, 0xff
mov edi, ebp
mov bl, al
mov bh, bl
mov eax, ebx
shl eax, 0x10
mov ax, bx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x34]
cmp dword [ecx + 0x10], 1
jne 0x4e2b23
test esi, esi
jle 0x4e2c60
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test eax, eax
jle 0x4e2aed
mov dword [esp + 0x18], ecx
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
mov edi, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
mov esi, eax
sar edi, 8
sar esi, 8
test edi, edi
jl 0x4e2ac4
cmp edi, dword [esp + 0x3c]
jge 0x4e2ac4
test esi, esi
jl 0x4e2ac4
cmp esi, dword [esp + 0x38]
jge 0x4e2ac4
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x4e2a64
dec eax
or eax, 0xfffffff8
inc eax
imul esi, dword [esp + 0x44]
mov ecx, 7
mov edx, 1
sub ecx, eax
mov eax, edi
shl edx, cl
mov ecx, dword [esp + 0x40]
add ecx, esi
mov dword [esp + 0x28], edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x28]
test dl, al
je 0x4e2ac4
mov eax, ebp
mov ecx, dword [esp + 0x14]
cdq
and edx, 7
add eax, edx
mov edx, ebp
sar eax, 3
add eax, ecx
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4e2ab7
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
or byte [eax], dl
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
inc ebp
add ebx, esi
add ecx, edx
cmp ebp, eax
mov dword [esp + 0x18], ecx
jl 0x4e2a22
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
add edi, eax
mov eax, dword [esp + 0x20]
add ecx, esi
add ebx, edx
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
jne 0x4e2a10
jmp 0x4e2c5c
test esi, esi
jle 0x4e2c60
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x2c]
xor ebp, ebp
test eax, eax
jle 0x4e2c2b
mov dword [esp + 0x20], ecx
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
mov edi, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
mov esi, eax
sar edi, 8
sar esi, 8
test edi, edi
jl 0x4e2c02
cmp edi, dword [esp + 0x3c]
jge 0x4e2c02
test esi, esi
jl 0x4e2c02
cmp esi, dword [esp + 0x38]
jge 0x4e2c02
mov edx, edi
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4e2b9c
dec edx
or edx, 0xfffffff8
inc edx
imul esi, dword [esp + 0x44]
mov ecx, 7
mov eax, edi
sub ecx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x40]
add ecx, esi
mov dword [esp + 0x28], edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x28]
test dl, al
jne 0x4e2c02
mov eax, ebp
mov ecx, dword [esp + 0x14]
cdq
and edx, 7
add eax, edx
mov edx, ebp
sar eax, 3
add eax, ecx
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4e2bef
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
mov cl, byte [eax]
not dl
and cl, dl
mov byte [eax], cl
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
inc ebp
add ebx, esi
add ecx, edx
cmp ebp, eax
mov dword [esp + 0x20], ecx
jl 0x4e2b55
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
add edi, eax
mov eax, dword [esp + 0x18]
add ecx, esi
add ebx, edx
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
jne 0x4e2b43
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
cmp ecx, eax
pop ebx
je 0x4e2c76
test ecx, ecx
je 0x4e2c76
mov edx, dword [ecx]
push 1
call dword [edx]
lea ecx, [esp + 0x20]
mov dword [esp + 0xe8], 0xffffffff
call fcn.004c5e00
mov ecx, dword [esp + 0xe0]
mov eax, dword [esp]
mov dword fs:[0], ecx
add esp, 0xec
ret