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

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea ebx, [ebx]
mov eax, dword [0x851c30]
mov edx, dword [eax + 0x34]
mov edi, dword [esp + 0x120]
mov ebp, dword [esp + 0x11c]
mov eax, edi
and eax, 0xffff
lea ecx, [eax + eax*2]
mov esi, dword [edx + ecx*4 + 8]
mov ecx, dword [esi]
mov eax, dword [0x86cff4]
mov bl, byte [esi + 0x10]
and ecx, 0xffff
shl ecx, 5
mov ecx, dword [ecx + eax + 0x14]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp]
and ecx, 0xffff
shl ecx, 5
mov eax, dword [ecx + eax + 0x14]
not bl
and bl, 1
mov dword [esp + 0x18], eax
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
je 0x4e9bbe
mov cl, byte [esi + 0xb4]
mov eax, 1
shl eax, cl
test al, 3
je 0x4e9bbe
mov ecx, dword [esp + 0x18]
fld dword [ecx + 0x1cc]
fcomp dword [0x66c504]
fnstsw ax
test ah, 0x41
jne 0x4e9bbe
fld dword [esi + 0xa0]
lea edi, [ebp + 0x28]
fsub dword [edi]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x54]
mov byte [esp + 0x17], 1
fstp dword [esp + 0x54]
fld dword [esi + 0xa4]
fsub dword [edi + 4]
fstp dword [esp + 0x58]
fld dword [esi + 0xa8]
fsub dword [edi + 8]
fstp dword [esp + 0x5c]
call fcn.004cb9b0
mov ecx, eax
call fcn.00401990
fstp st(0)
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x30]
call fcn.004052d0
add esp, 4
mov ecx, eax
call fcn.00401990
fstp st(0)
xor ebp, ebp
mov dword [esp + 0x1c], 4
cmp ebp, 3
ja case.default.0x4e9a89
jmp dword [ebp*4 + 0x4e9e84]
mov eax, dword [esp + 0x18]
fld dword [eax + 0x1cc]
jmp 0x4e9aa8
mov ecx, dword [esp + 0x18]
fld dword [ecx + 0x1cc]
fchs
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
jmp 0x4e9af2
mov edx, dword [esp + 0x18]
fld dword [edx + 0x1cc]
jmp 0x4e9ada
mov eax, dword [esp + 0x18]
fld dword [eax + 0x1cc]
fchs
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x124]
call fcn.004f2b90
push eax
lea edx, [esp + 0x28]
push edx
push edi
push 0xc221
call fcn.00501460
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x134]
add esp, 0x14
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], edx
call fcn.004f2b90
fld dword [esi + 0xa0]
fsub dword [esp + 0x44]
lea ecx, [esp + 0x78]
push ecx
push eax
fstp dword [esp + 0x74]
lea edx, [esp + 0x74]
fld dword [esi + 0xa4]
push edx
fsub dword [esp + 0x54]
lea eax, [esp + 0x50]
push eax
push 0xc221
fstp dword [esp + 0x84]
fld dword [esi + 0xa8]
fsub dword [esp + 0x60]
fstp dword [esp + 0x88]
call fcn.00501460
add esp, 0x14
test al, al
jne 0x4e9ba1
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x1c]
inc ebp
dec eax
mov dword [esp + 0x1c], eax
jne 0x4e9a84
mov al, byte [esp + 0x17]
mov ebp, dword [esp + 0x11c]
jmp 0x4e9c2e
or ecx, 0xffffffff
cmp edi, 0xffffffff
mov eax, edi
je 0x4e9be9
jmp 0x4e9bd0
mov ecx, eax
and eax, 0xffff
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
mov eax, dword [eax + 0x11c]
cmp eax, 0xffffffff
jne 0x4e9bd0
fld dword [esi + 0xa0]
lea edi, [ebp + 0x28]
fsub dword [edi]
lea edx, [esp + 0xc8]
push edx
push ecx
fstp dword [esp + 0x68]
lea eax, [esp + 0x68]
fld dword [esi + 0xa4]
push eax
fsub dword [edi + 4]
push edi
push 0xc221
fstp dword [esp + 0x78]
fld dword [esi + 0xa8]
fsub dword [edi + 8]
fstp dword [esp + 0x7c]
call fcn.00501460
add esp, 0x14
test al, al
je 0x4e9c34
xor bl, bl
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x1c8]
test al, 1
je 0x4e9c50
mov edx, dword [esp + 0x120]
cmp edx, dword [ebp + 0xc]
jne 0x4e9c50
xor bl, bl
test al, 8
je 0x4e9c6f
mov cx, word [ebp + 0x10]
mov dx, word [esi + 0xb8]
call fcn.0045be00
test al, al
jne 0x4e9c6f
xor bl, bl
jmp 0x4e9d38
test bl, bl
je 0x4e9d38
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c8]
test ch, 0x10
je 0x4e9d38
mov cl, byte [esi + 0xb4]
mov edx, 1
shl edx, cl
xor bl, bl
test dl, 3
je 0x4e9d38
mov eax, dword [esi]
mov ecx, dword [0x86cff4]
and eax, 0xffff
shl eax, 5
mov edx, dword [eax + ecx + 0x14]
test dword [edx + 0x17c], 0x80000
je 0x4e9d38
mov eax, dword [esp + 0x120]
cmp eax, dword [ebp + 0xc]
je 0x4e9d38
mov ecx, dword [0x6aa328]
mov cx, word [ecx + 0xe]
push 8
call fcn.0046ed90
fcom dword [0x66c40c]
add esp, 4
fst dword [esp + 0x1c]
mov bl, 1
fnstsw ax
test ah, 0x41
je 0x4e9d04
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c8]
test ah, 4
je 0x4e9d0c
test byte [ebp + 4], 0x40
je 0x4e9d0c
xor bl, bl
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x4e9d33
call fcn.004019f0
fld dword [esp + 0x1c]
fmul dword [0x66c4d4]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4e9d33
xor bl, bl
mov byte [esp + 0x16], 1
mov ecx, dword [ebp + 4]
or ecx, 1
test bl, bl
mov dword [ebp + 4], ecx
je 0x4e9e37
fld dword [esi + 0xa0]
lea ecx, [ebp + 0x34]
fsub dword [edi]
fstp dword [ecx]
fld dword [esi + 0xa4]
fsub dword [edi + 4]
fstp dword [ecx + 4]
fld dword [esi + 0xa8]
fsub dword [edi + 8]
fstp dword [ecx + 8]
call fcn.00401990
mov ecx, dword [esp + 0x18]
fld dword [ecx + 4]
fsub dword [ecx]
fcom dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x4e9db0
fxch st(1)
fsub dword [ecx]
fdiv st(1)
fsubr dword [0x66c410]
fxch st(1)
fstp st(0)
fcom dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4e9db4
fstp st(0)
fld dword [0x66c40c]
jmp 0x4e9dc9
fstp st(0)
jmp 0x4e9dc1
fcom dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4e9dc9
fstp st(0)
fld dword [0x66c410]
test byte [ecx + 0xc], 1
jne 0x4e9dd2
fst dword [ebp + 0x40]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 0x41
jne 0x4e9dfd
mov eax, dword [esp + 0x120]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push ebp
call fcn.004ea1a0
add esp, 0x18
mov byte [esp + 0x15], 1
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x7c]
cmp eax, 0xffffffff
je 0x4e9e37
mov edx, dword [0x86cff4]
and eax, 0xffff
shl eax, 5
mov eax, dword [eax + edx + 0x14]
test byte [eax], 8
je 0x4e9e37
mov eax, dword [esi + 0x118]
cmp eax, 0xffffffff
je 0x4e9e37
push 1
push eax
push ebp
call fcn.004e9970
add esp, 0xc
mov al, byte [esp + 0x16]
test al, al
je 0x4e9e4f
test bl, bl
je 0x4e9e4b
mov al, byte [esp + 0x15]
test al, al
je 0x4e9e4f
or dword [ebp + 4], 0x40
mov al, byte [esp + 0x124]
test al, al
je 0x4e9e79
mov esi, dword [esi + 0x114]
cmp esi, 0xffffffff
je 0x4e9e79
mov byte [esp + 0x124], 1
mov dword [esp + 0x120], esi
jmp 0x4e9980
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret