Function at 0x566ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x566f14
sub esp, 0x7c
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
test ecx, ecx
je 0x566f03
mov ecx, dword [eax + 4]
cmp ecx, 2
jge 0x566ee1
mov ecx, dword [0x10e3c38]
mov edx, dword [0x10e3c3c]
test ecx, ecx
jne 0x566ecf
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov ecx, dword [0x10e2c48]
lea edx, [esp + 0x6c]
cmp edx, ecx
je 0x566bad
mov dword [esp + 0x28], ecx
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
test ebx, ebx
jg 0x566e30
mov esi, ebx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ebx, esi
cmp esi, ebx
jge 0x566e29
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ebx
cmp edi, ebp
je 0x566b8a
mov dword [esp], edi
mov dword [esp + 4], ebp
shl esi, 2
mov dword [esp + 8], esi
call fcn.004614f0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x1c], edx
xor ebx, ebx
jmp 0x566bf4
lea eax, [esp + 0x6c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
call fcn.00517fa0
mov eax, dword [esp + 0x18]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
cmp edx, ebx
jle 0x566c56
mov dword [esp + 0x18], ebx
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x2c], eax
mov dword [esp], eax
mov edx, dword [0x10e2c48]
mov dword [esp + 4], edx
call fcn.00518c70
mov eax, dword [esp + 8]
test eax, eax
jg 0x566bc6
lea eax, [0xad4dc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1f
lea ecx, [0xbaa8bc]
mov dword [eax], ecx
lea ecx, [0xc7fc40]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00518c70
mov eax, dword [esp + 8]
test eax, eax
jne 0x566df0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], ecx
sar ecx, 0x1f
mov dword [esp + 8], ecx
call fcn.005174c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 8]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00517fa0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
xor edx, edx
jmp 0x566d19
mov ebx, dword [esp + 0x18]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
cmp eax, edx
jle 0x566dd6
mov dword [esp + 0x18], edx
mov eax, dword [ecx + edx*4]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea ebx, [esp + 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [0x10e2c48]
mov dword [esp + 8], eax
call fcn.00517d60
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00518820
lea eax, [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [0x10e2c48]
mov dword [esp + 4], ecx
call fcn.00518c70
mov eax, dword [esp + 8]
test eax, eax
je 0x566d0a
lea eax, [0xad4dc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1d
lea ecx, [0xba8335]
mov dword [eax], ecx
lea ecx, [0xc7fc40]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x7c
ret
lea eax, [0xad4dc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1b
lea ecx, [0xba5e20]
mov dword [eax], ecx
lea ecx, [0xc7fc40]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov esi, ebx
jmp 0x566b6b
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebx
cmp ebx, 1
jne 0x566e90
lea eax, [0xaa8ee0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00446f30
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x6c]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebx, 1
mov eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
jmp 0x566b63
lea eax, [0xaa8ee0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 8], eax
call fcn.00446f30
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x6c]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebx, esi
jmp 0x566b63
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x7c
ret
cmp ecx, 0x7fffffff
jle 0x566efa
mov ecx, dword [0x10e3c30]
mov edx, dword [0x10e3c34]
jmp 0x566b12
xor ecx, ecx
xor edx, edx
jmp 0x566b12
mov ecx, dword [0x10e3c40]
mov edx, dword [0x10e3c44]
jmp 0x566b12
call fcn.0045f5f0
jmp fcn.00566ad0