Function at 0x561e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x79fc38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea eax, [esi + 0xbe8]
lea ecx, [esp + 0xc]
push eax
call fcn.007605f0
mov ebx, dword [edi + 0x516d1c]
lea ecx, [esi + 0x30]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x64], 0
mov dword [esp + 0x38], ebx
call fcn.007608e9
mov edx, dword [esp + 0x28]
mov byte [esp + 0x60], 1
push edx
call fcn.00749c34
fmul qword [0x7cb8c0]
add esp, 4
lea eax, [esi + 0x418]
lea ecx, [esp + 0x24]
push eax
fstp qword [esp + 0x48]
call fcn.007608e9
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x60], 2
push ecx
call fcn.00749c34
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x14]
fmul qword [0x7cb8c0]
mov ecx, dword [eax - 8]
add esp, 4
test ecx, ecx
mov dword [esp + 0x30], edx
fstp qword [esp + 0x4c]
je 0x5620e9
push 0x829a3c
lea ecx, [esp + 0x10]
call fcn.0075cca2
mov esi, eax
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x14]
call fcn.0075cc08
mov edx, dword [esp + 0x10]
mov byte [esp + 0x60], 3
push edx
call fcn.00749c29
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
add esp, 4
lea ecx, [esp + 0x2c]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0075cb8c
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 4
call fcn.007609b4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 3
call fcn.0076087b
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x320db0]
cmp eax, ecx
jg 0x5620cc
test eax, eax
jl 0x5620cc
cmp dword [esp + 0x30], 1
je 0x56209b
mov eax, dword [edi + ebx*4 + 0xdc]
xor esi, esi
test eax, eax
jle 0x56208a
mov ecx, dword [edi + ebx*4 + 0xf0]
lea edx, [esi + esi*4]
lea eax, [esi + edx*2]
shl eax, 4
mov dword [esp + 0x18], eax
mov edx, dword [ecx + eax + 0x18]
mov eax, dword [esp + 0x1c]
cmp edx, eax
jne 0x56207a
push esi
push ebx
mov ecx, edi
mov dword [esp + 0x40], esi
call fcn.0055e9e0
cmp esi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
jg 0x56206c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
push ebx
push ecx
mov ecx, edi
call fcn.005b2930
test eax, eax
je 0x56204b
mov edx, dword [edi + ebx*4 + 0xf0]
mov eax, dword [esp + 0x18]
fld qword [esp + 0x44]
mov ecx, dword [edx + eax]
lea esi, [edx + eax]
fadd qword [0x7ca980]
mov edx, dword [esi + 4]
mov dword [esp + 0x3c], ecx
fimul dword [esp + 0x3c]
mov dword [esp + 0x40], edx
call fcn.007496f4
fld qword [esp + 0x4c]
fadd qword [0x7ca980]
fimul dword [esp + 0x40]
mov ebx, eax
call fcn.007496f4
mov dword [esi], ebx
mov ebx, dword [esp + 0x34]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
add edx, 0xb0
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jle 0x561fed
mov eax, ecx
mov esi, eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, edi
call fcn.005d80d0
mov eax, dword [edi + ebx*4 + 0xdc]
inc esi
cmp esi, eax
jl 0x561fa4
mov ecx, dword [esp + 0x1c]
mov dword [edi + ecx*4 + 0x515d58], 1
jmp 0x5620cc
mov ecx, dword [esp + 0x44]
lea edx, [eax + eax*4]
shl edx, 4
lea eax, [edx + edi]
mov edx, dword [esp + 0x48]
mov dword [eax + 0x31cf60], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x31cf64], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 0x31cf68], ecx
mov dword [eax + 0x31cf6c], edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 2
call fcn.0076087b
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x561f03
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 1
call fcn.0076087b
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 0
call fcn.0076087b
lea ecx, [esp + 0xc]
mov dword [esp + 0x60], 0xffffffff
call fcn.0076087b
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4