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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x577c63
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push esi
push edi
mov edi, dword [esp + 0x114]
mov eax, dword [edi]
mov esi, ecx
cmp eax, dword [edi + 4]
je 0x4aa13c
mov ecx, dword [esi]
mov edx, dword [ecx]
push ebx
push ebp
call dword [edx + 0x3c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
mov ecx, dword [eax + 8]
mov ebx, dword [esp + 0x114]
mov dword [esp + 0x50], edx
fild dword [esp + 0x50]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x110]
fld dword [eax]
mov dword [esp + 0x5c], ecx
fsub dword [0x57e6a4]
mov ecx, dword [ebx]
mov dword [esp + 0x60], edx
fadd st(2)
fstp dword [esp + 0x40]
fld dword [eax + 4]
mov eax, dword [ecx]
fsub dword [0x57e6a4]
fadd st(1)
fstp dword [esp + 0x20]
fstp st(0)
fstp st(0)
call dword [eax + 8]
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x4a9a03
fadd dword [0x57ecf8]
mov ecx, dword [ebx]
fstp dword [esp + 0x48]
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x4a9a20
fadd dword [0x57ecf8]
xor ebx, ebx
fstp dword [esp + 0x64]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], ebx
call fcn.004a8fc0
mov eax, dword [edi]
mov ecx, dword [edi + 4]
xor ebp, ebp
sub ecx, eax
je 0x4a9b15
mov cl, byte [eax + ebp]
mov dl, cl
xor dl, 0x20
add dl, 0x5f
cmp dl, 0x3b
ja 0x4a9a8b
mov al, byte [eax + ebp + 1]
xor edx, edx
mov dh, cl
inc ebp
add ebx, 2
mov dl, al
mov eax, edx
mov dword [esp + 0x10], eax
jmp 0x4a9abf
cmp cl, 0xd
movzx ax, cl
mov dword [esp + 0x10], eax
je 0x4a9af5
cmp cl, 0xa
jne 0x4a9abe
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
inc edx
cmp ecx, ebx
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x44]
jb 0x4a9ab6
lea ecx, [esp + 0x28]
mov ecx, dword [ecx]
mov dword [esp + 0x28], ecx
jmp 0x4a9ac3
inc ebx
mov dword [esp + 0x44], ebx
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x34]
je 0x4a9add
test edx, edx
je 0x4a9ad4
mov word [edx], ax
add edx, 2
mov dword [esp + 0x30], edx
jmp 0x4a9af9
push 1
push 1
lea eax, [esp + 0x1f]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00415580
mov edx, dword [esp + 0x30]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
inc ebp
sub ecx, eax
cmp ebp, ecx
jb 0x4a9a65
cmp dword [esp + 0x28], ebx
jae 0x4a9b19
lea eax, [esp + 0x44]
jmp 0x4a9b1d
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x28]
mov ebx, dword [eax]
mov eax, dword [esp + 0x120]
test eax, eax
mov edi, dword [esp + 0x2c]
jge 0x4a9b38
mov eax, edx
sub eax, edi
sar eax, 1
mov ecx, eax
jmp 0x4a9b5a
mov ecx, dword [esp + 0x24]
add ecx, eax
mov eax, edx
sub eax, edi
sar eax, 1
mov dword [esp + 0x10], ecx
cmp ecx, eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x10]
jl 0x4a9b58
lea ecx, [esp + 0x24]
mov ecx, dword [ecx]
cmp ecx, eax
mov dword [esp + 0x10], 0
jae 0x4a9b73
mov edx, dword [esp + 0x2c]
lea edi, [edx + ecx*2]
mov dword [esp + 0x30], edi
jmp 0x4a9b89
sub ecx, eax
lea eax, [esp + 0x10]
push eax
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00415750
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x124]
cmp eax, 3
ja case.default.0x4a9b99
jmp dword [eax*4 + 0x4aa158]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x6c], 0
jmp case.default.0x4a9b99
test ebx, ebx
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
jge 0x4a9bd7
fadd dword [0x57ecf8]
fmul dword [esp + 0x48]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x68], 0x3f800000
fsubr dword [esp + 0x40]
mov dword [esp + 0x6c], 0
fstp dword [esp + 0x38]
jmp case.default.0x4a9b99
fld dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
fadd st(0), st(0)
mov dword [esp + 0x3c], ecx
fsubr dword [esp + 0x40]
fstp dword [esp + 0x38]
jmp 0x4a9c42
fld dword [esp + 0x48]
dec ebx
test ebx, ebx
fadd st(0), st(0)
mov dword [esp + 0x10], ebx
fsubr dword [esp + 0x40]
fstp dword [esp + 0x38]
fild dword [esp + 0x10]
jge 0x4a9c36
fadd dword [0x57ecf8]
fmul dword [esp + 0x64]
fsubr dword [esp + 0x20]
fstp dword [esp + 0x3c]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x3f800000
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x4c], 0
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x118]
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x74], eax
mov eax, dword [edx]
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x88], edx
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x50], 0
mov edx, dword [esp + 0x50]
mov dword [esp + 0x90], edx
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x18], 0x3f800000
mov edx, dword [esp + 0x18]
mov dword [esp + 0xa0], edx
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xac], ecx
mov dword [esp + 0x4c], 0
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0x54], 0
mov edx, dword [esp + 0x54]
mov dword [esp + 0xb0], edx
mov dword [esp + 0x1c], 0x3f800000
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc0], edx
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x50], 0
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc8], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x18], 0x3f800000
mov edx, dword [esp + 0x18]
mov dword [esp + 0xd4], eax
mov dword [esp + 0x1c], 0x3f800000
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi]
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x98], 0x3f800000
mov dword [esp + 0xb4], 0x3f800000
mov dword [esp + 0xd0], 0x3f800000
mov dword [esp + 0xdc], eax
mov eax, dword [ecx]
push 0
mov dword [esp + 0x20], edx
call dword [eax + 0x12c]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov dword [esp + 0x44], eax
push 0
call dword [edx + 0x134]
mov ecx, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
push 6
call dword [eax + 0x11c]
test al, al
mov ecx, dword [esi]
je 0x4a9e63
mov edx, dword [ecx]
push 6
push 0
call dword [edx + 0x120]
jmp 0x4a9e6f
mov eax, dword [ecx]
push 2
push 0
call dword [eax + 0x120]
mov ecx, dword [esi]
mov edx, dword [ecx]
push 1
push 0
call dword [edx + 0x128]
sub edi, dword [esp + 0x2c]
mov ebp, edi
sar ebp, 1
xor ebx, ebx
test ebp, ebp
mov byte [esp + 0x17], 0
jbe 0x4aa096
mov edi, dword [esp + 0x2c]
mov ax, word [edi + ebx*2]
cmp ax, 0xff
jbe 0x4a9eae
fld dword [esp + 0x48]
fadd st(0), st(0)
fstp dword [esp + 0x24]
jmp 0x4a9eb6
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
cmp ax, 0xa
jne 0x4a9f13
mov eax, dword [esp + 0x124]
cmp eax, 3
ja case.default.0x4a9ec8
jmp dword [eax*4 + 0x4aa168]
fld dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
fadd dword [esp + 0x64]
mov dword [esp + 0x18], edx
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
jmp 0x4aa08b
fld dword [esp + 0x48]
fadd st(0), st(0)
fsubr dword [esp + 0x38]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jmp 0x4aa08b
cmp ax, 9
je 0x4aa08b
mov ecx, dword [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0xe8]
push edx
lea ecx, [esi + 0x28]
call fcn.004e5e80
mov edi, dword [esp + 0xe4]
test edi, edi
mov byte [esp + 0x108], 1
jne 0x4a9f53
mov byte [esp + 0x17], 1
jmp 0x4aa073
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
fadd dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov edx, ecx
mov dword [esp + 0x74], ecx
fst dword [esp + 0x8c]
lea ecx, [esp + 0xe0]
fld dword [esp + 0x1c]
mov dword [esp + 0x70], eax
fadd dword [esp + 0x64]
mov dword [esp + 0x90], edx
mov dword [esp + 0xa8], eax
fst dword [esp + 0xac]
fxch st(1)
fstp dword [esp + 0xc4]
fstp dword [esp + 0xc8]
call fcn.005094b0
mov edx, dword [edi]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov ecx, edi
fstp dword [esp + 0x20]
call dword [edx + 4]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov edi, dword [esp + 0xe4]
lea ecx, [esp + 0xe0]
fdivr dword [esp + 0x20]
fstp dword [esp + 0x10]
call fcn.005094c0
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, edi
fstp dword [esp + 0x40]
call dword [eax + 8]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov dword [esp + 0xd8], edx
fdivr dword [esp + 0x40]
mov edx, dword [esp + 0xe4]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esi]
push edx
push 0
fst dword [esp + 0xc8]
fstp dword [esp + 0xe4]
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [esi]
mov eax, dword [ecx]
push 1
call dword [eax + 0x7c]
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0x1c
push 2
push 4
lea eax, [esp + 0x7c]
push eax
call dword [edx + 0xac]
fld dword [esp + 0x24]
fmul dword [esp + 0x68]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x6c]
fmul dword [esp + 0x64]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 0
call fcn.004f1420
mov edi, dword [esp + 0x2c]
inc ebx
cmp ebx, ebp
jb 0x4a9e94
jmp 0x4aa09a
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esi]
mov edx, dword [ecx]
push eax
push 0
call dword [edx + 0x120]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi]
mov edx, dword [ecx]
push eax
push 0
call dword [edx + 0x128]
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0
push 0
call dword [edx + 0x40]
mov al, byte [esp + 0x17]
test al, al
pop ebp
pop ebx
mov dword [esp + 0x100], 0xffffffff
je 0x4aa112
test edi, edi
je 0x4aa10b
mov eax, dword [esp + 0x2c]
sub eax, edi
sar eax, 1
shl eax, 1
cmp eax, 0x80
jbe 0x4aa101
push edi
call fcn.0052b8dd
add esp, 4
mov eax, 1
jmp 0x4aa13e
push eax
push edi
call fcn.0050e390
add esp, 8
mov eax, 1
jmp 0x4aa13e
test edi, edi
je 0x4aa13c
mov eax, dword [esp + 0x2c]
sub eax, edi
sar eax, 1
shl eax, 1
cmp eax, 0x80
jbe 0x4aa132
push edi
call fcn.0052b8dd
add esp, 4
jmp 0x4aa13c
push eax
push edi
call fcn.0050e390
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xfc
ret 0x18