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

Disassembly:
push 0xffffffffffffffff
push 0x52e10b
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.0051828b
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul dword [0x531a10]
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 [0x5314c0]
fnstsw ax
test ah, 0x44
jnp 0x49b4db
fld dword [esp + 0x14]
fcomp dword [esp + 0x28]
fnstsw ax
and eax, 0x4100
jne 0x49b4e5
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 0x49b46a
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.0051828b
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 [0x531a10]
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.0051828b
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 [0x531a10]
fld dword [esp + 0x64]
fsub dword [esp + 0x44]
fmulp st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x4c]
call fcn.0051828b
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 [0x531a10]
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.0051828b
sub eax, 0x3fff
lea ecx, [esp + 0x7c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x531a10]
fmul dword [esp + 0x50]
fadd dword [esp + 0x48]
fstp dword [esp + 0x10]
call fcn.0049c940
fld dword [esp + 0x10]
fmul dword [0x531928]
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.0051828b
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 [0x531a10]
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.0049cc80
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.0051828b
sub eax, 0x3fff
lea ecx, [esp + 0x88]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x531a10]
fmul dword [esp + 0x70]
fadd dword [esp + 0x60]
fstp dword [esp + 0x10]
call fcn.0049c940
fld dword [esp + 0x10]
fmul dword [0x531928]
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.0051828b
mov dword [esp + 0x10], eax
push ecx
fild dword [esp + 0x14]
lea ecx, [esp + 0x34]
fmul dword [0x531a10]
fld dword [esp + 0x7c]
fsub dword [esp + 0x30]
fmulp st(1)
fadd dword [esp + 0x30]
fstp dword [esp]
call fcn.0049cd50
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.0049a890
mov ebx, eax
mov eax, dword [esi + 0x9c]
lea edi, [esi + 0x9c]
test eax, eax
mov dword [esp + 0xa8], 0xffffffff
jne 0x49b48e
push 0xa
mov ecx, edi
call fcn.0049c880
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
cmp ecx, eax
jne 0x49b4a3
lea ecx, [eax + eax]
push ecx
mov ecx, edi
call fcn.0049c880
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 0x49b11c
jmp 0x49b4e5
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