Function at 0x65905c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x65923c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1dc]
call fcn.0046437c
mov eax, dword [eax + 0x1c]
call fcn.00409514
mov dword [ebp - 0x10], eax
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [0x841344]
mov eax, dword [edx + eax*4 + 0x30]
mov edx, dword [0x8414e8]
mov dword [edx], eax
mov eax, dword [0x8415a0]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.0076eb8c
mov eax, dword [ebp - 4]
mov byte [eax + 0x21b], 1
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [0x841344]
mov ecx, dword [edx + eax*4 + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + eax*4 + 0xc]
mov dword [ebp - 0x1c], ecx
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [0x841344]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
mov eax, dword [0x84125c]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x21c]
call fcn.0055a94c
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [0x841344]
push dword [edx + eax*4 + 0xc]
push dword [edx + eax*4 + 8]
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [0x841344]
push dword [edx + eax*4 + 4]
push dword [edx + eax*4]
call fcn.0078dcd8
mov dword [ebp - 0x14], eax
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [0x841344]
push dword [edx + eax*4 + 0xc]
push dword [edx + eax*4 + 8]
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [0x841344]
push dword [edx + eax*4 + 4]
push dword [edx + eax*4]
call fcn.0078da74
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x6591a4
mov eax, dword [0x8420d0]
fild dword [eax]
mov eax, dword [0x8417ac]
fdiv qword [eax]
fild dword [ebp - 0x18]
fcompp
fnstsw ax
sahf
ja 0x6591a4
cmp dword [ebp - 0x14], 0
jl 0x6591a4
mov eax, dword [0x84211c]
fild dword [eax]
mov eax, dword [0x8417ac]
fdiv qword [eax]
fild dword [ebp - 0x14]
fcompp
fnstsw ax
sahf
jbe 0x6591c3
lea edx, [ebp - 0x2c]
mov eax, dword [0x841bcc]
call fcn.00405e74
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x6591e0
lea edx, [ebp - 0x2c]
mov eax, dword [0x840eb8]
call fcn.00405e74
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, 0x659250
mov eax, dword [ebp - 4]
call fcn.00659258
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [0x841344]
mov ecx, dword [edx + eax*4 + 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, 3
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00461ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x659243
lea eax, [ebp - 0x2c]
call fcn.00403e74
ret