Function at 0x4706d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [ebp + 0x18]
mov ebx, dword [esi + 4]
test ebx, ebx
push edi
mov edi, dword [esi]
mov dword [esp + 0x10], esi
jne 0x4706fc
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x4708fa
mov edi, dword [esi]
mov ebx, dword [esi + 4]
xor eax, eax
mov ah, byte [edi]
dec ebx
inc edi
test ebx, ebx
mov dword [esp + 0x28], eax
jne 0x47071f
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x4708fa
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov eax, dword [esp + 0x28]
movzx ecx, byte [edi]
add eax, ecx
dec ebx
sub eax, 2
inc edi
test eax, eax
mov dword [esp + 0x28], eax
jle 0x4708d7
test ebx, ebx
jne 0x47074a
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x4708fa
mov edi, dword [esi]
mov ebx, dword [esi + 4]
movzx esi, byte [edi]
mov eax, dword [ebp]
mov ecx, esi
sar ecx, 4
mov dword [eax + 0x14], 0x51
push 1
and esi, 0xf
mov dword [eax + 0x18], esi
dec ebx
push ebp
inc edi
mov dword [esp + 0x24], ecx
mov dword [eax + 0x1c], ecx
call dword [eax + 4]
cmp esi, 4
jl 0x470786
mov eax, dword [ebp]
mov dword [eax + 0x14], 0x1f
push ebp
mov dword [eax + 0x18], esi
call dword [eax]
mov eax, dword [ebp + esi*4 + 0xa8]
test eax, eax
jne 0x47079e
push ebp
call fcn.00482ea0
mov dword [ebp + esi*4 + 0xa8], eax
mov edx, dword [ebp + esi*4 + 0xa8]
mov esi, 0x4bba58
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x470801
test ebx, ebx
mov esi, dword [esp + 0x10]
jne 0x4707d3
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x4708fa
mov edi, dword [esi]
mov ebx, dword [esi + 4]
xor eax, eax
mov ah, byte [edi]
dec ebx
inc edi
test ebx, ebx
mov dword [esp + 0x14], eax
jne 0x4707f2
push ebp
call dword [esi + 0xc]
test eax, eax
je 0x4708fa
mov edi, dword [esi]
mov ebx, dword [esi + 4]
movzx ecx, byte [edi]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add edx, ecx
jmp 0x47081d
test ebx, ebx
jne 0x47081a
mov ebx, dword [esp + 0x10]
push ebp
call dword [ebx + 0xc]
test eax, eax
je 0x4708fa
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
movzx edx, byte [edi]
mov ecx, dword [esi]
mov eax, dword [esp + 0x20]
dec ebx
add esi, 4
inc edi
cmp esi, 0x4bbb58
mov dword [esp + 0x14], edx
mov word [eax + ecx*2], dx
mov dword [esp + 0x18], esi
jl 0x4707b2
mov ecx, dword [ebp]
cmp dword [ecx + 0x68], 2
jl 0x4708a9
lea esi, [eax + 4]
mov dword [esp + 0x18], 8
movzx edx, word [esi - 4]
mov eax, dword [ebp]
mov dword [eax + 0x18], edx
movzx ecx, word [esi - 2]
mov dword [eax + 0x1c], ecx
movzx edx, word [esi]
mov dword [eax + 0x20], edx
movzx ecx, word [esi + 2]
mov dword [eax + 0x24], ecx
movzx edx, word [esi + 4]
mov dword [eax + 0x28], edx
movzx ecx, word [esi + 6]
mov dword [eax + 0x2c], ecx
movzx edx, word [esi + 8]
mov dword [eax + 0x30], edx
movzx ecx, word [esi + 0xa]
push 2
mov dword [eax + 0x34], ecx
push ebp
mov dword [eax + 0x14], 0x5d
call dword [eax + 4]
mov eax, dword [esp + 0x18]
add esi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x470854
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sub ecx, 0x41
test eax, eax
mov dword [esp + 0x28], ecx
je 0x4708c5
mov eax, ecx
sub eax, 0x40
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
test eax, eax
mov esi, dword [esp + 0x10]
jg 0x470735
test eax, eax
je 0x4708e6
mov eax, dword [ebp]
push ebp
mov dword [eax + 0x14], 0xb
call dword [eax]
mov dword [esi], edi
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4