Function at 0x10056df0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
mov edx, dword [esp + 0x44]
mov eax, 0x20
sub eax, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
movd xmm2, eax
lea ecx, [ebx - 1]
push esi
mov esi, dword [esp + 0x54]
mov eax, 1
shl eax, cl
mov dword [esp + 0x3c], eax
mov eax, dword [edx]
mov dword [esi], eax
test ebp, ebp
jne 0x10056e61
mov eax, dword [esp + 0x58]
cmp eax, 1
jle 0x10057930
cmp edx, esi
je 0x10057930
lea eax, [eax*4 - 4]
push eax
lea eax, [edx + 4]
push eax
lea eax, [esi + 4]
push eax
call fcn.100a1aa0
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push edi
mov edi, 1
cmp ebp, 0x1f
jne 0x10056f6d
mov ebx, dword [esp + 0x5c]
lea ebp, [ebx - 1]
cmp ebx, edi
jle 0x1005792f
cmp ebp, 0x10
jb 0x10056f3a
lea ecx, [edx + ebp*4]
lea eax, [esi + 4]
cmp eax, ecx
ja 0x10056e9d
lea eax, [esi + ebp*4]
cmp eax, edx
jae 0x10056f3a
and ebp, 0x8000000f
jns 0x10056eaa
dec ebp
or ebp, 0xfffffff0
inc ebp
mov esi, ebx
lea eax, [edx + 0x14]
sub esi, ebp
mov ebp, dword [esp + 0x58]
lea ecx, [ebp + 0x34]
sub ebp, edx
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x14]
add edi, 0x10
lea eax, [eax + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [eax - 0x50]
psubd xmm1, xmm0
pslld xmm1, xmm2
psrad xmm1, xmm2
movups xmmword [ecx - 0x70], xmm1
movups xmm0, xmmword [eax - 0x44]
movups xmm1, xmmword [eax - 0x40]
psubd xmm1, xmm0
pslld xmm1, xmm2
psrad xmm1, xmm2
movups xmmword [eax + ebp - 0x40], xmm1
movups xmm0, xmmword [eax - 0x34]
movups xmm1, xmmword [eax - 0x30]
psubd xmm1, xmm0
pslld xmm1, xmm2
psrad xmm1, xmm2
movups xmmword [ecx - 0x50], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [eax - 0x24]
psubd xmm1, xmm0
pslld xmm1, xmm2
psrad xmm1, xmm2
movups xmmword [ecx - 0x40], xmm1
cmp edi, esi
jl 0x10056ec0
mov dword [esp + 0x64], edi
cmp edi, ebx
jge 0x1005792f
mov ebp, dword [esp + 0x58]
lea esi, [edx + edi*4]
mov ecx, dword [esp + 0x2c]
sub ebp, edx
sub ebx, edi
nop dword [eax]
mov eax, dword [esi]
lea esi, [esi + 4]
sub eax, dword [esi - 8]
shl eax, cl
sar eax, cl
mov dword [esi + ebp - 4], eax
sub ebx, 1
jne 0x10056f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp ebp, 1
jl 0x10057069
cmp ebp, 0x10
jb 0x1005702b
lea ecx, [edx + ebp*4]
lea eax, [esi + 4]
cmp eax, ecx
ja 0x10056f94
lea eax, [esi + ebp*4]
cmp eax, edx
jae 0x1005702b
mov eax, ebp
lea ecx, [esi + 0x34]
and eax, 0xfffffff0
sub esi, edx
mov dword [esp + 0x68], eax
lea eax, [edx + 0x14]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x68]
mov ebx, dword [esp + 0x48]
movups xmm0, xmmword [eax - 0x14]
add edi, 0x10
lea eax, [eax + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [eax - 0x50]
psubd xmm1, xmm0
pslld xmm1, xmm2
psrad xmm1, xmm2
movups xmmword [ecx - 0x70], xmm1
movups xmm0, xmmword [eax - 0x44]
movups xmm1, xmmword [eax - 0x40]
psubd xmm1, xmm0
pslld xmm1, xmm2
psrad xmm1, xmm2
movups xmmword [eax + ebx - 0x40], xmm1
movups xmm0, xmmword [eax - 0x34]
movups xmm1, xmmword [eax - 0x30]
psubd xmm1, xmm0
pslld xmm1, xmm2
psrad xmm1, xmm2
movups xmmword [ecx - 0x50], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [eax - 0x24]
psubd xmm1, xmm0
pslld xmm1, xmm2
psrad xmm1, xmm2
movups xmmword [ecx - 0x40], xmm1
cmp edi, esi
jle 0x10056fb1
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x68], edi
cmp edi, ebp
jg 0x10057069
mov eax, dword [esp + 0x58]
lea esi, [edx + edi*4]
mov ecx, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x48], eax
mov eax, ebp
mov ebx, dword [esp + 0x48]
sub eax, edi
mov edi, eax
mov dword [esp + 0x68], eax
inc edi
nop dword [eax + eax]
mov eax, dword [esi]
lea esi, [esi + 4]
sub eax, dword [esi - 8]
shl eax, cl
sar eax, cl
mov dword [esi + ebx - 4], eax
sub edi, 1
jne 0x10057050
mov ebx, dword [esp + 0x6c]
lea ecx, [ebp + 1]
mov dword [esp + 0x10], ecx
cmp ebp, 4
jne 0x100572d1
mov edi, dword [esp + 0x60]
movzx eax, word [edi + 2]
movzx edx, word [edi]
movzx ebp, word [edi + 6]
mov dword [esp + 0x14], eax
movzx eax, word [edi + 4]
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebp
cmp ecx, dword [esp + 0x5c]
jge 0x100572b6
mov edi, dword [esp + 0x54]
lea ebp, [edi - 8]
lea ebp, [ebp + ecx*4]
mov dword [esp + 0x28], ebp
mov esi, dword [edi]
lea eax, [ebp + 4]
mov dword [esp + 0x48], eax
mov ecx, esi
sub ecx, dword [eax]
mov edx, esi
mov eax, esi
mov dword [esp + 0x34], ecx
sub eax, dword [ebp]
mov ebp, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
sub ebp, dword [eax - 4]
sub edx, dword [eax - 8]
mov eax, dword [esp + 0x68]
cwde
imul eax, edx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x38], ebp
sub edx, eax
mov eax, dword [esp + 0x6c]
cwde
imul eax, ebp
mov ebp, dword [esp + 0x28]
sub edx, eax
mov ebp, dword [ebp + 8]
mov eax, dword [esp + 0x14]
cwde
imul eax, dword [esp + 0x54]
sub edx, eax
mov eax, dword [esp + 0x64]
cwde
imul eax, ecx
mov ecx, ebx
sub edx, eax
mov eax, dword [esp + 0x58]
sar edx, cl
mov ecx, dword [esp + 0x2c]
sub ebp, edx
sub ebp, esi
mov esi, dword [esp + 0x10]
shl ebp, cl
sar ebp, cl
mov ecx, ebp
mov dword [eax + esi*4], ebp
neg ecx
mov eax, ebp
shr ecx, 0x1f
sar eax, 0x1f
or ecx, eax
jle 0x100571ea
mov ecx, dword [esp + 0x3c]
mov edx, ecx
neg edx
mov eax, ecx
shr edx, 0x1f
sar eax, 0x1f
or edx, eax
sub dword [esp + 0x68], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
sub ebp, edx
test ebp, ebp
jle 0x1005728c
mov ecx, dword [esp + 0x38]
mov edx, ecx
neg edx
mov eax, ecx
shr edx, 0x1f
sar eax, 0x1f
or edx, eax
mov eax, dword [esp + 0x6c]
sub eax, edx
imul edx, ecx
mov ecx, ebx
mov dword [esp + 0x6c], eax
sar edx, cl
neg edx
lea ebp, [ebp + edx*2]
test ebp, ebp
jle 0x10057286
mov ecx, dword [esp + 0x54]
mov edx, ecx
neg edx
mov eax, ecx
shr edx, 0x1f
sar eax, 0x1f
or edx, eax
sub dword [esp + 0x14], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
lea eax, [edx + edx*2]
mov edx, dword [esp + 0x64]
sub ebp, eax
test ebp, ebp
jle 0x10057290
mov ecx, dword [esp + 0x34]
mov eax, ecx
neg eax
sar ecx, 0x1f
shr eax, 0x1f
or eax, ecx
sub edx, eax
mov dword [esp + 0x64], edx
jmp 0x10057290
test ecx, ecx
jns 0x1005728c
mov ecx, dword [esp + 0x3c]
mov edx, ecx
neg edx
mov eax, ecx
shr edx, 0x1f
sar eax, 0x1f
or edx, eax
neg edx
sub dword [esp + 0x68], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
sub ebp, edx
jns 0x1005728c
mov ecx, dword [esp + 0x38]
mov edx, ecx
neg edx
mov eax, ecx
shr edx, 0x1f
sar eax, 0x1f
or edx, eax
mov eax, dword [esp + 0x6c]
neg edx
sub eax, edx
imul edx, ecx
mov ecx, ebx
mov dword [esp + 0x6c], eax
sar edx, cl
neg edx
lea ebp, [ebp + edx*2]
test ebp, ebp
jns 0x10057286
mov ecx, dword [esp + 0x54]
mov edx, ecx
neg edx
mov eax, ecx
shr edx, 0x1f
sar eax, 0x1f
or edx, eax
neg edx
sub dword [esp + 0x14], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
lea eax, [edx + edx*2]
mov edx, dword [esp + 0x64]
sub ebp, eax
jns 0x10057290
mov ecx, dword [esp + 0x34]
mov eax, ecx
neg eax
sar ecx, 0x1f
shr eax, 0x1f
or eax, ecx
add edx, eax
mov dword [esp + 0x64], edx
jmp 0x10057290
mov edx, dword [esp + 0x64]
jmp 0x10057294
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x48]
inc esi
add edi, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], ebp
cmp esi, dword [esp + 0x5c]
jl 0x100570b5
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov word [edi + 6], bp
mov word [edi], dx
mov word [edi + 2], cx
mov word [edi + 4], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp ebp, 8
jne 0x10057763
mov edi, dword [esp + 0x60]
movzx ebx, word [edi + 8]
movzx edx, word [edi]
movzx eax, word [edi + 2]
movzx ebp, word [edi + 4]
movzx esi, word [edi + 6]
mov dword [esp + 0x1c], ebx
movzx ebx, word [edi + 0xa]
mov dword [esp + 0x20], ebx
movzx ebx, word [edi + 0xc]
mov dword [esp + 0x24], ebx
movzx ebx, word [edi + 0xe]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
cmp ecx, dword [esp + 0x5c]
jge 0x1005772c
mov edi, dword [esp + 0x54]
add ecx, 0xfffffffe
lea ecx, [edi + ecx*4]
mov dword [esp + 0x6c], ecx
nop dword [eax]
mov esi, dword [edi]
lea edx, [ecx + 4]
mov eax, esi
mov dword [esp + 0x4c], edx
sub eax, dword [edx]
mov ebp, esi
mov dword [esp + 0x3c], eax
mov edx, esi
sub ebp, dword [ecx - 0xc]
mov eax, esi
sub eax, dword [ecx]
mov dword [esp + 0x38], eax
mov eax, esi
sub eax, dword [ecx - 4]
mov dword [esp + 0x34], eax
mov eax, esi
sub eax, dword [ecx - 8]
mov dword [esp + 0x30], eax
mov eax, esi
sub eax, dword [ecx - 0x10]
mov ecx, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
sub edx, dword [eax - 0x18]
sub ecx, dword [eax - 0x14]
mov eax, dword [esp + 0x28]
cwde
imul eax, edx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x48], ecx
sub edx, eax
mov eax, dword [esp + 0x24]
cwde
imul eax, ecx
mov ecx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
cwde
imul eax, dword [esp + 0x54]
sub edx, eax
mov eax, dword [esp + 0x1c]
cwde
imul eax, ebp
sub edx, eax
mov eax, dword [esp + 0x18]
cwde
imul eax, dword [esp + 0x30]
sub edx, eax
mov eax, dword [esp + 0x14]
cwde
imul eax, dword [esp + 0x34]
sub edx, eax
mov eax, dword [esp + 0x68]
cwde
imul eax, dword [esp + 0x38]
sub edx, eax
mov eax, dword [esp + 0x64]
cwde
imul eax, dword [esp + 0x3c]
sub edx, eax
mov eax, dword [esp + 0x6c]
sar edx, cl
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 8]
sub eax, edx
sub eax, esi
mov esi, dword [esp + 0x10]
shl eax, cl
sar eax, cl
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov dword [ecx + esi*4], eax
mov ecx, eax
neg ecx
sar eax, 0x1f
shr ecx, 0x1f
or ecx, eax
jle 0x10057595
mov edx, dword [esp + 0x44]
mov ecx, edx
neg ecx
mov eax, edx
sar eax, 0x1f
shr ecx, 0x1f
or ecx, eax
mov eax, dword [esp + 0x6c]
sub dword [esp + 0x28], ecx
imul edx, ecx
mov ecx, ebx
sar edx, cl
sub eax, edx
mov dword [esp + 0x6c], eax
test eax, eax
jle 0x100576fe
mov edx, dword [esp + 0x48]
mov ecx, edx
neg ecx
mov eax, edx
sar eax, 0x1f
shr ecx, 0x1f
or ecx, eax
mov eax, dword [esp + 0x6c]
sub dword [esp + 0x24], ecx
imul edx, ecx
mov ecx, ebx
sar edx, cl
neg edx
lea eax, [eax + edx*2]
mov dword [esp + 0x6c], eax
test eax, eax
jle 0x100576fe
mov edx, dword [esp + 0x54]
mov ecx, edx
mov eax, edx
neg ecx
sar eax, 0x1f
shr ecx, 0x1f
or ecx, eax
sub dword [esp + 0x20], ecx
imul edx, ecx
mov ecx, ebx
sar edx, cl
lea eax, [edx*4]
sub eax, edx
mov edx, dword [esp + 0x6c]
neg eax
add edx, eax
test edx, edx
jle 0x100576fe
mov ecx, ebp
mov eax, ebp
neg ecx
sar eax, 0x1f
shr ecx, 0x1f
or ecx, eax
sub dword [esp + 0x1c], ecx
imul ebp, ecx
mov ecx, ebx
sar ebp, cl
neg ebp
lea ebp, [edx + ebp*4]
test ebp, ebp
jle 0x100576fe
mov ecx, dword [esp + 0x30]
mov edx, ecx
neg edx
mov eax, ecx
sar eax, 0x1f
shr edx, 0x1f
or edx, eax
sub dword [esp + 0x18], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
mov eax, edx
neg eax
shl eax, 2
sub eax, edx
add ebp, eax
test ebp, ebp
jle 0x100576fe
mov ecx, dword [esp + 0x34]
mov edx, ecx
neg edx
mov eax, ecx
sar eax, 0x1f
shr edx, 0x1f
or edx, eax
sub dword [esp + 0x14], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
lea eax, [edx*4]
sub eax, edx
neg eax
lea ebp, [ebp + eax*2]
test ebp, ebp
jle 0x100576fe
mov ecx, dword [esp + 0x38]
mov edx, ecx
neg edx
mov eax, ecx
shr edx, 0x1f
sar eax, 0x1f
or edx, eax
sub dword [esp + 0x68], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
lea eax, [edx*8]
sub eax, edx
mov edx, dword [esp + 0x64]
sub ebp, eax
test ebp, ebp
jle 0x10057702
mov ecx, dword [esp + 0x3c]
mov eax, ecx
neg eax
sar ecx, 0x1f
shr eax, 0x1f
or eax, ecx
sub edx, eax
mov dword [esp + 0x64], edx
jmp 0x10057702
test ecx, ecx
jns 0x100576fe
mov edx, dword [esp + 0x44]
mov ecx, edx
neg ecx
mov eax, edx
shr ecx, 0x1f
sar eax, 0x1f
or ecx, eax
neg ecx
sub dword [esp + 0x28], ecx
imul edx, ecx
mov ecx, ebx
sar edx, cl
sub dword [esp + 0x6c], edx
jns 0x100576fe
mov edx, dword [esp + 0x48]
mov ecx, edx
neg ecx
mov eax, edx
shr ecx, 0x1f
sar eax, 0x1f
or ecx, eax
mov eax, dword [esp + 0x6c]
neg ecx
sub dword [esp + 0x24], ecx
imul edx, ecx
mov ecx, ebx
sar edx, cl
neg edx
lea eax, [eax + edx*2]
mov dword [esp + 0x6c], eax
test eax, eax
jns 0x100576fe
mov edx, dword [esp + 0x54]
mov ecx, edx
neg ecx
mov eax, edx
sar eax, 0x1f
shr ecx, 0x1f
or ecx, eax
neg ecx
sub dword [esp + 0x20], ecx
imul edx, ecx
mov ecx, ebx
sar edx, cl
lea eax, [edx*4]
sub eax, edx
mov edx, dword [esp + 0x6c]
neg eax
add edx, eax
jns 0x100576fe
mov ecx, ebp
mov eax, ebp
neg ecx
sar eax, 0x1f
shr ecx, 0x1f
or ecx, eax
neg ecx
sub dword [esp + 0x1c], ecx
imul ebp, ecx
mov ecx, ebx
sar ebp, cl
neg ebp
lea ebp, [edx + ebp*4]
test ebp, ebp
jns 0x100576fe
mov ecx, dword [esp + 0x30]
mov edx, ecx
neg edx
mov eax, ecx
sar eax, 0x1f
shr edx, 0x1f
or edx, eax
neg edx
sub dword [esp + 0x18], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
mov eax, edx
neg eax
shl eax, 2
sub eax, edx
add ebp, eax
jns 0x100576fe
mov ecx, dword [esp + 0x34]
mov edx, ecx
neg edx
mov eax, ecx
shr edx, 0x1f
sar eax, 0x1f
or edx, eax
neg edx
sub dword [esp + 0x14], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
lea eax, [edx*4]
sub eax, edx
neg eax
lea ebp, [ebp + eax*2]
test ebp, ebp
jns 0x100576fe
mov ecx, dword [esp + 0x38]
mov edx, ecx
neg edx
mov eax, ecx
shr edx, 0x1f
sar eax, 0x1f
or edx, eax
neg edx
sub dword [esp + 0x68], edx
imul edx, ecx
mov ecx, ebx
sar edx, cl
lea eax, [edx*8]
sub eax, edx
mov edx, dword [esp + 0x64]
sub ebp, eax
jns 0x10057702
mov ecx, dword [esp + 0x3c]
mov eax, ecx
neg eax
sar ecx, 0x1f
shr eax, 0x1f
or eax, ecx
add edx, eax
mov dword [esp + 0x64], edx
jmp 0x10057702
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x4c]
inc esi
add edi, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x6c], ecx
cmp esi, dword [esp + 0x5c]
jl 0x10057340
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov word [edi + 2], ax
mov eax, dword [esp + 0x1c]
mov word [edi + 8], ax
mov eax, dword [esp + 0x20]
mov word [edi + 0xa], ax
mov eax, dword [esp + 0x24]
mov word [edi + 0xc], ax
mov eax, dword [esp + 0x28]
mov word [edi + 4], bp
mov word [edi + 6], si
mov word [edi], dx
mov word [edi + 0xe], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp ecx, dword [esp + 0x5c]
jge 0x1005792f
lea esi, [edx - 4]
lea esi, [esi + ecx*4]
mov dword [esp + 0x68], esi
mov ecx, dword [esp + 0x64]
xor edi, edi
mov ebp, dword [edx]
mov eax, esi
xor esi, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edi
cmp ecx, 2
jl 0x100577e4
mov edi, dword [esp + 0x68]
mov eax, esi
mov ebx, dword [esp + 0x60]
movsx ecx, word [ebx + esi*2]
lea edi, [edi - 8]
mov edx, ebp
sub edx, dword [edi + 8]
imul edx, ecx
movsx ecx, word [ebx + esi*2 + 2]
add esi, 2
sub eax, edx
mov edx, ebp
sub edx, dword [edi + 4]
imul edx, ecx
mov ecx, dword [esp + 0x64]
dec ecx
sub dword [esp + 0x38], edx
cmp esi, ecx
jl 0x100577a2
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x3c]
cmp esi, ecx
jge 0x10057806
lea ecx, [esi*4]
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [edx]
movsx ecx, word [ecx + esi*2]
sub edx, ebp
imul edx, ecx
mov dword [esp + 0x48], edx
mov esi, dword [esp + 0x68]
mov ecx, ebx
mov edx, dword [esp + 0x38]
add esi, 4
add edx, edi
mov dword [esp + 0x68], esi
add edx, dword [esp + 0x48]
add edx, dword [esp + 0x40]
mov edi, dword [esi]
sar edx, cl
mov ecx, dword [esp + 0x2c]
sub edi, edx
mov edx, dword [esp + 0x58]
sub edi, ebp
shl edi, cl
sar edi, cl
mov ecx, dword [esp + 0x10]
mov dword [edx + ecx*4], edi
mov edx, edi
neg edx
mov ecx, edi
shr edx, 0x1f
sar ecx, 0x1f
or edx, ecx
jle 0x100578af
mov ecx, dword [esp + 0x64]
lea esi, [ecx - 1]
mov ebp, esi
test ebp, ebp
js 0x1005790d
sub ecx, esi
mov dword [esp + 0x48], ecx
lea ecx, [ebp*4]
sub eax, ecx
nop dword [eax]
mov esi, dword [esp + 0x44]
sub esi, dword [eax]
mov edx, esi
mov ecx, esi
neg edx
sar ecx, 0x1f
shr edx, 0x1f
or edx, ecx
mov ecx, dword [esp + 0x60]
imul esi, edx
sub word [ecx + ebp*2], dx
mov ecx, ebx
sar esi, cl
mov ecx, dword [esp + 0x48]
imul esi, ecx
sub edi, esi
test edi, edi
jle 0x1005790d
inc ecx
add eax, 4
sub ebp, 1
mov dword [esp + 0x48], ecx
jns 0x10057870
jmp 0x1005790d
test edx, edx
jns 0x10057911
mov ecx, dword [esp + 0x64]
lea esi, [ecx - 1]
mov ebp, esi
test ebp, ebp
js 0x1005790d
sub ecx, esi
mov dword [esp + 0x48], ecx
lea ecx, [ebp*4]
sub eax, ecx
nop
mov esi, dword [esp + 0x44]
sub esi, dword [eax]
mov edx, esi
mov ecx, esi
neg edx
sar ecx, 0x1f
shr edx, 0x1f
or edx, ecx
mov ecx, dword [esp + 0x60]
imul esi, edx
add word [ecx + ebp*2], dx
mov ecx, ebx
neg esi
sar esi, cl
mov ecx, dword [esp + 0x48]
imul esi, ecx
sub edi, esi
jns 0x1005790d
inc ecx
add eax, 4
sub ebp, 1
mov dword [esp + 0x48], ecx
jns 0x100578d0
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
inc ecx
add edx, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], edx
cmp ecx, dword [esp + 0x5c]
jl 0x10057777
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret