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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x68]
mov edx, dword [eax + 0x34]
mov ecx, dword [eax]
push ebx
mov ebx, dword [eax + 0x2c]
push ebp
push esi
mov esi, dword [eax + 0x30]
mov ebp, ebx
push edi
xor edi, edi
sar ebp, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
cmp edx, 1
je 0x56fdda
cmp ecx, edi
jle 0x56fe51
mov eax, dword [esp + 0x7c]
sar edx, 1
mov dword [esp + 0x24], edx
lea edx, [esp + 0x54]
sub eax, edx
lea edi, [esp + ecx*4 + 0x54]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x56fd87
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edi - 4]
sub edi, 4
sub eax, esi
add eax, dword [esp + 0x24]
cdq
idiv dword [esp + 0x14]
cmp eax, ebp
jge 0x56fda7
mov ecx, ebp
sub ecx, eax
lea ecx, [ecx + ecx - 1]
jmp 0x56fdad
mov ecx, eax
sub ecx, ebp
add ecx, ecx
test ecx, ecx
jns 0x56fdb5
xor ecx, ecx
jmp 0x56fdbc
cmp ecx, ebx
jl 0x56fdbc
lea ecx, [ebx - 1]
mov edx, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
imul edx, ebx
add edx, ecx
add eax, esi
dec dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov dword [edi], eax
jne 0x56fd83
jmp 0x56fe47
cmp ecx, edi
jle 0x56fe51
mov eax, dword [esp + 0x7c]
lea edi, [esp + 0x54]
sub eax, edi
lea edx, [esp + ecx*4 + 0x54]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x56fe04
mov eax, dword [esp + 0x1c]
mov eax, dword [edx + eax - 4]
sub edx, 4
sub eax, esi
cmp eax, ebp
jge 0x56fe1b
mov ecx, ebp
sub ecx, eax
lea ecx, [ecx + ecx - 1]
jmp 0x56fe21
mov ecx, eax
sub ecx, ebp
add ecx, ecx
test ecx, ecx
jns 0x56fe29
xor ecx, ecx
jmp 0x56fe30
cmp ecx, ebx
jl 0x56fe30
lea ecx, [ebx - 1]
mov edi, dword [esp + 0x10]
imul edi, ebx
add edi, ecx
add eax, esi
dec dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [edx], eax
jne 0x56fe00
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
xor edi, edi
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [edx + 8]
cmp byte [edx + ebp], 0
jg 0x56ffb2
mov eax, dword [eax + 4]
lea edx, [ebx - 1]
imul edx, dword [esp + 0x14]
add edx, esi
xor ebx, ebx
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], eax
cmp eax, edi
jle 0x56ffb2
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
nop
mov eax, dword [esp + 0x24]
cmp byte [eax + ebx], 0
jle 0x56ff61
xor eax, eax
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x28], eax
cmp ecx, 2
jl 0x56ff25
mov eax, dword [esp + 0x7c]
lea edx, [ecx - 2]
lea esi, [esp + 0x38]
shr edx, 1
sub esi, eax
inc edx
lea ecx, [edx + edx]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + eax - 4]
sub ecx, dword [eax]
add eax, 8
imul ecx, ecx
add edi, ecx
mov ecx, dword [esi + eax - 8]
sub ecx, dword [eax - 4]
imul ecx, ecx
add ebp, ecx
dec edx
jne 0x56fef4
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp esi, ecx
jge 0x56ff37
mov eax, dword [esp + esi*4 + 0x34]
mov ecx, dword [esp + 0x7c]
sub eax, dword [ecx + esi*4]
imul eax, eax
mov ecx, dword [esp + 0x78]
add ebp, edi
add eax, ebp
cmp ecx, 0xffffffff
je 0x56ff48
cmp eax, ecx
jge 0x56ff5f
mov ecx, 8
lea esi, [esp + 0x34]
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x78], eax
mov dword [esp + 0x10], ebx
xor edi, edi
xor ecx, ecx
cmp dword [esp + 0x34], edx
jl 0x56ff81
lea eax, [esp + 0x34]
lea ecx, [ecx]
inc ecx
mov dword [eax], 0
cmp dword [esp + ecx*4 + 0x34], edx
lea eax, [esp + ecx*4 + 0x34]
jge 0x56ff70
mov eax, dword [esp + ecx*4 + 0x34]
lea ecx, [esp + ecx*4 + 0x34]
test eax, eax
js 0x56ff93
add eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [ecx]
neg eax
inc ebx
xor edi, edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x30]
jl 0x56fec0
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x7c]
cmp ebp, 0xffffffff
jle 0x56ffce
cmp ecx, edi
jle 0x56ffce
nop
mov edx, dword [esp + edi*4 + 0x54]
sub dword [eax], edx
inc edi
add eax, 4
cmp edi, ecx
jl 0x56ffc0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x64
ret