Function at 0x7796f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, ecx
mov ecx, dword [esp + 0x44]
mov ebp, 1
shl ebp, cl
mov dword [esp + 4], edx
mov edx, 1
xor esi, esi
shld esi, edx, cl
shl edx, cl
xor ebx, ebx
test cl, 0x20
cmovne esi, edx
cmovne edx, ebx
mov ecx, dword [esp + 0x40]
lea eax, [ecx*2 + 2]
add edx, eax
adc esi, 0
add edx, 8
adc esi, 0
mov eax, 0xffffffd2
cmp ecx, 0xff
ja 0x779b03
cmp dword [esp + 0x4c], edx
sbb ebx, esi
jb 0x779b03
mov eax, 0xffffffd4
cmp dword [esp + 0x44], 0xc
ja 0x779b03
mov dword [esp + 8], edi
mov edx, dword [esp + 0x48]
mov esi, 0x8000
mov ecx, dword [esp + 0x44]
shl esi, cl
mov eax, dword [esp + 0x40]
lea edi, [eax + 1]
mov dword [esp + 0x14], ebp
lea ebx, [ebp - 1]
shr esi, 0x10
mov dword [esp], esi
test eax, eax
mov dword [esp + 0xc], edi
je 0x77983b
and edi, 0x1fe
mov dword [esp + 0x10], edi
mov bp, 1
mov eax, ebx
xor ecx, ecx
jmp 0x7797d3
mov edx, ecx
inc dl
mov esi, dword [esp + 8]
mov byte [esi + eax*4 + 6], dl
mov edx, dword [esp + 0x48]
dec eax
mov si, 1
mov word [edx + ecx*2 + 2], si
add ecx, 2
cmp dword [esp + 0x10], ecx
je 0x77982c
mov esi, dword [esp + 4]
movsx esi, word [esi + ecx*2]
cmp esi, 0xffffffff
je 0x7797f0
cmp dword [esp], esi
mov edi, 0
cmovle ebp, edi
jmp 0x779801
mov edx, dword [esp + 8]
mov byte [edx + eax*4 + 6], cl
mov edx, dword [esp + 0x48]
dec eax
mov si, 1
mov word [edx + ecx*2], si
mov esi, dword [esp + 4]
movsx esi, word [esi + ecx*2 + 2]
cmp esi, 0xffffffff
je 0x7797b0
cmp dword [esp], esi
mov edi, 0
cmovle ebp, edi
mov word [edx + ecx*2 + 2], si
add ecx, 2
cmp dword [esp + 0x10], ecx
jne 0x7797d3
mov edx, dword [esp + 0x40]
test dl, 1
mov edi, dword [esp + 0xc]
je 0x779850
jmp 0x77987c
xor ecx, ecx
mov bp, 1
mov eax, ebx
mov edx, dword [esp + 0x40]
test dl, 1
mov edi, dword [esp + 0xc]
jne 0x77987c
mov edx, dword [esp + 4]
movsx edx, word [edx + ecx*2]
cmp edx, 0xffffffff
je 0x779867
xor esi, esi
cmp dword [esp], edx
cmovle ebp, esi
jmp 0x779874
mov edx, dword [esp + 8]
mov byte [edx + eax*4 + 6], cl
dec eax
mov dx, 1
mov esi, dword [esp + 0x48]
mov word [esi + ecx*2], dx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x44]
mov word [ecx], dx
mov word [ecx + 2], bp
cmp edi, 1
adc edi, 0
cmp eax, ebx
mov dword [esp + 0xc], edi
jne 0x7799b3
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
lea eax, [edx + esi*2]
add eax, 2
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shr eax, 1
shr ecx, 3
add eax, ecx
add eax, 3
mov dword [esp + 0x18], eax
lea eax, [edx + esi*2]
add eax, 0x1a
mov dword [esp + 0x20], eax
xor esi, esi
xor ebp, ebp
xor edx, edx
xor ecx, ecx
jmp 0x7798fe
mov esi, dword [esp]
add esi, ecx
mov ecx, dword [esp + 0x10]
inc ecx
add ebp, 0x1010101
adc edx, 0x1010101
cmp ecx, edi
je 0x779a4a
mov eax, dword [esp + 4]
mov dword [esp + 0x10], ecx
movsx ecx, word [eax + ecx*2]
mov eax, dword [esp + 0x1c]
mov dword [eax + esi + 4], edx
mov dword [esp], esi
mov dword [eax + esi], ebp
cmp ecx, 9
jl 0x7798e0
lea eax, [ecx - 9]
mov esi, 8
cmp eax, 0x18
jb 0x779984
shr eax, 3
inc eax
mov dword [esp + 0x24], eax
and eax, 0xfffffffc
lea esi, [eax*8 + 8]
mov dword [esp + 0x28], ebp
movd xmm0, ebp
movd xmm1, edx
punpckldq xmm0, xmm1
pshufd xmm0, xmm0, 0x44
mov edi, dword [esp + 0x20]
mov ebp, dword [esp]
add edi, ebp
xor ebp, ebp
nop dword [eax]
movdqu xmmword [edi + ebp*8 - 0x10], xmm0
movdqu xmmword [edi + ebp*8], xmm0
add ebp, 4
cmp eax, ebp
jne 0x779960
cmp dword [esp + 0x24], eax
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 0x28]
je 0x7798e0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp]
add eax, edi
mov edi, dword [esp + 0xc]
nop word cs:[eax + eax]
mov dword [eax + esi], ebp
mov dword [eax + esi + 4], edx
add esi, 8
cmp esi, ecx
jl 0x7799a0
jmp 0x7798e0
mov ebp, ecx
mov edx, dword [esp + 0x14]
mov ecx, edx
shr ecx, 3
shr edx, 1
lea edi, [ecx + edx]
add edi, 3
xor ecx, ecx
xor edx, edx
jmp 0x7799db
inc edx
cmp edx, dword [esp + 0xc]
je 0x779ab6
mov esi, dword [esp + 4]
movsx esi, word [esi + edx*2]
test esi, esi
jle 0x7799d0
cmp si, 1
mov dword [esp + 0x10], esi
je 0x779a30
and esi, 0x7ffe
mov dword [esp], esi
xor esi, esi
nop dword [eax]
mov byte [ebp + ecx*4 + 6], dl
nop word cs:[eax + eax]
add ecx, edi
and ecx, ebx
cmp ecx, eax
ja 0x779a10
mov byte [ebp + ecx*4 + 6], dl
nop dword [eax]
add ecx, edi
and ecx, ebx
cmp ecx, eax
ja 0x779a20
add esi, 2
cmp esi, dword [esp]
jne 0x779a00
test byte [esp + 0x10], 1
je 0x7799d0
mov byte [ebp + ecx*4 + 6], dl
nop dword [eax + eax]
add ecx, edi
and ecx, ebx
cmp ecx, eax
ja 0x779a40
jmp 0x7799d0
mov eax, dword [esp + 0x18]
add eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
lea eax, [eax + ecx*2]
add eax, 3
mov dword [esp], eax
xor edx, edx
xor esi, esi
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 8]
nop word cs:[eax + eax]
mov edi, esi
and edi, ebx
mov eax, dword [esp]
movzx eax, byte [eax + edx - 1]
mov byte [ebp + edi*4 + 6], al
mov eax, dword [esp + 0x18]
add eax, esi
and eax, ebx
mov edi, ecx
mov ecx, dword [esp]
movzx ecx, byte [ecx + edx]
mov byte [ebp + eax*4 + 6], cl
mov ecx, edi
add esi, dword [esp + 4]
and esi, ebx
add edx, 2
cmp edx, edi
jb 0x779a80
jmp 0x779ac3
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x14]
jne 0x779b03
xor edx, edx
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x48]
nop dword [eax]
mov eax, ecx
movzx ecx, byte [ebx + edx*4 + 6]
movzx esi, word [ebp + ecx*2]
lea edi, [esi + 1]
mov word [ebp + ecx*2], di
bsr edi, esi
mov ecx, dword [esp + 0x44]
sub ecx, edi
mov byte [ebx + edx*4 + 7], cl
shl esi, cl
mov ecx, eax
sub esi, eax
mov word [ebx + edx*4 + 4], si
inc edx
cmp eax, edx
jne 0x779ad0
xor eax, eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret