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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
add esp, 0xffffff80
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov eax, dword [ecx]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [edx]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x5c], eax
xor eax, eax
test esi, esi
je 0xa6d7ef
mov ebx, dword [ebp + 8]
mov edi, ecx
mov ebx, dword [ebx + 0x38]
mov eax, ebx
shl eax, 4
movzx ecx, byte [eax + 0x1133f88]
add eax, 0x1133f80
mov dword [esp + 0x3c], ebx
and ecx, 3
mov ebx, dword [edi + ecx*4]
test ebx, ebx
je 0xa6d9f5
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + ecx*4]
test ecx, ecx
je 0xa6d9f5
movzx ecx, byte [eax + 0xa]
and ecx, 3
mov esi, dword [edi + ecx*4]
test esi, esi
je 0xa6d9f5
mov ecx, dword [ebx + ecx*4]
test ecx, ecx
je 0xa6d9f5
movzx ecx, byte [eax + 0xc]
and ecx, 3
mov esi, dword [edi + ecx*4]
test esi, esi
je 0xa6d9f5
mov esi, dword [ebx + ecx*4]
test esi, esi
je 0xa6d9f5
movzx eax, byte [eax + 0xe]
and eax, 3
mov ecx, dword [edi + eax*4]
test ecx, ecx
je 0xa6d9f5
mov edi, dword [ebx + eax*4]
test edi, edi
je 0xa6d9f5
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x34]
mov eax, edi
shl eax, 4
add eax, 0x1133f80
mov dword [esp + 0x34], edi
movzx ecx, byte [eax + 8]
and ecx, 3
mov esi, dword [edx + ecx*4]
test esi, esi
je 0xa6dba7
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebx + ecx*4]
test edi, edi
je 0xa6dba7
movzx ecx, byte [eax + 0xa]
and ecx, 3
mov esi, dword [edx + ecx*4]
test esi, esi
je 0xa6dba7
mov ecx, dword [ebx + ecx*4]
test ecx, ecx
je 0xa6dba7
movzx ecx, byte [eax + 0xc]
and ecx, 3
mov edi, dword [edx + ecx*4]
test edi, edi
je 0xa6dba7
mov esi, dword [ebx + ecx*4]
test esi, esi
je 0xa6dba7
movzx eax, byte [eax + 0xe]
and eax, 3
mov ebx, dword [edx + eax*4]
test ebx, ebx
je 0xa6dba7
mov edx, dword [ebp + 0x20]
mov ebx, dword [edx + eax*4]
test ebx, ebx
je 0xa6dba7
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebx + 0x60]
test edx, edx
sete al
test ecx, ecx
je 0xa6d9ce
test al, al
je 0xa6d5ee
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
cmp eax, dword [edx + 0xc]
jne 0xa6db79
mov edi, dword [ebp + 8]
mov edx, 0xffffffff
mov dword [edi + 0x60], 0xffffffff
mov eax, dword [esp + 0x3c]
shl eax, 4
movzx ebx, byte [eax + 0x1133f87]
xor eax, eax
test bl, 2
jne 0xa6d828
cmp dword [esp + 0x3c], 0x42
je 0xa6d828
cmp edx, 1
je 0xa6dbc9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov eax, edx
neg eax
mov dword [esp + 0x70], eax
mov eax, edi
neg eax
mov dword [esp + 0x74], eax
mov eax, esi
neg eax
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], eax
neg eax
mov edi, dword [ecx]
mov dword [esp + 0x7c], eax
mov eax, edi
neg eax
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
neg eax
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x2c], eax
neg eax
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
neg eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x18]
sub eax, 1
imul edx, eax
add dword [esp + 0x40], edx
mov edx, ebx
and edx, 2
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x50]
mov edx, dword [ebp + 0x18]
je 0xa6db57
sar edx, cl
mov ecx, edx
sub ecx, 1
imul eax, dword [esp + 0x38]
mov edx, edi
add dword [esp + 0x4c], eax
mov eax, dword [ebp + 8]
imul ecx, esi
add dword [esp + 0x48], ecx
mov esi, dword [eax + 0x10]
lea eax, [esi - 1]
imul edx, eax
add dword [esp + 0x50], edx
mov edx, dword [ebp + 8]
imul eax, dword [esp + 0x28]
add dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [edx + 0x58]
mov edx, dword [esp + 0x30]
shl eax, 4
movzx eax, byte [eax + 0x1133f84]
sar esi, cl
lea ecx, [esi - 1]
imul edx, ecx
imul ecx, dword [esp + 0x2c]
add dword [esp + 0x54], edx
add dword [esp + 0x58], ecx
cmp al, 4
je 0xa6d717
cmp al, 2
je 0xa6d717
mov dword [esp + 0x4c], 0
cmp al, 1
jbe 0xa6d720
and ebx, 0x10
jne 0xa6d747
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test eax, eax
jne 0xa6d747
cmp dword [esp + 0x3c], 0x42
je 0xa6d747
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x34]
shl eax, 4
movzx eax, byte [eax + 0x1133f84]
cmp al, 4
je 0xa6d765
cmp al, 2
je 0xa6d765
mov dword [esp + 0x5c], 0
cmp al, 1
mov eax, dword [esp + 0x34]
jbe 0xa6db98
shl eax, 4
movzx eax, byte [eax + 0x1133f87]
test al, 0x10
jne 0xa6d7a2
test al, 2
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
jne 0xa6d7a2
cmp dword [esp + 0x34], 0x42
je 0xa6d7a2
mov dword [esp + 0x54], 0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0xa6d7b3
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x60], 0
mov edi, dword [ebp + 0x18]
lea eax, [esp + 0x60]
mov edx, dword [ebp + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov eax, dword [edx + 0xc]
sub eax, dword [ebp + 0x14]
mov dword [esp], edx
sub eax, edi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call dword [edx + 4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x34], 2
je 0xa6da50
shl esi, 8
mov edx, dword [ebp + 8]
add esi, ebx
shl ecx, 0x10
add esi, ecx
add esi, dword [esp + 0x38]
mov dword [edx + eax*4 + 0x478], esi
add eax, 1
cmp eax, 0x100
je 0xa6d9ae
cmp dword [esp + 0x3c], 0xb
je 0xa6da17
cmp dword [esp + 0x3c], 0x16
je 0xa6da90
cmp dword [esp + 0x3c], 0x13
je 0xa6dac6
cmp dword [esp + 0x3c], 0x18
je 0xa6db20
cmp dword [esp + 0x3c], 0x42
je 0xa6db00
cmp dword [esp + 0x3c], 8
je 0xa6db00
mov edx, eax
mov esi, eax
sar edx, 3
mov ebx, edx
shl ebx, 8
sar esi, 1
sub ebx, edx
and esi, 3
mov edx, eax
and edx, 1
imul esi, esi, 0x55
mov ecx, edx
shl ecx, 8
sub ecx, edx
mov dword [esp + 0x38], 0xff000000
mov dword [esp + 0x28], 0xff
lea esi, [esi]
imul edx, esi, 0x4087
imul edi, ecx, 0x20de
add edi, edx
imul edx, ebx, 0xc88
lea edi, [edi + edx + 0x84000]
sar edi, 0xf
test edi, 0xffffff00
mov edx, edi
je 0xa6d8cf
neg edi
mov edx, edi
sar edx, 0x1f
movzx edx, dl
imul edi, ecx, 0xffffecff
mov dword [esp + 0x30], edx
imul edx, esi, 0xffffdac8
add edi, edx
imul edx, ebx, 0x3838
lea edx, [edi + edx + 0x404000]
sar edx, 0xf
test edx, 0xffffff00
mov edi, edx
je 0xa6d905
neg edx
mov edi, edx
sar edi, 0x1f
mov edx, edi
movzx edi, dl
mov dword [esp + 0x2c], edi
imul edx, esi, 0xffffd0e3
imul edi, ecx, 0x3838
add edi, edx
imul edx, ebx, 0xfffff6e4
lea edx, [edi + edx + 0x404000]
sar edx, 0xf
test edx, 0xffffff00
mov edi, edx
je 0xa6d93d
neg edx
mov edi, edx
sar edi, 0x1f
mov edx, dword [esp + 0x2c]
and edi, 0xff
shl edi, 0x10
shl edx, 8
add edx, dword [esp + 0x30]
add edx, edi
mov edi, dword [ebp + 8]
add edx, dword [esp + 0x38]
cmp dword [esp + 0x34], 0x1b
mov dword [edi + eax*4 + 0x78], edx
je 0xa6da70
jle 0xa6d7f7
cmp dword [esp + 0x34], 0x1c
je 0xa6da50
cmp dword [esp + 0x34], 0x1d
jne 0xa6d802
shl ebx, 8
mov edi, dword [ebp + 8]
add ebx, dword [esp + 0x28]
shl esi, 0x10
shl ecx, 0x18
add ebx, esi
add ebx, ecx
mov dword [edi + eax*4 + 0x478], ebx
add eax, 1
cmp eax, 0x100
jne 0xa6d828
mov eax, dword [esp + 0x3c]
mov edi, dword [ebp + 8]
shl eax, 4
movzx ebx, byte [eax + 0x1133f87]
mov eax, dword [edi + 0x34]
mov edx, dword [edi + 0x60]
mov dword [esp + 0x34], eax
jmp 0xa6d612
test al, al
je 0xa6d5ee
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0xa6d5df
mov ebx, dword [ebp + 8]
mov edx, 1
mov dword [ebx + 0x60], 1
jmp 0xa6d5ee
mov eax, dword [ebp + 8]
mov dword [esp + 8], str.bad_src_image_pointers_n
mov dword [esp + 4], 0x10
mov dword [esp], eax
call fcn.00aa0010
xor eax, eax
jmp 0xa6d7ef
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov ebx, dword [edx + eax*4]
mov edi, ebx
mov ecx, ebx
shr edi, 0x18
movzx esi, bh
mov dword [esp + 0x28], edi
sar ecx, 0x10
and ebx, 0xff
shl edi, 0x18
and ecx, 0xff
mov dword [esp + 0x38], edi
jmp 0xa6d8a0
shl esi, 8
mov edx, dword [ebp + 8]
add esi, ecx
shl ebx, 0x10
add esi, ebx
add esi, dword [esp + 0x38]
mov dword [edx + eax*4 + 0x478], esi
jmp 0xa6d81a
shl ecx, 8
add ecx, dword [esp + 0x28]
shl esi, 0x10
shl ebx, 0x18
add ecx, esi
add ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + eax*4 + 0x478], ecx
jmp 0xa6d81a
mov edx, eax
mov ebx, eax
sar edx, 5
and ebx, 3
lea ecx, [edx + edx*8]
mov edx, eax
sar edx, 2
and edx, 7
lea esi, [edx + edx*8]
shl ecx, 2
shl esi, 2
imul ebx, ebx, 0x55
mov dword [esp + 0x38], 0xff000000
mov dword [esp + 0x28], 0xff
jmp 0xa6d8a0
mov edx, eax
mov ebx, eax
sar edx, 3
and edx, 7
lea esi, [edx + edx*8]
mov edx, eax
and edx, 7
sar ebx, 6
lea ecx, [edx + edx*8]
imul ebx, ebx, 0x55
shl esi, 2
shl ecx, 2
mov dword [esp + 0x38], 0xff000000
mov dword [esp + 0x28], 0xff
jmp 0xa6d8a0
mov ebx, eax
mov esi, eax
mov ecx, eax
mov dword [esp + 0x38], 0xff000000
mov dword [esp + 0x28], 0xff
jmp 0xa6d8a0
mov edx, eax
mov esi, eax
sar edx, 3
mov ecx, edx
shl ecx, 8
sub ecx, edx
mov edx, eax
and edx, 1
sar esi, 1
mov ebx, edx
and esi, 3
shl ebx, 8
imul esi, esi, 0x55
sub ebx, edx
mov dword [esp + 0x38], 0xff000000
mov dword [esp + 0x28], 0xff
jmp 0xa6d8a0
sar edx, cl
mov ecx, edx
sub ecx, 1
cmp dword [esp + 0x3c], 0x42
je 0xa6d6af
mov edx, dword [esp + 0x24]
imul edx, ecx
add dword [esp + 0x44], edx
jmp 0xa6d6af
mov dword [esp + 8], str.Slices_start_in_the_middle__n
mov dword [esp + 4], 0x10
mov dword [esp], edx
call fcn.00aa0010
xor eax, eax
jmp 0xa6d7ef
shl eax, 4
movzx eax, byte [eax + 0x1133f87]
jmp 0xa6d77f
mov edi, dword [ebp + 8]
mov dword [esp + 8], str.bad_dst_image_pointers_n
mov dword [esp + 4], 0x10
mov dword [esp], edi
call fcn.00aa0010
xor eax, eax
jmp 0xa6d7ef
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov eax, dword [edx]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x3c]
shl eax, 4
movzx eax, byte [eax + 0x1133f84]
cmp al, 4
je 0xa6dc23
cmp al, 2
je 0xa6dc23
mov dword [esp + 0x4c], 0
cmp al, 1
jbe 0xa6dc2c
test bl, 0x10
jne 0xa6dc50
and ebx, 2
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
jne 0xa6dc50
cmp dword [esp + 0x3c], 0x42
je 0xa6dc50
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x34]
shl eax, 4
movzx eax, byte [eax + 0x1133f84]
cmp al, 4
je 0xa6dc6e
cmp al, 2
je 0xa6dc6e
mov dword [esp + 0x5c], 0
cmp al, 1
mov eax, dword [esp + 0x34]
jbe 0xa6dcfc
shl eax, 4
movzx eax, byte [eax + 0x1133f87]
test al, 0x10
jne 0xa6dcab
test al, 2
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
jne 0xa6dcab
cmp dword [esp + 0x34], 0x42
je 0xa6dcab
mov dword [esp + 0x54], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
cmp eax, dword [ebx + 0xc]
jne 0xa6dcc0
mov dword [ebx + 0x60], 0
lea eax, [esp + 0x70]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x50]
mov edx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp], edx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call dword [edx + 4]
jmp 0xa6d7ef
shl eax, 4
movzx eax, byte [eax + 0x1133f87]
jmp 0xa6dc88