Function at 0x4d49e0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b50eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [0x61aa74]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], edi
xor ebx, ebx
lea ecx, [esp + 0x54]
push ebx
push 2
push ebx
mov dword [esp + 0xa4], ebx
call fcn.0058af4a
push ebx
push 1
push ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0xa4], 1
call fcn.0058af4a
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov byte [esp + 0x9c], 2
call fcn.0058a4e7
fld qword [0x5d3b38]
fsin
mov edx, dword [esi]
push 5
mov ecx, esi
mov dword [esp + 0x30], eax
fmul qword [0x5cb1f8]
fstp qword [esp + 0x60]
fld qword [0x5d3b38]
fcos
fmul qword [0x5cb1f8]
fstp qword [esp + 0x68]
call dword [edx + 0x24]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], 8
cmp eax, ebx
jne 0x4d4b41
add edi, 0x38
mov eax, dword [edi]
mov dword [esp + 0x3c], eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x3c]
mov edx, dword [edi + 8]
mov dword [esp + 0x44], edx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x48], eax
call fcn.005974ef
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
sub ecx, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
sub edx, eax
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmulp st(1)
fabs
fsqrt
call fcn.0056b454
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [0x5d3b34]
fcom dword [0x5cf370]
fnstsw ax
test ah, 1
je 0x4d4b19
fld st(0)
fcomp dword [0x5cb15c]
fnstsw ax
test ah, 0x41
jne 0x4d4b30
fcom dword [0x5cf370]
fnstsw ax
test ah, 1
jne 0x4d4b38
fstp st(0)
fld dword [0x5cf370]
jmp 0x4d4b38
fstp st(0)
fld dword [0x5cb15c]
call fcn.0056b454
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x5d35a8
fild dword [esp + 0x14]
mov byte [esp + 0x98], 3
fmul dword [0x5d3b30]
call fcn.0056b454
push 0x6129a8
push 0x20
push ebx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
push 0x10
push ebx
push ebx
push ebx
fmul dword [0x5d3b2c]
push ebx
push ebx
push 0x190
push ebx
push ebx
push ebx
call fcn.0056b454
push eax
call dword [0x5c91c8]
push eax
lea ecx, [esp + 0x38]
call fcn.0058aedd
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call dword [eax + 0x28]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
cmp edi, ebx
mov dword [esp + 0x14], edi
jle 0x4d4d4e
fild dword [esp + 0x14]
fst qword [esp + 0x3c]
fmul qword [0x5cb1f8]
call fcn.0056b454
mov ebx, eax
mov eax, edi
cdq
mov ecx, 5
idiv ecx
test edx, edx
jne 0x4d4d22
cmp edi, dword [ebp + 0xc]
jge 0x4d4d22
lea edx, [esp + 0x54]
mov ecx, esi
push edx
call fcn.0058a4e7
fld qword [esp + 0x3c]
fmul qword [esp + 0x5c]
fld st(0)
call fcn.0056b454
fld qword [esp + 0x3c]
fmul qword [esp + 0x64]
mov dword [esp + 0x24], eax
fld st(0)
fchs
call fcn.0056b454
mov dword [esp + 0x18], eax
call fcn.0056b454
fchs
mov dword [esp + 0x1c], eax
call fcn.0056b454
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
push ecx
mov edi, ebx
lea eax, [ebx + 1]
push edx
push ecx
neg edi
push eax
push eax
mov eax, dword [esi + 4]
push edi
push edi
push eax
call dword [0x5c9178]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push eax
push edx
push eax
lea eax, [ebx + 1]
push eax
push eax
mov eax, dword [esi + 4]
push edi
push edi
push eax
call dword [0x5c9178]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], ecx
add edi, eax
lea ecx, [ebx + eax]
sub ebx, eax
mov eax, dword [esp + 0x28]
mov edx, ecx
neg edx
fld dword [eax + 0xb4]
fmul qword [esp + 0x3c]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x10]
fmul qword [0x5cb658]
mov dword [esp + 0x78], edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebx
call fcn.0056b454
push eax
lea ecx, [esp + 0x10]
push 0x61245c
push ecx
call fcn.0057fc34
mov edx, dword [esi]
add esp, 0xc
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x70]
push 0x25
push eax
push 0xffffffffffffffff
push ecx
mov ecx, esi
call dword [edx + 0x68]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
lea eax, [esp + 0x80]
push 0x25
push eax
push 0xffffffffffffffff
push ecx
mov ecx, esi
call dword [edx + 0x68]
mov edi, dword [esp + 0x14]
jmp 0x4d4d41
lea edx, [esp + 0x4c]
mov ecx, esi
push edx
call fcn.0058a4e7
lea eax, [ebx + 1]
neg ebx
push eax
push eax
mov eax, dword [esi + 4]
push ebx
push ebx
push eax
call dword [0x5c91b0]
dec edi
test edi, edi
mov dword [esp + 0x14], edi
jg 0x4d4bbe
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0058a4e7
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov esi, 0x5ca4dc
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x98], 4
call fcn.0058af34
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x98], 5
call fcn.0058af34
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 6
call fcn.0058af34
lea ecx, [esp + 0xc]
mov dword [esp + 0x98], 0xffffffff
call int.0058677d
mov ecx, dword [esp + 0x90]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8