Function at 0x474950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x516682
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.0050b234
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe0], 0
call fcn.0050b234
mov edi, dword [ebp + 8]
mov byte [esp + 0xe0], 1
mov esi, 0x28
call fcn.00473ea0
mov eax, dword [eax + esi]
cmp eax, 4
ja case.default.0x4749b4
jmp dword [eax*4 + 0x475028]
push ebx
lea ecx, [esp + 0x1c]
call fcn.0050b6d8
jmp 0x474a26
lea eax, [ebx + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.0050b6d8
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
je 0x474a26
push 0x546fec
lea ecx, [esp + 0x1c]
call fcn.0050b6c6
push edi
lea ecx, [esp + 0x1c]
call fcn.0050b6d8
jmp 0x474a26
lea edx, [esp + 0xc]
mov ecx, ebx
push edx
call fcn.00474560
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 2
call fcn.0050b6d8
lea ecx, [esp + 0xc]
mov byte [esp + 0xe0], 1
call fcn.0050b22e
push 0x5446b0
lea ecx, [esp + 0x1c]
call fcn.0050b6c6
jmp case.default.0x4749b4
lea ecx, [esp + 0x20]
call fcn.0050b234
mov ecx, ebx
mov byte [esp + 0xe0], 3
call fcn.00474530
push eax
mov eax, dword [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push str._s_d
push ecx
call fcn.0050b258
add esp, 0x10
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
call fcn.0050b6d8
lea ecx, [esp + 0x20]
mov byte [esp + 0xe0], 1
call fcn.0050b22e
jmp case.default.0x4749b4
lea eax, [ebx + 0x38]
lea ecx, [esp + 0x18]
push eax
call fcn.0050b6d8
add esi, 4
cmp esi, 0x34
jl 0x4749a3
mov esi, 0x34
call fcn.00473ea0
mov eax, dword [eax + esi]
cmp eax, 4
ja case.default.0x474ab5
jmp dword [eax*4 + 0x47503c]
push ebx
lea ecx, [esp + 0x20]
call fcn.0050b6d8
jmp 0x474b27
lea ecx, [ebx + 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.0050b6d8
mov edx, dword [edi]
mov eax, dword [edx - 8]
test eax, eax
je 0x474b27
push 0x546fec
lea ecx, [esp + 0x20]
call fcn.0050b6c6
push edi
lea ecx, [esp + 0x20]
call fcn.0050b6d8
jmp 0x474b27
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
call fcn.00474560
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 4
call fcn.0050b6d8
lea ecx, [esp + 0xc]
mov byte [esp + 0xe0], 1
call fcn.0050b22e
push 0x5446b0
lea ecx, [esp + 0x20]
call fcn.0050b6c6
jmp case.default.0x474ab5
lea ecx, [esp + 0x20]
call fcn.0050b234
mov ecx, ebx
mov byte [esp + 0xe0], 5
call fcn.00474530
mov ecx, dword [ebx + 4]
push eax
push ecx
lea edx, [esp + 0x28]
push str._s_d
push edx
call fcn.0050b258
add esp, 0x10
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
call fcn.0050b6d8
lea ecx, [esp + 0x20]
mov byte [esp + 0xe0], 1
call fcn.0050b22e
jmp case.default.0x474ab5
lea ecx, [ebx + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.0050b6d8
add esi, 4
cmp esi, 0x40
jl 0x474aa4
push 0
push 0
push 0x3fe00000
push 0
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0050b33c
lea ecx, [ebx + 0x110]
call fcn.00476d30
push 0
push 0
push 0x3fe00000
push 0
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0050b33c
lea ecx, [ebx + 0x150]
mov dword [esp + 0x34], ecx
call fcn.00476d30
lea ecx, [esp + 0x60]
call fcn.0047a350
lea ecx, [esp + 0x48]
call fcn.0047a350
lea ecx, [esp + 0x48]
lea edx, [esp + 0x60]
push ecx
push edx
mov ecx, ebx
call fcn.004741f0
fld qword [esp + 0x48]
fsub qword [esp + 0x60]
fld qword [esp + 0x50]
fsub qword [esp + 0x68]
fstp qword [esp + 0x80]
fld qword [esp + 0x58]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
fsub qword [esp + 0x70]
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x98], eax
push ecx
lea ecx, [esp + 0xac]
fstp qword [esp + 0x8c]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
fstp qword [esp + 0x94]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], eax
call fcn.004789b0
fld qword [ebx + 0x130]
fld qword [ebx + 0x170]
fcompp
fnstsw ax
test ah, 1
je 0x474cab
fld qword [ebx + 0x130]
jmp 0x474cb1
fld qword [ebx + 0x170]
fstp qword [esp + 0x2c]
lea ecx, [esp + 0x90]
call fcn.00479f00
fstp qword [esp + 0x3c]
call fcn.00473ea0
fld qword [esp + 0x3c]
fmul qword [eax + 0x20]
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x3ff00000
fstp qword [esp + 0x24]
fld qword [esp + 0x34]
fabs
fcomp qword [0x5283e0]
fnstsw ax
test ah, 0x41
jne 0x474d83
mov ecx, dword [esp + 0x38]
lea esi, [esp + 0xa8]
push ecx
push edx
sub esp, 0x18
mov ecx, 6
mov edi, esp
lea eax, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00478a30
fld qword [esp + 0x48]
fmul qword [0x520168]
mov esi, eax
add esp, 0x24
mov ecx, 6
lea edi, [esp + 0xa8]
fcomp qword [0x523268]
rep movsd dword es:[edi], dword [esi]
fnstsw ax
test ah, 0x41
jne 0x474d66
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x40000000
fld qword [esp + 0x24]
fmul qword [0x5283e8]
fcomp qword [0x520868]
fnstsw ax
test ah, 1
je 0x474e29
jmp 0x474db2
fld qword [esp + 0x2c]
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x474dca
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x474db2
fld qword [esp + 0x3c]
fdiv qword [esp + 0x2c]
fld qword [0x520168]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x474dc4
fstp st(0)
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x3fe00000
jmp 0x474e29
fstp qword [esp + 0xc]
jmp 0x474e29
fld qword [esp + 0x2c]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x474e19
fld qword [esp + 0x24]
fdiv qword [esp + 0x2c]
fadd st(0), st(0)
call fcn.0050c116
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x520168]
fst qword [esp + 0xc]
fcomp qword [0x523268]
fnstsw ax
test ah, 1
jne 0x474e29
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x40080000
jmp 0x474e29
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x3ff00000
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push esi
push edi
lea ecx, [ebx + 0x110]
call fcn.004770f0
mov ecx, dword [esp + 0x20]
push esi
push edi
call fcn.004770f0
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0xc0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x110]
call fcn.00477030
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0xc0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x38]
call fcn.00477030
fld qword [esp + 0x60]
fadd qword [esp + 0x48]
push 0x40568000
push 0
sub esp, 0x18
mov ecx, 6
fmul qword [0x520168]
lea esi, [esp + 0xc8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
fstp qword [esp + 0x4c]
fld qword [esp + 0x88]
fadd qword [esp + 0x70]
fmul qword [0x520168]
lea ecx, [esp + 0xe0]
push ecx
fstp qword [esp + 0x30]
call fcn.00478a30
fld qword [ebx + 0x138]
fld qword [esp + 0xe4]
mov eax, dword [ebx + 0x13c]
mov ecx, dword [esp + 0xec]
mov edx, dword [ebx + 0x138]
add esp, 0x24
fmul st(1)
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x48]
lea ecx, [esp + 0x60]
fadd qword [esp + 0x2c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xcc]
push eax
lea esi, [ebx + 0x110]
push ecx
mov ecx, esi
fstp qword [esp + 0x44]
mov dword [esp + 0x30], edx
fstp st(0)
call fcn.00476fa0
fld qword [esp + 0x24]
fmul qword [esp + 0x34]
sub esp, 8
fadd qword [esp + 0x14]
fld qword [esp + 0x70]
fadd qword [esp + 0x58]
fmul qword [0x520168]
fsubp st(1)
fstp qword [esp]
fld qword [esp + 0x68]
fadd qword [esp + 0x50]
fmul qword [0x520168]
fsubr qword [esp + 0x44]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00476ff0
fld qword [ebx + 0x138]
fmul qword [esp + 0xc0]
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x48]
lea eax, [esp + 0x60]
push edx
fsubr qword [esp + 0x30]
push eax
mov ecx, esi
fstp qword [esp + 0x44]
fld qword [ebx + 0x138]
fld qword [esp + 0xd0]
fmul st(1)
fsubr qword [esp + 0x14]
fstp qword [esp + 0x2c]
fstp st(0)
call fcn.00476fa0
fld qword [esp + 0x68]
fadd qword [esp + 0x50]
sub esp, 8
mov ecx, esi
sub esp, 8
fmul qword [0x520168]
fsubr qword [esp + 0x34]
fstp qword [esp + 8]
fld qword [esp + 0x70]
fadd qword [esp + 0x58]
fmul qword [0x520168]
fsubr qword [esp + 0x4c]
fstp qword [esp]
call fcn.00476ff0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe0], 0
call fcn.0050b22e
lea ecx, [esp + 0x18]
mov dword [esp + 0xe0], 0xffffffff
call fcn.0050b22e
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8