Function at 0x5669f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x9c
push ebx
push esi
mov esi, dword [esp + 0xa8]
mov eax, dword [esi]
inc dword [eax + 0x58]
mov eax, dword [esi + 0x3c]
dec eax
push edi
je 0x566c58
dec eax
je 0x566ad5
sub eax, 2
jne 0x566dda
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test ch, 0x10
je 0x566a39
mov eax, dword [eax + 0x8c]
mov ecx, dword [eax]
push 0
push 1
push eax
call dword [ecx + 0x58]
mov eax, dword [esi]
mov ebx, dword [esi + 0xc]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov edx, dword [eax + 0x18]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 0x14]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0xc], ecx
add ebx, ecx
mov ecx, dword [esi + 0x10]
add ecx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x98]
mov edx, dword [eax]
push eax
call dword [edx + 0x60]
cmp eax, 0x887601c2
jne 0x566a9c
mov eax, dword [esi]
mov eax, dword [eax + 0x98]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
test eax, eax
jne 0x566e0f
mov eax, dword [esi]
mov ecx, dword [eax + 0x90]
mov eax, dword [eax + 0x98]
mov edx, dword [ecx]
push edi
push 0x1000000
lea edi, [esp + 0x24]
push edi
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [edx + 0x14]
test eax, eax
je 0x566dda
mov dword [esi + 0x3c], 1
jmp 0x566dda
mov eax, dword [esi]
mov ecx, dword [eax + 0x98]
test ecx, ecx
je 0x566dda
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x566b15
lea esp, [esp]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x98]
mov edx, dword [eax]
push 0
push 0
push eax
call dword [edx + 0x2c]
cmp eax, 0x887601ae
je 0x566af0
cmp eax, 0x8876021c
je 0x566af0
jmp 0x566c3b
mov ecx, dword [eax + 4]
test ch, 0x10
je 0x566b2d
mov eax, dword [eax + 0x8c]
mov ecx, dword [eax]
push 0
push 1
push eax
call dword [ecx + 0x58]
mov edx, dword [esi]
xor eax, eax
push 0
mov ecx, 0x1b
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], 0x6c
mov eax, dword [edx + 0x98]
mov ecx, dword [eax]
push 0x801
lea edx, [esp + 0x44]
push edx
push 0
push eax
call dword [ecx + 0x64]
test eax, eax
jne 0x566c3b
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi]
mov edi, dword [esi + 0x328]
mov ebx, dword [esp + 0x60]
cdq
push ebp
mov ebp, dword [ecx + 0x18]
and edx, 3
add eax, edx
mov edx, dword [ecx + 0x14]
shl ebp, 1
shr ebp, 2
sar eax, 2
test edx, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], 0
jbe 0x566c27
shl eax, 2
mov dword [esp + 0x38], eax
lea ebx, [ebx]
test ebp, ebp
jbe 0x566c02
lea edx, [ebp - 1]
lea ecx, [edi + 0xc]
shr edx, 3
sub edi, ebx
lea eax, [ebx + 4]
inc edx
mov ebp, dword [ecx - 0xc]
mov dword [eax - 4], ebp
mov ebp, dword [edi + eax]
mov dword [eax], ebp
mov ebp, dword [ecx - 4]
mov dword [eax + 4], ebp
mov ebp, dword [ecx]
mov dword [eax + 8], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 0xc], ebp
mov ebp, dword [ecx + 8]
mov dword [eax + 0x10], ebp
mov ebp, dword [ecx + 0xc]
mov dword [eax + 0x14], ebp
mov ebp, dword [ecx + 0x10]
mov dword [eax + 0x18], ebp
add eax, 0x20
add ecx, 0x20
dec edx
jne 0x566bc3
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
add ebx, eax
lea eax, [ebp*4]
add edi, eax
mov eax, dword [edx + 0x14]
inc ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edi
jb 0x566bb0
mov eax, dword [esi]
mov eax, dword [eax + 0x98]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x80]
pop ebp
mov eax, dword [esi + 0x40]
test eax, eax
je 0x566dda
push 1
call fcn.00566900
add esp, 4
mov dword [esi + 0x40], eax
jmp 0x566dda
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test ch, 4
jne 0x566dda
test ecx, 0x8000000
je 0x566c76
mov edi, dword [eax + 0x94]
jmp 0x566c7c
mov edi, dword [eax + 0x90]
mov ecx, dword [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0x14]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0xc], eax
add edx, eax
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov ecx, dword [edi]
push edi
call dword [ecx + 0x60]
cmp eax, 0x887601c2
jne 0x566ccf
mov edx, dword [edi]
push edi
call dword [edx + 0x6c]
test eax, eax
jne 0x566e0f
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test cl, 0x20
je 0x566d2e
cmp dword [eax + 0x14], ebx
jbe 0x566dda
mov eax, dword [esi + 0x18]
add eax, ebx
mov dword [esp + 0x10], eax
inc eax
mov dword [esp + 0x18], eax
mov eax, ebx
shr eax, 1
mov dword [esp + 0x20], eax
push 0
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov ecx, dword [edi]
push 0x1000000
lea edx, [esp + 0x24]
push edx
mov edx, dword [eax + 0x98]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
call dword [ecx + 0x14]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x14]
add ebx, 2
cmp ebx, eax
jb 0x566ce2
jmp 0x566dda
test cl, 0x10
je 0x566dbd
cmp dword [eax + 0x14], ebx
jbe 0x566dda
mov edx, dword [esi + 0x18]
lea eax, [edx + ebx]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
inc eax
mov dword [esp + 0x18], eax
push 0
mov eax, ebx
shr eax, 1
mov dword [esp + 0x24], eax
push 0x1000000
inc eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 0x98]
mov eax, dword [edi]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
call dword [eax + 0x14]
mov eax, dword [esi + 0x18]
add eax, ebx
lea ecx, [eax + 1]
push 0
add eax, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esi]
mov dword [esp + 0x1c], eax
mov edx, dword [edi]
push 0x1000000
lea eax, [esp + 0x24]
push eax
mov eax, dword [ecx + 0x98]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [edx + 0x14]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
add ebx, 2
cmp ebx, eax
jb 0x566d40
jmp 0x566dda
mov eax, dword [eax + 0x98]
mov ecx, dword [edi]
push ebx
push 0x1000000
lea edx, [esp + 0x24]
push edx
push eax
lea edx, [esp + 0x1c]
push edx
push edi
call dword [ecx + 0x14]
mov eax, dword [esi]
test dword [eax + 4], 0x8000000
je 0x566e0f
cmp dword [esi + 0x3c], 1
jne 0x566e0f
mov eax, dword [eax + 0x90]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x2c]
test eax, eax
je 0x566e0f
push eax
call fcn.0056b220
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
add esp, 0x9c
ret