Function at 0x56f4b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8fbb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x6c21e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], ecx
mov edi, dword [ebx + 8]
mov dword [ebp - 0x98], edi
mov esi, dword [edi + 8]
mov edi, dword [edi + 4]
mov ecx, edi
push dword [esi + 0x30]
call fcn.004f5a60
push dword [esi + 0x44]
mov ecx, edi
mov dword [ebp - 0x90], eax
call fcn.004f5a60
mov esi, dword [ebp - 0x98]
mov ecx, edi
mov dword [ebp - 0x8c], eax
mov edx, dword [esi + 0xc]
push dword [edx + 0xc]
call fcn.004f5a60
mov edi, dword [0x5cd800]
push 0
push 0
push 0x1004
push dword [ebp - 0x90]
mov dword [ebp - 0xa0], eax
call edi
mov dword [ebp - 0x94], eax
test eax, eax
je 0x56f9ee
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.00516ef0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
call fcn.00516ef0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x3c], xmm0
call fcn.00516ef0
push 1
push 0
push 0
push 0x24
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.005164d0
mov ecx, eax
call fcn.005167d0
call fcn.005133c0
movsd xmm1, qword [0x6a40a0]
lea ecx, [ebp - 0x3c]
comisd xmm1, xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
jbe 0x56f5fe
push 0x666318
jmp 0x56f603
push 0x665b18
call fcn.00515270
push 0
push 0
push 0x1004
push dword [ebp - 0x8c]
call edi
mov edi, eax
mov dword [esi + 0x18], edi
test edi, edi
jne 0x56f62d
mov dword [esi + 0x24], eax
mov dword [esi + 0x1c], eax
jmp 0x56f6c5
xor ecx, ecx
mov eax, edi
mov edx, 0xc
mul edx
push 0x6c2ae0
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0041ec19
add esp, 8
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x56f687
push fcn.00516d50
push fcn.00516ef0
push edi
mov dword [eax], edi
add eax, 4
push 0xc
push eax
mov dword [ebp - 0x18], eax
call fcn.0041ec45
mov eax, dword [ebp - 0x18]
jmp 0x56f689
xor eax, eax
mov byte [ebp - 4], 2
xor ecx, ecx
mov dword [esi + 0x24], eax
mov edx, 4
mov eax, dword [esi + 0x18]
mul edx
push 0x6c2ae0
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ec19
add esp, 8
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x24], 0
je 0x56f6be
test eax, eax
jne 0x56f6c5
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x56f7e2
xor edi, edi
test eax, eax
jle 0x56f7e2
xor ecx, ecx
mov dword [ebp - 0x18], ecx
nop
add ecx, dword [esi + 0x24]
push 0
push 0
push 0x400
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0x400
call fcn.005162e0
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x88]
push eax
push edi
push 0x1073
push dword [ebp - 0x8c]
call dword [0x5cd800]
mov ecx, dword [ebp - 0x18]
add ecx, dword [esi + 0x24]
call fcn.00516cc0
test eax, eax
je 0x56f7cf
mov ecx, dword [ebp - 0x18]
add ecx, dword [esi + 0x24]
push 0
call fcn.00516530
mov ecx, dword [ebp - 0x18]
add ecx, dword [esi + 0x24]
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x5ed514
call fcn.00515510
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x56f7cf
mov ecx, dword [esi + 0x24]
add ecx, dword [ebp - 0x18]
push 0
push eax
call fcn.00516ab0
push eax
lea ecx, [ebp - 0x30]
call fcn.005148d0
push 0x5ed664
lea ecx, [ebp - 0x30]
call fcn.00516de0
test al, al
je 0x56f791
mov eax, dword [esi + 0x1c]
mov dword [eax + edi*4], 2
jmp 0x56f7b5
push 0x605098
lea ecx, [ebp - 0x30]
call fcn.00516de0
test al, al
mov eax, dword [esi + 0x1c]
je 0x56f7ae
mov dword [eax + edi*4], 1
jmp 0x56f7b5
mov dword [eax + edi*4], 0
mov eax, dword [esi + 0x1c]
cmp dword [eax + edi*4], 0
je 0x56f7cf
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x9c]
add ecx, dword [esi + 0x24]
call fcn.005158b0
mov ecx, dword [ebp - 0x18]
inc edi
add ecx, 0xc
mov dword [ebp - 0x18], ecx
cmp edi, dword [esi + 0x18]
jl 0x56f6e0
push 0
push 0x20019
push 0x626ef0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00511740
xorps xmm0, xmm0
lea ecx, [ebp - 0x4c]
movups xmmword [ebp - 0x4c], xmm0
call fcn.005117d0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 5
push eax
push 0x6662f8
lea ecx, [ebp - 0x18]
call fcn.00511580
cmp dword [ebp - 0x44], 7
jne 0x56f856
cmp dword [ebp - 0x48], 7
jbe 0x56f856
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x5f3998
push dword [ebp - 0x4c]
lea ecx, [esi + 0x28]
push 0x5f3998
call fcn.00516b20
jmp 0x56f865
push 1
push 0x66632c
lea ecx, [esi + 0x28]
call fcn.00516b80
mov eax, dword [ebp - 0xa0]
xor edi, edi
mov dword [esi + 0x20], eax
mov byte [esi + 0x11], 0
cmp dword [ebp - 0x94], edi
jle 0x56f978
cmp byte [esi + 0x11], 0
jne 0x56f978
push 0
push 0
push 0x400
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0x400
call fcn.005162e0
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x88]
push eax
push edi
push 0x1073
push dword [ebp - 0x90]
call dword [0x5cd800]
lea ecx, [ebp - 0x24]
call fcn.00516cc0
test eax, eax
je 0x56f96b
push 0
lea ecx, [ebp - 0x24]
call fcn.00516530
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x5ed514
lea ecx, [ebp - 0x24]
call fcn.00515510
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x56f96b
push 0
push 1
push 1
push 0
lea ecx, [ebp - 0x3c]
call fcn.00516ab0
push eax
lea ecx, [ebp - 0x24]
call fcn.00515510
test eax, eax
jne 0x56f96b
push eax
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x24]
call fcn.00516ab0
push eax
lea ecx, [ebp - 0x30]
call fcn.005148d0
push 0x5ed664
lea ecx, [ebp - 0x30]
call fcn.00516de0
mov byte [esi + 0x10], al
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x8c]
dec eax
push eax
call fcn.005158b0
push esi
lea ecx, [ebp - 0x24]
call fcn.00516ab0
mov ecx, dword [ebp - 0xa4]
push eax
call fcn.0056f150
add dword [esi + 0x14], eax
inc edi
cmp edi, dword [ebp - 0x94]
jl 0x56f880
mov eax, dword [esi + 0x24]
test eax, eax
je 0x56f9b1
push fcn.00516d50
lea esi, [eax - 4]
mov byte [ebp - 4], 6
push dword [esi]
push 0xc
push eax
call fcn.0041eb04
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e87b
mov esi, dword [ebp - 0x98]
add esp, 8
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x56f9c1
push eax
call fcn.0041e876
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.005117c0
lea ecx, [ebp - 0x18]
call fcn.005116a0
lea ecx, [ebp - 0x3c]
call fcn.00516d50
lea ecx, [ebp - 0x24]
call fcn.00516d50
lea ecx, [ebp - 0x30]
call fcn.00516d50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e865
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4