Function at 0x459910
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x549b24
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
push 0
push 0x1001800
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.00434820
mov esi, dword [ebp + 8]
mov ecx, eax
call fcn.00478ff0
mov eax, dword [ebx + 0x1c]
add eax, 0x14
cmp eax, 0x82
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
mov dword [esp + 0x18], eax
jl 0x45998b
mov dword [esp + 0x18], 0x82
mov ecx, ebx
call fcn.0046ed70
test al, al
jne 0x4599a2
mov eax, ebx
call fcn.0046e160
cmp eax, 2
jle 0x4599b7
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0xc]
add eax, 0x32
cmp eax, dword [esp + 0x18]
jge 0x4599ba
mov dword [esp + 0x18], eax
jmp 0x4599ba
mov edi, dword [ebp + 0x10]
mov eax, 0x99999999
imul dword [esp + 0x18]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x459c48
lea esi, [esp + 0x68]
call fcn.00489d40
mov dword [esp + 0x98], 0
mov eax, dword [ebx + 0xa8]
cmp eax, 2
jne 0x459ab8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
sub esp, 0x18
add edx, eax
mov ebx, 0x55ff5555
fstp dword [esp + 0x40]
mov byte [esp + 0x2f], 0x21
fild dword [esp + 0x4c]
fstp dword [esp + 0x38]
fild dword [esp + 0x50]
fstp dword [esp + 0x34]
fild dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x40]
mov dword [esp + 0x40], edx
fst dword [esp + 0x14]
fld dword [esp + 0x38]
fst dword [esp + 0x10]
fxch st(1)
fstp dword [esp + 0xc]
fild dword [esp + 0x40]
fstp dword [esp + 8]
fld dword [esp + 0x34]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fmul qword [0x572c90]
faddp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.0048ac60
fld dword [0x572d3c]
push ecx
fstp dword [esp]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
push ecx
call fcn.0048c730
push eax
mov eax, esi
call fcn.00489e50
lea edx, [esp + 0x44]
push edx
call fcn.00489d90
jmp 0x459b1c
fild dword [esp + 0x18]
mov ebx, eax
sub ebx, 3
neg ebx
fstp dword [esp + 0x18]
sbb ebx, ebx
fild dword [esp + 0x38]
and ebx, 0xe0614301
add ebx, 0x605555ff
cmp eax, 3
fstp dword [esp + 0x1c]
setne al
fild dword [esp + 0x34]
sub esp, 0x10
dec al
and al, 0x2a
fstp dword [esp + 0x30]
add al, 0x3f
fld dword [esp + 0x28]
lea esi, [esp + 0x78]
fst dword [esp + 0xc]
mov byte [esp + 0x27], al
fstp dword [esp + 8]
fld dword [esp + 0x2c]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fstp dword [esp]
call fcn.0048ad30
lea eax, [esp + 0x44]
call fcn.00486780
movsx eax, byte [esp + 0x17]
push eax
mov byte [esp + 0x9c], 1
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0x24
call fcn.0041af60
add esp, 4
mov edi, eax
fld dword [esp + 0x18]
mov byte [esp + 0x98], 2
fmul qword [0x572e20]
push 1
push ecx
lea esi, [esp + 0x3c]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp]
call fcn.004858f0
push ecx
mov byte [esp + 0x9c], 3
fld dword [str.333_Software_Renderer]
fstp dword [esp]
push 0
fld dword [esp + 0x20]
lea ecx, [esp + 0x34]
push ecx
sub esp, 0x10
fst dword [esp + 0xc]
lea edx, [esp + 0x60]
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x3c]
fstp dword [esp]
push edi
push eax
push edx
call fcn.00486ff0
mov eax, esi
push eax
call fcn.004859e0
lea ecx, [esp + 0x30]
mov byte [esp + 0x98], 1
call fcn.0041add0
lea ecx, [esp + 0x68]
push ecx
lea edi, [esp + 0x48]
call fcn.00487f80
xor cl, cl
lea eax, [esp + 0x68]
call fcn.00489fb0
mov ecx, ebx
lea eax, [esp + 0x30]
call fcn.00453820
mov esi, dword [ebp + 8]
push eax
call fcn.00478940
push 0x59f59c
lea edi, [esp + 0x6c]
call fcn.004790a0
lea ecx, [esp + 0x30]
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x50
mov dword [esp + 0x30], 1
call fcn.00476250
lea eax, [esp + 0x44]
call fcn.00486880
mov edx, edi
push edx
mov dword [esp + 0x9c], 0xffffffff
call fcn.00489d90
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0
push 0x1001810
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.00434820
mov esi, dword [ebp + 8]
push eax
call fcn.00478940
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 8]
or eax, 8
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
sub edx, eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [edi + 4]
push edx
mov edx, dword [edi]
add edx, eax
push ecx
mov eax, esi
mov esi, dword [ebp + 0x14]
push edx
push eax
mov eax, dword [edi + 0xc]
call fcn.00488810
push 0
push 0x1001820
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.00434820
mov esi, dword [ebp + 8]
push eax
call fcn.00478940
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
push edx
push eax
push 0
push esi
mov esi, 1
xor eax, eax
call fcn.00479160
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10