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

Disassembly:
push 0xffffffffffffffff
push 0x53346b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
call fcn.0051d565
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul dword [0x537a38]
fld dword [esp + 0x24]
fsub dword [esp + 0x14]
fmulp st(1)
fadd dword [esp + 0x14]
fstp dword [esp + 0x28]
fld dword [esp + 0xb0]
fsub dword [esi + 4]
fstp dword [esp + 0x14]
fld dword [esp + 0x28]
fcomp dword [0x5374c0]
fnstsw ax
test ah, 0x44
jnp 0x49e46b
fld dword [esp + 0x14]
fcomp dword [esp + 0x28]
fnstsw ax
and eax, 0x4100
jne 0x49e475
push 0xa4
call dword [sym.imp.system86.dll_MemoryMalloc]
add esp, 4
mov dword [esp + 0x5c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xa8], ebx
je 0x49e3fa
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x8c]
mov dword [esp + 0x74], edx
mov dword [esp + 0x40], eax
call fcn.0051d565
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x58]
fild dword [esp + 0x10]
mov edx, dword [esi + 0x54]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x44], edx
fmul dword [0x537a38]
fld dword [esp + 0x74]
fsub dword [esp + 0x40]
fmulp st(1)
fadd dword [esp + 0x40]
fadd dword [esp + 0xb0]
fstp dword [esp + 0x68]
call fcn.0051d565
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
fild dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x3c], ecx
fmul dword [0x537a38]
fld dword [esp + 0x64]
fsub dword [esp + 0x44]
fmulp st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x4c]
call fcn.0051d565
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x48]
fild dword [esp + 0x10]
mov eax, dword [esi + 0x44]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
fmul dword [0x537a38]
fld dword [esp + 0x6c]
fsub dword [esp + 0x3c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
fmulp st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x54]
call fcn.0051d565
sub eax, 0x3fff
lea ecx, [esp + 0x7c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x537a38]
fmul dword [esp + 0x50]
fadd dword [esp + 0x48]
fstp dword [esp + 0x10]
call fcn.0049f8d0
fld dword [esp + 0x10]
fmul dword [0x537950]
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x20], ebx
fld st(0)
fcos
mov dword [esp + 0x58], edx
mov dword [esp + 0x24], eax
fst dword [esp + 0x7c]
fxch st(1)
fsin
fchs
fstp dword [esp + 0x80]
mov ecx, dword [esp + 0x80]
fstp dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
call fcn.0051d565
mov dword [esp + 0x10], eax
lea ecx, [esi + 0x6c]
fild dword [esp + 0x10]
mov eax, dword [ecx]
sub esp, 0xc
mov edx, esp
fmul dword [0x537a38]
fld dword [esp + 0x64]
fsub dword [esp + 0x30]
mov dword [edx], eax
mov eax, dword [ecx + 4]
fmulp st(1)
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
fadd dword [esp + 0x30]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x24]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fmul st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x2c]
fstp st(0)
call fcn.0049fc10
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x9c], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x60], ecx
call fcn.0051d565
sub eax, 0x3fff
lea ecx, [esp + 0x88]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x537a38]
fmul dword [esp + 0x70]
fadd dword [esp + 0x60]
fstp dword [esp + 0x10]
call fcn.0049f8d0
fld dword [esp + 0x10]
fmul dword [0x537950]
fld st(0)
fcos
fst dword [esp + 0x88]
fxch st(1)
fsin
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x90], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x2c], ecx
fchs
fstp dword [esp + 0x8c]
mov edx, dword [esp + 0x8c]
fstp dword [esp + 0x30]
mov dword [esp + 0x34], edx
call fcn.0051d565
mov dword [esp + 0x10], eax
push ecx
fild dword [esp + 0x14]
lea ecx, [esp + 0x34]
fmul dword [0x537a38]
fld dword [esp + 0x7c]
fsub dword [esp + 0x30]
fmulp st(1)
fadd dword [esp + 0x30]
fstp dword [esp]
call fcn.0049fce0
mov edx, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
push edx
push ecx
lea eax, [esi + 8]
push edi
sub esp, 0xc
mov edx, eax
mov ecx, esp
mov edi, dword [edx]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov ecx, dword [esi + 0x40]
mov edx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esi + 0x5c]
push edx
mov edx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push ecx
push edx
mov edx, dword [esp + 0xd4]
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x80]
mov ecx, esp
sub esp, 0xc
mov dword [ecx], edx
mov edx, dword [esp + 0x90]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x94]
mov dword [ecx + 8], edx
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0xb8]
call fcn.0049d820
mov ebx, eax
mov eax, dword [esi + 0x9c]
lea edi, [esi + 0x9c]
test eax, eax
mov dword [esp + 0xa8], 0xffffffff
jne 0x49e41e
push 0xa
mov ecx, edi
call fcn.0049f810
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
cmp ecx, eax
jne 0x49e433
lea ecx, [eax + eax]
push ecx
mov ecx, edi
call fcn.0049f810
fld dword [esp + 0x14]
fsub dword [esp + 0x28]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, dword [esp + 0xb0]
mov dword [eax + edx*4], ebx
mov eax, dword [edi + 4]
fst dword [esp + 0x14]
fcomp dword [esp + 0x28]
inc eax
mov dword [edi + 4], eax
mov dword [esi + 4], ecx
fnstsw ax
and eax, 0x4100
je 0x49e0ac
jmp 0x49e475
mov edx, dword [esp + 0xb0]
mov dword [esi + 4], edx
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x9c
ret 4