Function at 0x417570
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [edi + 0x18]
mov ebp, dword [esi + 4]
mov ebx, dword [esi]
mov dword [esp + 0x10], esi
test ebp, ebp
jne 0x4175a1
mov eax, dword [esi + 0xc]
push edi
call eax
add esp, 4
test eax, eax
jne 0x41759c
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx eax, byte [ebx]
dec ebp
shl eax, 8
inc ebx
mov dword [esp + 0xc], eax
test ebp, ebp
jne 0x4175c7
mov ecx, dword [esi + 0xc]
push edi
call ecx
add esp, 4
test eax, eax
je 0x417593
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
mov eax, dword [esp + 0xc]
movzx edx, byte [ebx]
add eax, edx
sub eax, 2
dec ebp
inc ebx
mov dword [esp + 0xc], eax
test eax, eax
jle 0x4177b1
lea ecx, [ecx]
test ebp, ebp
jne 0x4175f6
mov eax, dword [esi + 0xc]
push edi
call eax
add esp, 4
test eax, eax
je 0x417593
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx esi, byte [ebx]
mov ecx, dword [edi]
mov dword [ecx + 0x14], 0x51
mov edx, dword [edi]
mov eax, esi
sar eax, 4
and esi, 0xf
mov dword [edx + 0x18], esi
mov ecx, dword [edi]
mov dword [ecx + 0x1c], eax
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
push 1
push edi
dec ebp
inc ebx
call eax
add esp, 8
cmp esi, 4
jl 0x417644
mov ecx, dword [edi]
mov dword [ecx + 0x14], 0x1f
mov edx, dword [edi]
mov dword [edx + 0x18], esi
mov eax, dword [edi]
mov ecx, dword [eax]
push edi
call ecx
add esp, 4
cmp dword [edi + esi*4 + 0xa4], 0
jne 0x417671
mov edx, dword [edi + 4]
mov eax, dword [edx]
push 0x84
push 0
push edi
call eax
mov dword [eax + 0x80], 0
add esp, 0xc
mov dword [edi + esi*4 + 0xa4], eax
mov ecx, dword [edi + esi*4 + 0xa4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0x449458
cmp dword [esp + 0x1c], 0
je 0x4176d7
test ebp, ebp
jne 0x4176a9
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
push edi
call edx
add esp, 4
test eax, eax
je 0x417593
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx esi, byte [ebx]
dec ebp
shl esi, 8
inc ebx
test ebp, ebp
jne 0x4176d0
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
push edi
call eax
add esp, 4
test eax, eax
je 0x417593
mov ebx, dword [ebp]
mov ebp, dword [ebp + 4]
movzx ecx, byte [ebx]
add esi, ecx
jmp 0x4176f8
test ebp, ebp
jne 0x4176f5
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
push edi
call edx
add esp, 4
test eax, eax
je 0x417593
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx esi, byte [ebx]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
add eax, 4
dec ebp
inc ebx
cmp eax, 0x449558
mov word [edx + ecx*2], si
mov dword [esp + 0x14], eax
jl 0x417684
mov eax, dword [edi]
cmp dword [eax + 0x68], 2
jl 0x41778b
mov esi, edx
add esi, 4
mov dword [esp + 0x18], 8
nop
mov eax, dword [edi]
movzx ecx, word [esi - 4]
add eax, 0x18
mov dword [eax], ecx
movzx edx, word [esi - 2]
mov dword [eax + 4], edx
movzx ecx, word [esi]
mov dword [eax + 8], ecx
movzx edx, word [esi + 2]
mov dword [eax + 0xc], edx
movzx ecx, word [esi + 4]
mov dword [eax + 0x10], ecx
movzx edx, word [esi + 6]
mov dword [eax + 0x14], edx
movzx ecx, word [esi + 8]
mov dword [eax + 0x18], ecx
movzx edx, word [esi + 0xa]
mov dword [eax + 0x1c], edx
mov eax, dword [edi]
mov dword [eax + 0x14], 0x5d
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push 2
push edi
call edx
add esp, 8
add esi, 0x10
sub dword [esp + 0x18], 1
jne 0x417730
sub dword [esp + 0xc], 0x41
cmp dword [esp + 0x1c], 0
je 0x41779c
sub dword [esp + 0xc], 0x40
cmp dword [esp + 0xc], 0
mov esi, dword [esp + 0x10]
jg 0x4175e0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4177c6
mov eax, dword [edi]
mov dword [eax + 0x14], 0xb
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call edx
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebp
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret