Function at 0x45b580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x547287
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
cmp byte [ebp + 0x14], 0
fild dword [ebp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul qword [0x572c90]
fstp dword [esp + 0x14]
je 0x45b680
mov ecx, 0x33000000
lea eax, [esp + 0x30]
call fcn.00453820
mov esi, dword [ebp + 8]
push eax
call fcn.00478940
fild dword [ebp + 0xc]
sub esp, 0x10
mov eax, esi
fsub qword [0x5731c8]
fstp dword [esp + 0x28]
fld dword [esp + 0x24]
fst dword [esp + 0xc]
fld dword [esp + 0x28]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x5731c0]
fstp dword [esp]
call fcn.00479bb0
mov ecx, 0x66ffffff
lea eax, [esp + 0x30]
call fcn.00453820
push eax
call fcn.00478940
fld dword [esp + 0x14]
fadd qword [0x572c38]
sub esp, 0x10
mov eax, esi
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fst dword [esp + 0xc]
fld dword [esp + 0x28]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x5731c0]
fstp dword [esp]
call fcn.00479bb0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
push 0x1000600
lea eax, [esp + 0x20]
call fcn.00458a20
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x45b69e
lea eax, [esp + 0x1c]
call fcn.00476250
cmp byte [ebp + 0x1c], 0
je 0x45b6e9
push 0x1000900
lea eax, [esp + 0x34]
call fcn.00458a20
mov ebx, dword [ebp + 8]
push eax
mov esi, ebx
call fcn.00478940
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add eax, 0xfffffffe
push eax
add ecx, 0xfffffffe
push ecx
mov ecx, 1
push ebx
mov eax, ecx
call fcn.00478ee0
push 0x1000800
lea eax, [esp + 0x34]
call fcn.00458a20
push eax
jmp 0x45b6f3
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
mov esi, ebx
call fcn.00478940
cmp byte [ebp + 0x18], 0
jne 0x45b70f
fld dword [0x572d58]
push ecx
mov esi, ebx
fstp dword [esp]
call fcn.004789b0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x9c]
lea edx, [esp + 0x34]
push edx
call eax
mov dword [esp + 0x88], 0
mov ecx, dword [esp + 0x34]
fld dword [ecx + 0xc]
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
fdiv qword [0x573128]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x45b766
fstp dword [esp + 0x24]
push ecx
fld dword [esp + 0x28]
lea eax, [esp + 0x38]
fstp dword [esp]
call fcn.00485cd0
jmp 0x45b768
fstp st(0)
lea edx, [esp + 0x34]
push edx
mov esi, ebx
call fcn.00478af0
mov edi, dword [ebp + 0x10]
lea eax, [edi + edi*4]
cdq
and edx, 3
add eax, edx
mov esi, eax
mov eax, dword [ebp + 0x30]
sar esi, 2
mov dword [esp + 0x24], esi
test eax, eax
je 0x45b7b4
lea ecx, [edi - 2]
push ecx
lea edx, [esi - 4]
push edx
push 1
push 2
push eax
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0x124
call fcn.00479d10
jmp 0x45b87b
cmp byte [ebp + 0x20], 0
je 0x45b87b
mov ecx, dword [esp + 0x10]
fld1
mov eax, dword [ecx]
mov eax, dword [eax + 0x5c]
push ecx
lea edx, [esp + 0x5c]
fstp dword [esp]
push edx
call eax
lea eax, [esp + 0x34]
mov byte [esp + 0x88], 1
call fcn.00485e70
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
push 1
fld dword [esp + 0x20]
sub esp, 0x10
fld qword [0x572c90]
add esi, 0xfffffffc
fmul st(1)
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x50]
lea edx, [esp + 0x44]
fsubp st(2)
mov dword [esp + 0x44], 0x24
fxch st(1)
fstp dword [esp + 0x3c]
fstp dword [esp + 0xc]
fild dword [esp + 0x30]
fstp dword [esp + 8]
fld dword [esp + 0x3c]
fstp dword [esp + 4]
fld dword [0x572d48]
fstp dword [esp]
push ecx
lea ecx, [esp + 0x70]
call fcn.0048c330
push eax
lea edi, [esp + 0x5c]
mov esi, ebx
mov byte [esp + 0x8c], 2
call fcn.004790a0
call fcn.004d4880
or edx, 0xffffffff
lock xadd dword [eax], edx
mov eax, edi
push eax
mov byte [esp + 0x8c], 0
call fcn.00489d90
mov edi, dword [ebp + 0x10]
mov esi, dword [esp + 0x24]
fld dword [str.333_Software_Renderer]
mov eax, dword [ebp + 0xc]
push ecx
fstp dword [esp]
push 1
sub eax, esi
lea ecx, [esp + 0x38]
push ecx
push edi
mov edi, dword [ebp + 0x28]
mov dword [esp + 0x38], eax
add eax, 0xfffffffc
push eax
push 0
push esi
mov esi, ebx
mov dword [esp + 0x4c], 0x21
call fcn.00478db0
mov edi, dword [ebp + 0x2c]
mov edx, dword [edi]
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.004031b0
lea eax, [esp + 0x1c]
call fcn.00403100
test eax, eax
je 0x45b965
lea eax, [esp + 0x34]
lea esi, [esp + 0x1c]
call fcn.004859b0
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x1c]
fld dword [eax + 0xc]
push ecx
fstp dword [esp + 0x34]
mov eax, esi
fld dword [esp + 0x34]
fmul qword [0x572fe0]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.00485cd0
fld dword [0x5730f8]
push ecx
mov eax, esi
fstp dword [esp]
call fcn.00485de0
mov ecx, esi
push ecx
mov esi, ebx
call fcn.00478af0
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x28]
push 1
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x2c]
push eax
add ecx, 0xfffffff8
push ecx
push 0
push edx
mov dword [esp + 0x48], 0x22
call fcn.00478c70
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x8c], 0
call fcn.004859e0
cmp byte [ebp + 0x24], 0
je 0x45ba3e
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
lea eax, [esp + 0x28]
push eax
call edx
mov byte [esp + 0x88], 4
call fcn.00485e70
fmul qword [0x572df0]
lea eax, [esp + 0x28]
push eax
fstp dword [esp + 0x34]
call fcn.004859e0
fild dword [ebp + 0xc]
lea esi, [esp + 0x58]
fld dword [esp + 0x18]
fmul qword [0x572df0]
fsubp st(1)
fstp dword [esp + 0x28]
call fcn.00489d40
mov byte [esp + 0x88], 5
fld dword [esp + 0x30]
fld qword [0x572c90]
sub esp, 0x18
fmul st(1)
fld dword [esp + 0x2c]
fst dword [esp + 0x14]
fxch st(2)
fmul qword [0x572df0]
fld dword [esp + 0x40]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp + 0x10]
fld st(2)
fadd st(2)
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp + 0xc]
fst dword [esp + 8]
fxch st(2)
fsubrp st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fstp dword [esp + 4]
fstp dword [esp]
call fcn.0048ac60
mov edi, esi
push 0x59f59c
mov esi, ebx
call fcn.004790a0
mov ecx, edi
push ecx
call fcn.00489d90
lea edx, [esp + 0x34]
push edx
call fcn.004859e0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30