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

Disassembly:
push 0xffffffffffffffff
push 0x54a7db
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.00534ea1
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul dword [0x54ecd0]
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 [0x54e4d0]
fnstsw ax
test ah, 0x44
jnp 0x4b1547
fld dword [esp + 0x14]
fcomp dword [esp + 0x28]
fnstsw ax
and eax, 0x4100
jne 0x4b1551
push 0xa4
call dword [sym.imp.system86ta.dll_MemoryMalloc]
mov edi, eax
add esp, 4
mov dword [esp + 0x9c], edi
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0xa8], ebx
je 0x4b14d6
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ebx, dword [esi + 0x8c]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x40], eax
call fcn.00534ea1
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x58]
fild dword [esp + 0x10]
mov edx, dword [esi + 0x54]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x44], edx
fmul dword [0x54ecd0]
fld dword [esp + 0x6c]
fsub dword [esp + 0x40]
fmulp st(1)
fadd dword [esp + 0x40]
fadd dword [esp + 0xb0]
fstp dword [esp + 0x74]
call fcn.00534ea1
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
fild dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x3c], ecx
fmul dword [0x54ecd0]
fld dword [esp + 0x68]
fsub dword [esp + 0x44]
fmulp st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x4c]
call fcn.00534ea1
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x48]
fild dword [esp + 0x10]
mov eax, dword [esi + 0x44]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
fmul dword [0x54ecd0]
fld dword [esp + 0x70]
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.00534ea1
sub eax, 0x3fff
lea ecx, [esp + 0x78]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x54ecd0]
fmul dword [esp + 0x50]
fadd dword [esp + 0x48]
fstp dword [esp + 0x10]
call fcn.004b2a80
fld dword [esp + 0x10]
fmul dword [0x54ebc8]
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x80], 0
mov dword [esp + 0x20], 0
fld st(0)
fcos
mov dword [esp + 0x58], edx
mov dword [esp + 0x24], eax
fst dword [esp + 0x78]
fxch st(1)
fsin
fchs
fstp dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
fstp dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
call fcn.00534ea1
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 [0x54ecd0]
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.004b2d40
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x38]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x94], edx
mov edx, dword [esi + 0x34]
mov dword [esp + 0x98], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
call fcn.00534ea1
sub eax, 0x3fff
lea ecx, [esp + 0x84]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x54ecd0]
fmul dword [esp + 0x5c]
fadd dword [esp + 0x60]
fstp dword [esp + 0x10]
call fcn.004b2a80
fld dword [esp + 0x10]
fmul dword [0x54ebc8]
fld st(0)
fcos
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x64], ecx
mov dword [esp + 0x2c], edx
fst dword [esp + 0x84]
fxch st(1)
fsin
fchs
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
fstp dword [esp + 0x30]
mov dword [esp + 0x34], eax
call fcn.00534ea1
mov dword [esp + 0x10], eax
push ecx
fild dword [esp + 0x14]
lea ecx, [esp + 0x34]
fmul dword [0x54ecd0]
fld dword [esp + 0x68]
fsub dword [esp + 0x30]
fmulp st(1)
fadd dword [esp + 0x30]
fstp dword [esp]
call fcn.004b2de0
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
push ecx
push edx
lea eax, [esi + 8]
push ebx
sub esp, 0xc
mov ecx, eax
mov edx, esp
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esi + 0x5c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push ecx
mov ecx, dword [esp + 0xcc]
sub esp, 0xc
mov edx, esp
sub esp, 0xc
mov dword [edx], ebp
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xe8]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x80]
mov edx, esp
sub esp, 0xc
mov dword [edx], ecx
mov ecx, dword [esp + 0x90]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [edx + 8], ecx
mov ecx, dword [eax]
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, edi
mov dword [edx + 8], eax
call fcn.004b08e0
mov ebx, eax
mov eax, dword [esi + 0x9c]
lea edi, [esi + 0x9c]
test eax, eax
mov dword [esp + 0xa8], 0xffffffff
jne 0x4b14fa
push 0xa
mov ecx, edi
call fcn.004b2900
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
cmp ecx, eax
jne 0x4b150f
lea ecx, [eax + eax]
push ecx
mov ecx, edi
call fcn.004b2900
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 0x4b116c
jmp 0x4b1551
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