Function at 0x566ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x566ae9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x566f3a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x34]
xor edx, edx
call fcn.00406dec
mov eax, ebx
xor edx, edx
call fcn.00406dec
lea eax, [ebx + 4]
xor edx, edx
call fcn.00406dec
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x30], 0
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x44b08c]
call fcn.00438fb4
mov dword [ebp - 0x28], eax
call fcn.00416034
fstp qword [ebp - 0x30]
wait
xor ecx, ecx
push ebp
push 0x566f0b
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x24]
call fcn.004d5bb4
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0051a7f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x566ba6
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x566bb7
lea eax, [ebp - 0x1c]
mov edx, 0x566f58
call fcn.00406e40
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, 0x566f58
call fcn.0051a6b0
mov edi, eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x566f68
call fcn.0040782c
mov esi, eax
cmp edi, esi
jge 0x566bef
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.00407514
mov edx, dword [ebp - 0x1c]
mov eax, 0x566f78
call fcn.0040782c
mov esi, eax
test esi, esi
jle 0x566c16
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.00407514
mov dx, 0x3b
mov eax, dword [ebp - 0x28]
call fcn.00438734
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.00439030
mov dl, 1
mov eax, dword [ebp - 0x28]
call fcn.004387a0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
call fcn.004384f8
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x566c57
call fcn.00405a10
jmp 0x566f12
lea ecx, [ebp - 0x3c]
xor edx, edx
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x3c]
mov eax, 0x566f88
call fcn.0040782c
test eax, eax
jne 0x566c7f
call fcn.00405a10
jmp 0x566f12
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x566cbd
inc eax
mov dword [ebp - 0x34], eax
xor esi, esi
lea ecx, [ebp - 0x44]
mov edx, esi
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00412abc
mov ecx, dword [ebp - 0x40]
mov edx, esi
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
call dword [edi + 0x20]
inc esi
dec dword [ebp - 0x34]
jne 0x566c92
lea eax, [ebx + 0x34]
mov edx, dword [ebp - 0x20]
call fcn.00406dec
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x24]
call fcn.00406dec
mov byte [ebx + 0x31], 0
lea ecx, [ebp - 0x48]
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.004378cc
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00406dec
lea ecx, [ebp - 0x4c]
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.00438804
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 4]
call fcn.00406dec
lea ecx, [ebp - 0x54]
mov edx, 0x566f98
mov eax, dword [ebp - 0x28]
call fcn.00437b1c
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.004d5bb4
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x14]
call fcn.00406dec
lea ecx, [ebp - 0x5c]
mov edx, 0x566fb0
mov eax, dword [ebp - 0x28]
call fcn.00437b1c
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.004d5bb4
mov edx, dword [ebp - 0x58]
lea eax, [ebx + 0x10]
call fcn.00406dec
lea ecx, [ebp - 4]
mov edx, 0x566fcc
mov eax, dword [ebp - 0x28]
call fcn.00437b1c
cmp dword [ebp - 4], 0
je 0x566d74
mov eax, dword [ebp - 4]
call fcn.005664cc
fstp qword [ebx + 8]
wait
lea ecx, [ebp - 4]
mov edx, 0x566fe8
mov eax, dword [ebp - 0x28]
call fcn.00437b1c
cmp dword [ebp - 4], 0
je 0x566da7
mov eax, dword [ebp - 4]
call fcn.004d50b0
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
fld xword [0x566ff8]
fmulp st(1)
fadd qword [ebp - 0x30]
fstp qword [ebx + 8]
wait
fld qword [ebx + 8]
fcomp qword [ebp - 0x30]
wait
fnstsw ax
sahf
jb 0x566db7
mov byte [ebx + 0x30], 1
fld qword [ebx + 8]
fcomp dword [0x567004]
wait
fnstsw ax
sahf
jbe 0x566de2
fld qword [ebx + 8]
fcomp qword [ebp - 0x30]
wait
fnstsw ax
sahf
jae 0x566de2
lea eax, [ebx + 4]
xor edx, edx
call fcn.00406dec
mov byte [ebx + 0x31], 1
jmp 0x566dee
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x1c], eax
mov edx, 0x567014
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x54]
dec eax
setge al
mov byte [ebx + 0x29], al
mov edx, 0x567030
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x54]
dec eax
setge al
mov byte [ebx + 0x2a], al
cmp dword [ebx + 0x10], 0
je 0x566e59
mov eax, dword [ebx + 0x10]
cmp word [eax], 0x2e
jne 0x566e37
lea eax, [ebx + 0x10]
mov ecx, 1
mov edx, 1
call fcn.004075e4
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.0040782c
test eax, eax
jge 0x566e68
mov eax, ebx
xor edx, edx
call fcn.00406dec
call fcn.00405a10
jmp 0x566f12
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00406dec
mov byte [ebx + 0x28], 1
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x566e7a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x566e89
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.00406dec
mov eax, dword [ebx + 0x14]
cmp word [eax], 0x22
jne 0x566ea4
lea eax, [ebx + 0x14]
mov ecx, 1
mov edx, 1
call fcn.004075e4
mov edx, dword [ebx + 0x14]
mov eax, edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x566eb8
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebx + 0x14]
cmp word [ecx + eax*2 - 2], 0x22
jne 0x566edf
mov eax, edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x566ed4
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
lea eax, [ebx + 0x14]
call fcn.00407150
mov eax, dword [ebx + 0x14]
cmp word [eax], 0x2f
je 0x566ef5
lea eax, [ebx + 0x14]
mov edx, 0x566f58
call fcn.00406dec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x566f12
mov eax, dword [ebp - 0x28]
call fcn.00404e44
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x566f41
lea eax, [ebp - 0x5c]
mov edx, 0xa
call fcn.00406de4
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00406de4
ret