Function at 0x10476420
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 2], 0x1d
jne 0x104766a4
test edx, edx
je 0x104766a0
movzx eax, byte [esi + 1]
and eax, 7
mov dword [edx + 0x124], eax
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movsx eax, byte [esi + 1]
sar eax, 0x1f
and eax, 0x384
add eax, 0x64
imul ecx, eax
mov dword [edx + 0x128], ecx
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movsx eax, byte [esi + 1]
sar eax, 0x1f
and eax, 0x384
add eax, 0x64
imul ecx, eax
mov dword [edx + 0x12c], ecx
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 7]
shl cx, 8
or cx, ax
mov word [edx + 0x130], cx
movzx ecx, byte [esi + 0xa]
movzx eax, byte [esi + 9]
shl cx, 8
or cx, ax
mov word [edx + 0x132], cx
movzx eax, byte [esi + 0xb]
and eax, 7
mov dword [edx + 0x134], eax
movzx eax, byte [esi + 0xb]
shr al, 7
mov byte [edx + 0x161], al
movzx eax, byte [esi + 0xb]
shr eax, 6
and eax, 1
mov dword [edx + 0x138], eax
movzx eax, byte [esi + 0xd]
and al, 0xf
movzx ecx, al
movzx eax, byte [esi + 0xc]
shl cx, 8
or cx, ax
mov word [edx + 0x13c], cx
movzx eax, byte [esi + 0xd]
movzx ecx, byte [esi + 0xe]
shr al, 4
shl cx, 4
movzx eax, al
or cx, ax
mov word [edx + 0x13e], cx
movzx eax, byte [esi + 0x10]
and al, 0xf
movzx ecx, al
movzx eax, byte [esi + 0xf]
shl cx, 8
or cx, ax
mov word [edx + 0x140], cx
movzx eax, byte [esi + 0x10]
movzx ecx, byte [esi + 0x11]
shr al, 4
shl cx, 4
movzx eax, al
or cx, ax
mov word [edx + 0x142], cx
movzx eax, byte [esi + 0x13]
and al, 0xf
movzx ecx, al
movzx eax, byte [esi + 0x12]
shl cx, 8
or cx, ax
mov word [edx + 0x144], cx
movzx ecx, byte [esi + 0x14]
movzx eax, byte [esi + 0x13]
shl cx, 4
shr al, 4
movzx eax, al
or cx, ax
mov word [edx + 0x146], cx
movzx eax, byte [esi + 0x16]
and al, 0xf
movzx ecx, al
movzx eax, byte [esi + 0x15]
shl cx, 8
or cx, ax
mov word [edx + 0x148], cx
movzx eax, byte [esi + 0x16]
movzx ecx, byte [esi + 0x17]
shl cx, 4
shr al, 4
movzx eax, al
or cx, ax
mov word [edx + 0x14a], cx
movzx ecx, byte [esi + 0x19]
movzx eax, byte [esi + 0x18]
shl cx, 8
or cx, ax
mov word [edx + 0x150], cx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl cx, 8
or cx, ax
mov word [edx + 0x152], cx
movzx ecx, byte [esi + 0x1d]
movzx eax, byte [esi + 0x1c]
shl cx, 8
or cx, ax
mov word [edx + 0x154], cx
mov al, byte [esi + 0xb]
and al, 0x18
jne 0x1047660b
xor eax, eax
jmp 0x10476618
cmp al, 8
jne 0x104766a4
mov eax, 1
mov dword [edx + 0x14c], eax
mov al, byte [esi + 0x1e]
and al, 7
cmp al, 1
jne 0x1047662d
or byte [edx + 0x156], al
mov al, byte [esi + 0x1e]
and al, 7
cmp al, 2
jne 0x1047663c
or byte [edx + 0x156], al
mov al, byte [esi + 0x1e]
and al, 7
cmp al, 3
jne 0x1047664c
or byte [edx + 0x156], 4
mov al, byte [esi + 0x1e]
and al, 7
cmp al, 4
jne 0x1047665c
or byte [edx + 0x156], 8
mov al, byte [esi + 0x1e]
and al, 7
cmp al, 5
jne 0x1047666c
or byte [edx + 0x156], 0x20
movzx eax, byte [esi + 0x1e]
shr eax, 4
and eax, 7
cmp dword [edx + 0x124], 1
mov dword [edx + 0x15c], eax
jne 0x10476691
mov al, byte [esi + 0x1e]
shr al, 7
mov byte [edx + 0x160], al
movzx eax, byte [esi + 0x1f]
add ax, 0x64
mov word [edx + 0x158], ax
xor eax, eax
pop esi
ret
mov eax, 0x80000000
pop esi
ret