Function at 0x536b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d8e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov ecx, dword [ecx + 0x24]
movsx eax, word [ebx + 0xe]
push esi
push edi
lea edx, [eax + eax*4]
lea edx, [edx + edx*8]
lea eax, [eax + edx*2]
lea edx, [ecx + eax*8]
lea ecx, [esp + 0x50]
mov dword [esp + 0xc], edx
call fcn.004b6ca0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
mov dword [esp + 0x1c], ecx
mov cx, word [ebx + 0xe]
mov dword [esp + 0x18], eax
mov ax, word [ebx + 0xc]
mov dword [esp + 0x20], edx
mov dx, word [ebx + 0x10]
mov word [esp + 0x26], cx
mov cx, word [ebx + 0x14]
mov word [esp + 0x24], ax
mov ax, word [ebx + 0x12]
mov word [esp + 0x28], dx
mov dx, word [ebx + 0x16]
mov word [esp + 0x2c], cx
lea esi, [ebx + 0x18]
mov ecx, 8
lea edi, [esp + 0x30]
mov word [esp + 0x2a], ax
mov word [esp + 0x2e], dx
lea eax, [ebx + 0x38]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x84], 0
call fcn.004b6d90
mov eax, dword [ebx + 0x58]
mov cx, word [esp + 0x2a]
cmp word [ebx + 0x16], 0
mov dword [esp + 0x70], eax
mov eax, 1
mov word [esp + 0x24], 0
mov word [esp + 0x28], ax
mov word [esp + 0x2c], cx
je 0x536c65
mov ecx, dword [esp + 0xc]
mov word [esp + 0x2e], ax
xor eax, eax
cmp word [ecx + 8], ax
jle 0x536c69
lea edi, [esp + 0x30]
lea esi, [ebx + 0x18]
xor edx, edx
cmp word [esi], dx
setne dl
mov word [edi], dx
inc eax
movsx edx, word [ecx + 8]
add esi, 2
add edi, 2
cmp eax, edx
jl 0x536c49
jmp 0x536c69
mov ecx, dword [esp + 0xc]
cmp word [ebx + 0x10], 0
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
jle 0x536d0d
fild dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
push eax
fmul qword [ecx + 0x298]
fadd qword [ebx + 0x40]
fst qword [esp + 0x5c]
fadd qword [ecx + 0x298]
mov eax, dword [esp + 0x60]
fstp qword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00536ad0
fstp qword [esp + 0x50]
lea ecx, [ebx + 0x38]
call fcn.004b7040
mov edi, dword [esi + 8]
push 0xffffffffffffffff
fadd qword [esp + 0x54]
lea edx, [edi + 1]
mov ecx, esi
push edx
fstp qword [esp + 0x68]
call fcn.005442f0
lea eax, [esp + 0x18]
lea ecx, [edi + edi*2]
push eax
mov eax, dword [esi + 4]
shl ecx, 5
add ecx, eax
call fcn.00530160
mov eax, dword [esp + 0x10]
movsx ecx, word [ebx + 0x10]
inc eax
cmp eax, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
jl 0x536c7f
movsx eax, word [ebx + 0x14]
movsx edi, word [ebx + 0x12]
cdq
idiv edi
test edx, edx
jne 0x536d33
mov ax, word [ebx + 0x16]
cmp ax, word [ebx + 0x10]
jge 0x536e10
test ax, ax
je 0x536e10
mov ax, word [ebx + 0x16]
cmp ax, word [ebx + 0x10]
jge 0x536d5a
test ax, ax
je 0x536d5a
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x30]
mov word [esp + 0x2e], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov ax, dx
movsx edx, ax
dec edx
mov word [esp + 0x2c], ax
mov dword [esp + 0x14], edx
mov word [esp + 0x2a], ax
fild dword [esp + 0x14]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x18]
fmul qword [ecx + 0x2b8]
lea eax, [eax + eax*2]
shl eax, 5
fadd qword [ecx + 0x290]
mov ecx, dword [esi + 4]
fadd qword [esp + 0x50]
lea esi, [eax + ecx - 0x60]
fstp qword [esp + 0x60]
mov dword [esi], edx
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], ecx
mov dx, word [esp + 0x24]
mov word [esi + 0xc], dx
mov ax, word [esp + 0x26]
mov word [esi + 0xe], ax
mov cx, word [esp + 0x28]
mov word [esi + 0x10], cx
mov dx, word [esp + 0x2a]
mov word [esi + 0x12], dx
mov ax, word [esp + 0x2c]
mov word [esi + 0x14], ax
mov cx, word [esp + 0x2e]
mov word [esi + 0x16], cx
lea eax, [esp + 0x30]
lea ecx, [esi + 0x18]
mov edx, 0x10
mov di, word [eax]
add eax, 2
mov word [ecx], di
add ecx, 2
dec edx
jne 0x536ded
lea edx, [esp + 0x50]
lea ecx, [esi + 0x38]
push edx
call fcn.004b6d90
mov eax, dword [esp + 0x70]
mov dword [esi + 0x58], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x80], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc