Function at 0x4970a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6c2348
push eax
mov eax, dword [0x72d944]
mov dword fs:[0], esp
sub esp, 0x30
lea edx, [esp]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [eax + 0x74]
lea eax, [esp + 0x14]
lea esi, [edi + 0x38]
push edx
push eax
push esi
call fcn.00492850
cmp al, 1
jne 0x4970f3
mov ecx, dword [esp + 0xc]
xor eax, eax
xor edx, edx
mov al, byte [ecx + 0x10]
mov dx, word [esi + 6]
imul eax, edx
add eax, dword [ecx + 8]
jmp 0x4970f5
xor eax, eax
movsx ecx, word [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], 1
fild dword [esp + 0x10]
fmul dword [0x6d0350]
fstp dword [esp + 0x24]
movsx edx, word [eax + 2]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [0x6d0350]
fstp dword [esp + 0x28]
movsx ecx, word [eax + 4]
mov dword [esp + 0x10], ecx
push ecx
fild dword [esp + 0x14]
fmul dword [0x6d0350]
fstp dword [esp + 0x30]
movsx edx, byte [eax + 6]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], 0
fild dword [esp + 0x14]
fmul dword [0x6d587c]
fld st(0)
fsin
fstp dword [esp + 0x1c]
fcos
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x4971b5
fdivr dword [0x6d0348]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
jmp 0x4971b7
fstp st(0)
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x1c]
mov al, byte [edi + 0x14]
test al, al
jns 0x497243
mov ecx, dword [0x72d944]
lea edx, [esp + 0x24]
lea ebx, [edi + 0x50]
push 1
mov ecx, dword [ecx + 0x58]
push edx
lea eax, [edi + 0x40]
push ebx
push eax
call fcn.00465a30
cmp dword [edi + 0x64], 3
je 0x49721e
mov ecx, dword [ebx]
test ecx, ecx
je 0x49721e
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp eax, 0x13
je 0x49721e
mov ebx, dword [esi + 4]
add edi, 0x68
add ebx, 0x10
push edi
lea ecx, [ebx + 0x30]
call fcn.00420920
mov edx, dword [ebx + 0xc]
and edx, 0xfffdffff
mov dword [ebx + 0xc], edx
mov eax, dword [esi + 4]
push eax
jmp 0x497266
mov edi, dword [esi + 4]
lea ecx, [esp + 0x24]
add edi, 0x10
push ecx
lea ecx, [edi + 0x30]
call fcn.00420920
mov edx, dword [edi + 0xc]
and edx, 0xfffdffff
mov dword [edi + 0xc], edx
mov edx, dword [esi + 4]
push edx
jmp 0x497266
mov edi, dword [esi + 4]
lea eax, [esp + 0x24]
add edi, 0x10
push eax
lea ecx, [edi + 0x30]
call fcn.00420920
mov ebx, dword [edi + 0xc]
and ebx, 0xfffdffff
mov dword [edi + 0xc], ebx
mov ecx, dword [esi + 4]
push ecx
call fcn.00404040
add esp, 4
fld dword [0x72c60c]
fmul dword [esp + 0x20]
fld dword [0x72c610]
fmul dword [esp + 0x1c]
lea edx, [esp + 0x18]
mov byte [esp + 0x44], 2
fsubp st(1)
push edx
fstp dword [esp + 0x34]
fld dword [0x72c610]
fmul dword [esp + 0x1c]
fld dword [0x72c608]
fmul dword [esp + 0x24]
fsubp st(1)
fstp dword [esp + 0x38]
fld dword [0x72c608]
fmul dword [esp + 0x20]
fld dword [0x72c60c]
fmul dword [esp + 0x1c]
fsubp st(1)
fstp dword [esp + 0x3c]
mov ecx, dword [esi + 4]
add ecx, 0x10
call fcn.0048e690
mov eax, dword [esi + 4]
push eax
call fcn.00404040
mov eax, dword [esi + 4]
mov ecx, dword [0x72c608]
add eax, 0x10
mov dword [eax + 0x10], ecx
mov edx, dword [0x72c60c]
mov dword [eax + 0x14], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [0x72c610]
and edx, 0xfffdfffc
mov dword [eax + 0x18], ecx
mov dword [eax + 0xc], edx
mov edx, dword [esi + 4]
push edx
call fcn.00404040
mov ecx, dword [esi + 4]
add esp, 8
lea eax, [esp + 0x30]
add ecx, 0x10
push eax
call fcn.00471000
mov ecx, dword [esi + 4]
push ecx
call fcn.00404040
mov ecx, dword [esp + 0x40]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret