Function at 0x56d550
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b359b
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 4]
push edi
lea edi, [edx + ecx]
cmp edi, eax
jbe 0x56d584
sub eax, edx
mov ecx, eax
test ecx, ecx
jle 0x56d82a
push ebx
mov dword [esp + 0xc], ecx
push ebp
call fcn.00590a11
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx + 8]
test edx, edx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul dword [0x5d8640]
fsub dword [0x5b7bac]
fild dword [ecx + 8]
jge 0x56d5be
fadd dword [0x5b6344]
fmulp st(1)
fadd dword [esi + 0x20]
call fcn.00591008
mov ebp, eax
call fcn.00590a11
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0xc]
test ecx, ecx
fmul dword [0x5d8640]
fsub dword [0x5b7bac]
fild dword [eax + 0xc]
jge 0x56d5f6
fadd dword [0x5b6344]
fmulp st(1)
fadd dword [esi + 0x24]
call fcn.00591008
mov edi, dword [esi + 0x30]
mov ebx, eax
mov dword [esp + 0x14], ebx
call fcn.00590a11
mov edx, dword [esi + 0x30]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fmul dword [0x5d8640]
fsub dword [0x5b7bac]
fmul dword [edi + 0xe4]
mov edi, dword [edi + 0x1c]
sub edi, 0
fadd dword [0x5b7bb8]
fmul dword [edx + 0x14]
fstp dword [esp + 0x2c]
je 0x56d747
dec edi
je 0x56d6d9
dec edi
jne 0x56d81e
push 0x80
call fcn.0058f5cc
add esp, 4
mov dword [esp + 0x18], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x24], ebx
je 0x56d676
mov ecx, eax
call fcn.0056d390
mov ebx, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x34]
push esi
push ecx
lea edi, [ebx + 0x34]
push edx
push ebp
mov ecx, edi
mov dword [esp + 0x34], 0xffffffff
call dword [eax + 0x18]
test eax, eax
je 0x56d6cc
mov ebx, dword [esi + 8]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x2c], edi
lea edi, [esi + 4]
lea eax, [esp + 0x2c]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.0056b530
push 1
mov ecx, edi
mov ebp, eax
call fcn.0056d430
mov dword [ebx + 4], ebp
mov edx, dword [ebp + 4]
mov dword [edx], ebp
jmp 0x56d81e
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
jmp 0x56d81e
push 0x6c
call fcn.0058f5cc
add esp, 4
test eax, eax
je 0x56d6f2
mov ecx, eax
call fcn.0056af80
mov edi, eax
jmp 0x56d6f4
xor edi, edi
mov eax, dword [esp + 0x2c]
mov edx, dword [edi]
push esi
push eax
push ebx
push ebp
mov ecx, edi
call dword [edx + 0x18]
test eax, eax
je 0x56d73a
mov ebx, dword [esi + 8]
mov edx, dword [ebx + 4]
mov dword [esp + 0x2c], edi
lea edi, [esi + 4]
lea ecx, [esp + 0x2c]
push ecx
push edx
push ebx
mov ecx, edi
call fcn.0056b530
push 1
mov ecx, edi
mov ebp, eax
call fcn.0056d430
mov dword [ebx + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
jmp 0x56d81e
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
jmp 0x56d81e
mov ecx, dword [0xafb330]
mov edx, dword [ecx + 8]
test edx, edx
lea eax, [ecx + 8]
jle 0x56d764
mov ecx, dword [ecx + 0x18]
dec edx
mov dword [eax], edx
mov eax, edx
mov edi, dword [ecx + eax*4]
jmp 0x56d79c
mov eax, dword [ecx + 0x10]
test eax, eax
lea edi, [ecx + 0x10]
jne 0x56d772
xor edi, edi
jmp 0x56d79c
mov edx, dword [eax + 0x10]
test edx, edx
jg 0x56d78c
mov edx, dword [ecx + 4]
push edx
call fcn.00566550
test eax, eax
jne 0x56d78a
xor edi, edi
jmp 0x56d79c
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
mov edi, dword [eax + 8]
dec ecx
mov dword [eax + 0x10], ecx
lea ecx, [edi + 0x4c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [edi]
push esi
push eax
push ebx
push ebp
mov ecx, edi
call dword [edx + 0x18]
test eax, eax
je 0x56d7df
mov ebx, dword [esi + 8]
mov edx, dword [ebx + 4]
mov dword [esp + 0x2c], edi
lea edi, [esi + 4]
lea ecx, [esp + 0x2c]
push ecx
push edx
push ebx
mov ecx, edi
call fcn.0056b530
push 1
mov ecx, edi
mov ebp, eax
call fcn.0056d430
mov dword [ebx + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
jmp 0x56d81e
mov ebx, dword [0xafb330]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
cmp edx, ecx
lea eax, [ebx + 0xc]
lea ebp, [ebx + 8]
jl 0x56d812
add ecx, ecx
mov edx, ecx
shl edx, 2
mov dword [eax], ecx
mov eax, dword [ebx + 0x18]
push edx
push eax
call fcn.00594f8b
add esp, 8
test eax, eax
mov dword [ebx + 0x18], eax
je 0x56d81e
mov ecx, dword [ebp]
mov edx, dword [ebx + 0x18]
mov dword [edx + ecx*4], edi
inc dword [ebp]
dec dword [esp + 0x10]
jne 0x56d592
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4