Function at 0x497b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x500a3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x28], ebp
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x58]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [ebp + 0x38]
fstp qword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x58]
mov edx, dword [ecx]
call dword [edx + 0x1c]
fld qword [0x508268]
fsub st(1)
mov eax, dword [ebp + 0x40]
push 0x40
fmul qword [0x508260]
fcos
fmul qword [esp + 0x20]
fstp qword [esp + 0x88]
fld qword [eax + 0x10]
fmul qword [0x508260]
fld qword [eax + 8]
fmul qword [0x508260]
mov eax, dword [ebp + 0x18]
fstp qword [esp + 0x70]
fld qword [0x508628]
fsub qword [esp + 0x70]
fsub st(1)
fstp qword [esp + 0x90]
fstp st(0)
fld qword [eax + 8]
fsub qword [esp + 0x88]
fstp qword [esp + 0x48]
fmul qword [0x508260]
fcos
fmul qword [esp + 0x20]
fadd st(0), st(0)
fsubr qword [esp + 0x20]
fabs
fstp qword [esp + 0x20]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x100], ebx
je 0x497ca6
push ebx
push ebx
push 0x46293e59
lea edi, [esi + 0x10]
push 0x39a08cea
push 0x46293e59
push 0x39a08cea
mov ecx, edi
call fcn.004d5c00
push ebx
push ebx
push 0xc6293e59
push 0x39a08cea
push 0xc6293e59
push 0x39a08cea
lea ecx, [edi + 0x18]
call fcn.004d5c00
mov dword [esi], 0x5085fc
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
jmp 0x497ca8
xor esi, esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0xb0]
mov dword [esp + 0x118], 0xffffffff
mov dword [esp + 0x28], esi
call fcn.004d5c00
mov edx, dword [esp + 0x6c]
mov ecx, 6
mov esi, eax
mov eax, dword [esp + 0x48]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00494740
add esp, 0x18
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x54]
call fcn.004d5f60
mov edx, dword [ebp + 0x38]
mov ecx, 6
lea esi, [esp + 0x50]
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
lea esi, [esp + 0x50]
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x58]
mov edx, dword [ecx]
call dword [edx + 0x20]
fmul qword [0x508288]
fst qword [esp + 0x14]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x497d5f
fld qword [esp + 0x44]
fmul qword [0x5087a0]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x98]
push eax
push ebx
push ebx
sub esp, 8
fchs
fstp qword [esp]
push ebx
push ebx
call fcn.004d5c00
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.00496230
mov edx, dword [ebp + 0x14]
add esp, 0xc
mov ebx, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
mov ecx, ebx
call fcn.00445eb0
fld qword [esp + 0x8c]
fsin
push 0
push 0
sub esp, 8
lea ecx, [esp + 0x3c]
sub esp, 8
fmul qword [esp + 0x34]
fstp qword [esp + 8]
fld qword [esp + 0xa4]
fcos
fmul qword [esp + 0x34]
fstp qword [esp]
call fcn.004d6080
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x68]
call fcn.004d6080
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x80]
push edx
push eax
call fcn.00496230
add esp, 0xc
mov ecx, 6
lea esi, [esp + 0x2c]
lea edi, [esp + 0x50]
push 0
push 0
push 0xbff00000
push 0
rep movsd dword es:[edi], dword [esi]
push 0
push 0
lea ecx, [esp + 0x44]
mov ebp, eax
call fcn.004d6080
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x30]
call fcn.004d5f60
fld qword [esp + 0x14]
fmul qword [eax + 0x10]
sub esp, 8
sub esp, 8
fstp qword [esp + 8]
fld qword [esp + 0x24]
fmul qword [eax + 8]
fstp qword [esp]
fld qword [esp + 0x24]
fmul qword [eax]
sub esp, 8
lea ecx, [esp + 0xf8]
fstp qword [esp]
call fcn.004d5c00
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [esp + 0x30]
call fcn.004d5e30
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.00496230
mov ecx, 6
lea esi, [esp + 0x38]
lea edi, [esp + 0x5c]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea ecx, [esp + 0x2c]
push edi
push edi
push edi
push edi
push 0x3ff00000
push edi
mov dword [esp + 0x2c], eax
call fcn.004d6080
mov eax, dword [esp + 0x28]
sub esp, 8
lea ecx, [esp + 0x34]
fld qword [eax + 0x10]
fsub qword [esp + 0x24]
fstp qword [esp]
call fcn.004d5e90
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x30]
call fcn.004d5e30
lea edx, [esp + 0x2c]
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x84]
push eax
push ecx
call fcn.00496230
mov edx, dword [ebx]
add esp, 0xc
mov ecx, ebx
mov esi, eax
call dword [edx + 0xc]
push eax
lea eax, [esp + 0xb4]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.00496230
mov edx, dword [ebp]
add esp, 0xc
mov ecx, ebp
call dword [edx + 0x20]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
mov esi, dword [edx + 8]
lea ecx, [edx + 8]
cmp esi, edi
jne 0x497f68
mov dword [edx + 0xc], eax
mov dword [ecx], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
jmp 0x497f8a
mov esi, dword [edx + 0xc]
add edx, 0xc
mov esi, dword [esi + 8]
mov dword [eax + 8], esi
mov esi, dword [edx]
mov dword [eax + 0xc], esi
mov esi, dword [edx]
mov dword [esi + 8], eax
mov ecx, dword [ecx]
mov dword [edx], eax
cmp dword [ecx + 0xc], edi
je 0x497f8a
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
mov esi, dword [ecx + 8]
lea edx, [ecx + 8]
cmp esi, edi
jne 0x497fa9
mov dword [ecx + 0xc], eax
mov dword [edx], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
jmp 0x497fcb
mov esi, dword [ecx + 0xc]
add ecx, 0xc
mov esi, dword [esi + 8]
mov dword [eax + 8], esi
mov esi, dword [ecx]
mov dword [eax + 0xc], esi
mov esi, dword [ecx]
mov dword [esi + 8], eax
mov edx, dword [edx]
mov dword [ecx], eax
cmp dword [edx + 0xc], edi
je 0x497fcb
mov dword [edx + 0xc], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x80]
mov esi, dword [ecx + 8]
lea edx, [ecx + 8]
cmp esi, edi
jne 0x497fed
mov dword [ecx + 0xc], eax
mov dword [edx], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
jmp 0x49800f
mov esi, dword [ecx + 0xc]
add ecx, 0xc
mov esi, dword [esi + 8]
mov dword [eax + 8], esi
mov esi, dword [ecx]
mov dword [eax + 0xc], esi
mov esi, dword [ecx]
mov dword [esi + 8], eax
mov edx, dword [edx]
mov dword [ecx], eax
cmp dword [edx + 0xc], edi
je 0x49800f
mov dword [edx + 0xc], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
mov esi, dword [ecx + 8]
lea edx, [ecx + 8]
cmp esi, edi
jne 0x49802e
mov dword [ecx + 0xc], eax
mov dword [edx], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
jmp 0x498050
mov esi, dword [ecx + 0xc]
add ecx, 0xc
mov esi, dword [esi + 8]
mov dword [eax + 8], esi
mov esi, dword [ecx]
mov dword [eax + 0xc], esi
mov esi, dword [ecx]
mov dword [esi + 8], eax
mov edx, dword [edx]
mov dword [ecx], eax
cmp dword [edx + 0xc], edi
je 0x498050
mov dword [edx + 0xc], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x7c]
mov esi, dword [ecx + 8]
lea edx, [ecx + 8]
cmp esi, edi
jne 0x49806f
mov dword [ecx + 0xc], eax
mov dword [edx], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
jmp 0x498091
mov esi, dword [ecx + 0xc]
add ecx, 0xc
mov esi, dword [esi + 8]
mov dword [eax + 8], esi
mov esi, dword [ecx]
mov dword [eax + 0xc], esi
mov esi, dword [ecx]
mov dword [esi + 8], eax
mov edx, dword [edx]
mov dword [ecx], eax
cmp dword [edx + 0xc], edi
je 0x498091
mov dword [edx + 0xc], eax
mov ecx, dword [0x538f24]
mov edx, dword [0x538f20]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.0043f940
fld qword [esp + 0x90]
add esp, 0xc
lea ecx, [esp + 0x2c]
fchs
push edi
push edi
sub esp, 8
fstp qword [esp]
push edi
push edi
call fcn.004d6080
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00443e70
mov eax, dword [esp + 0x30]
add esp, 8
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + 0x58]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
call fcn.0043d060
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret