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

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x8c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
mov dword [esp + 0x30], edi
call fcn.005602a0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x40], ebx
je 0x566bd9
mov ecx, dword [esp + 0xa8]
push ecx
mov ecx, dword [edi + 0x100]
call fcn.00410f00
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x48], ebp
je 0x566bd9
mov edx, dword [esp + 0xa4]
mov ecx, dword [edi + 0x100]
push edx
call fcn.00410f00
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x566bd9
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
push 4
push 0
lea edx, [esp + 0x6c]
push 2
push edx
mov dword [esp + 0x78], ecx
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x7c], eax
call fcn.0052c780
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
mov ecx, esi
call fcn.0052c580
mov ecx, ebp
mov byte [esp + 0x12], al
call fcn.0052c670
mov byte [esp + 0x13], al
xor edx, edx
mov dl, byte [ebx + 9]
xor eax, eax
mov al, byte [ebx + 8]
xor ecx, ecx
mov cl, byte [ebx + 0xb]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00566bf0
mov dword [esp + 0x38], eax
xor edx, edx
mov dl, byte [ebx + 9]
xor eax, eax
mov al, byte [ebx + 8]
xor ecx, ecx
mov cl, byte [ebx + 0xb]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00566d00
mov esi, dword [esp + 0xa0]
xor edx, edx
mov dl, byte [ebx + 8]
mov dword [esp + 0x3c], eax
sub edx, esi
xor eax, eax
mov dword [esp + 0x5c], edx
mov al, byte [ebx + 9]
lea ecx, [esp + 0x5c]
sub eax, esi
push ecx
mov ecx, edi
mov dword [esp + 0x64], eax
call fcn.00565760
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 8]
lea ecx, [esp + 0x54]
add edx, esi
push ecx
mov dword [esp + 0x58], edx
mov al, byte [ebx + 9]
add eax, esi
mov ecx, edi
mov dword [esp + 0x5c], eax
call fcn.00565760
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 8]
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], edx
mov al, byte [ebx + 9]
push ecx
mov dword [esp + 0x7c], eax
mov ecx, edi
call fcn.00565760
mov eax, dword [edi + 0x100]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x14], esi
mov edx, dword [eax + 0xf0]
mov ecx, dword [edx + 0x88]
mov edx, dword [eax + 0x5278]
mov dword [esp + 0x44], ecx
mov eax, dword [edx + 0x8c]
mov ecx, dword [eax + 0x34]
mov eax, dword [esp + 0x54]
cmp esi, eax
mov dword [esp + 0x30], ecx
jg 0x566bd9
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
lea ecx, [esi*8]
sub ecx, esi
shl ecx, 2
mov dword [esp + 0x24], ecx
cmp ebp, eax
jg 0x566bab
mov dword [esp + 0x34], ecx
jmp 0x566936
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push ebp
push esi
mov eax, dword [edx + 0x8e8c]
mov edx, dword [eax + ebp*4]
mov al, byte [edx + ecx + 5]
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x19], al
call fcn.005deee0
test al, al
je 0x566b96
cmp byte [esp + 0x11], 2
jne 0x566b96
mov ecx, dword [esp + 0x20]
push ebp
push esi
call fcn.0052c580
cmp al, byte [esp + 0x12]
jne 0x566b96
mov ecx, dword [esp + 0x48]
push ebp
push esi
call fcn.0052c580
cmp al, byte [esp + 0x13]
jne 0x566b96
add esi, 2
lea edi, [ebp + 2]
lea eax, [esp + 0x6c]
lea ecx, [esi - 4]
lea edx, [edi - 4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x74], edx
call fcn.00565760
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
push ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x54], edi
call fcn.00565760
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
mov edi, 1
mov dword [esp + 0x18], eax
jg 0x566a84
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
mov dword [esp + 0x1c], ecx
test edi, edi
je 0x566b92
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x50]
cmp esi, eax
mov dword [esp + 0x34], esi
jg 0x566a60
test edi, edi
je 0x566a60
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x8e8c]
mov edx, dword [eax + esi*4]
mov al, byte [edx + ecx + 5]
cmp al, 1
je 0x566a4f
cmp al, 0x16
je 0x566a4f
cmp al, 0x17
je 0x566a4f
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x34]
mov eax, dword [ecx]
push ecx
fstp dword [esp]
fild dword [esp + 0x1c]
push ecx
fstp dword [esp]
call dword [eax + 0x134]
test eax, eax
jne 0x566a4f
xor edi, edi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, eax
mov dword [esp + 0x34], esi
jle 0x566a0c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
inc eax
add ecx, 0x1c
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jle 0x5669f4
test edi, edi
je 0x566b92
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [ebx + 8]
xor eax, eax
mov al, byte [ebx + 9]
sub ecx, edi
mov edx, ecx
sub eax, ebp
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
fsqrt
call fcn.005faa4c
mov ebx, eax
call fcn.005faa7d
mov edi, dword [esp + 0xa0]
push 1
cdq
lea ecx, [edi + edi*2]
mov dword [esp + 0x84], ebp
idiv ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x88]
push edx
lea edx, [esp + 0x7c]
push 0x3f800000
push edx
lea edx, [esp + 0x8c]
push edx
call dword [eax + 0x1d8]
mov esi, eax
mov eax, dword [esp + 0x38]
dec esi
neg esi
sbb esi, esi
not esi
and esi, edi
test eax, eax
jle 0x566b34
mov eax, dword [esp + 0x14]
push ebp
push eax
mov ecx, 0x7507d0
call fcn.004738e0
imul eax, edi
cdq
idiv dword [esp + 0x38]
mov edi, eax
neg edi
jmp 0x566b36
xor edi, edi
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x566b5f
mov ecx, dword [esp + 0x14]
push ebp
push ecx
mov ecx, 0x7507a8
call fcn.004738e0
imul eax, dword [esp + 0xa0]
cdq
idiv dword [esp + 0x3c]
neg eax
jmp 0x566b61
xor eax, eax
mov ecx, dword [esp + 0x28]
add eax, edi
mov edi, dword [esp + 0x34]
add eax, esi
add eax, edi
add eax, ebx
cmp ecx, 0xffffffff
je 0x566b7a
cmp ecx, eax
jge 0x566b8e
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
mov dword [eax], edx
mov dword [eax + 4], ebp
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
inc ebp
cmp ebp, eax
jle 0x566932
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
inc esi
add ecx, 0x1c
cmp esi, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ecx
jle 0x566924
cmp dword [esp + 0x28], 0xffffffff
je 0x566bd9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7c
ret 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret 0x1c