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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
lea esi, [eax + edi + 1]
cmp esi, 5
jae 0x56c8f0
test esi, esi
je 0x56c929
lea eax, [esi*8]
mov ecx, esp
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x24]
jmp 0x56c929
cmp esi, 0xfffffff
ja 0x56cad6
mov ebx, esi
lea esi, [esi*8]
test esi, esi
js 0x56cadb
push 8
push esi
call fcn.004ed060
add esp, 8
test eax, eax
je 0x56cae0
mov edx, 1
mov esi, ebx
jmp 0x56c957
mov edx, dword [esp + 0x1c]
movsd xmm0, qword [esp + 0x14]
movsd xmm2, qword [esp + 4]
movsd xmm1, qword [esp + 0xc]
mov dword [esp + 0x78], edx
xor edx, edx
movsd qword [esp + 0x70], xmm0
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x60], xmm2
movsd xmm1, qword [esp + 0x68]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
movsd xmm0, qword [esp + 0x60]
cmp esi, 5
mov ebx, dword [ebp + 0x14]
movsd qword [esp + 0x44], xmm1
movsd xmm1, qword [esp + 0x70]
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 0x10]
movsd qword [esp + 0x3c], xmm0
movsd qword [esp + 0x4c], xmm1
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x38]
cmovae ecx, eax
cmp edx, edi
mov eax, edi
cmova eax, edx
cmovb edi, edx
mov edx, esi
mov esi, dword [ebp + 0xc]
cmovb esi, ebx
cmovb ebx, dword [ebp + 0xc]
cmp edi, 0x21
jae 0x56c9d0
push eax
push esi
push edi
push ebx
call fcn.00567080
add esp, 0x10
jmp 0x56c9f2
cmp edi, 0x101
jae 0x56c9e6
push eax
push esi
push edi
push ebx
call fcn.00567280
add esp, 0x10
jmp 0x56c9f2
push eax
push esi
push edi
push ebx
call fcn.00567ef0
add esp, 0x10
movsd xmm3, qword [esp + 0x58]
movsd xmm2, qword [esp + 0x50]
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x38]
lea edi, [esp + 8]
movsd qword [esp + 0x28], xmm3
movsd qword [esp + 0x20], xmm2
movsd xmm3, qword [esp + 0x48]
movsd xmm2, qword [esp + 0x40]
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
movsd qword [esp + 0x18], xmm3
movsd qword [esp + 0x10], xmm2
mov esi, dword [esp + 8]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [esp + 0x28]
mov edx, edi
cmp eax, 5
mov ebx, eax
jb 0x56ca63
mov ebx, dword [esp + 4]
mov edx, esi
test ebx, ebx
je 0x56ca8b
mov ecx, dword [edx + ebx*8 - 8]
or ecx, dword [edx + ebx*8 - 4]
jne 0x56ca8b
cmp eax, 5
lea edx, [esp + 0x28]
jb 0x56ca82
mov eax, dword [esp + 4]
lea edx, [esp + 4]
test eax, eax
je 0x56ca50
dec eax
mov dword [edx], eax
jmp 0x56ca50
mov eax, dword [ebp + 8]
movsd xmm1, qword [esp + 0x20]
movsd xmm2, qword [esp + 0x18]
movsd xmm0, qword [esp + 0x28]
movsd qword [eax + 0x20], xmm1
movsd xmm1, qword [esp + 0x10]
movsd qword [eax + 0x18], xmm2
movsd xmm2, qword [esp]
movsd qword [eax + 0x28], xmm0
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [esp + 8]
movsd qword [eax], xmm2
movsd qword [eax + 8], xmm1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ed360
call fcn.004ed360
push esi
push 8
call fcn.004ed3a0
mov esi, eax
mov eax, dword [esp + 0x58]
cmp eax, 5
jb 0x56cb05
shl eax, 3
push 8
push eax
push dword [esp + 0x40]
call fcn.004ed020
add esp, 0xc
push esi
call fcn.0050ffb0
nop dword [eax + eax]
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x56cbb0
mov edi, dword [ebp + 8]
shl eax, 3
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x14], 0
nop word cs:[eax + eax]
nop
mov ebx, dword [edi]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov eax, ebx
mul dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], eax
mul dword [ebp + 0x10]
mov edi, eax
mov eax, ebx
add edi, dword [ebp - 0x10]
adc edx, 0
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0x14]
mul edx
mov ebx, eax
mov eax, dword [ebp - 0x18]
add ebx, edi
adc edx, dword [ebp - 0x10]
mov edi, edx
setb byte [ebp - 0x10]
mul dword [ebp + 0x14]
add eax, edi
movzx edi, byte [ebp - 0x10]
adc edx, edi
mov edi, dword [ebp - 0x1c]
add edi, ecx
mov ecx, dword [ebp - 0x20]
adc ebx, esi
mov esi, edx
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ecx], edi
lea edi, [ecx + 8]
mov ecx, eax
mov eax, dword [ebp - 0x24]
adc ecx, ebx
adc esi, ebx
add eax, 0xfffffff8
jne 0x56cb40
jmp 0x56cbb4
xor ecx, ecx
xor esi, esi
mov eax, ecx
mov edx, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret