Function at 0x518650
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov esi, ecx
mov eax, edx
sub eax, ecx
sar eax, 3
mov bl, 1
cmp eax, 5
jbe switch.0x005186d1
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
cmp ecx, eax
ja 0x51880c
cmp edx, ecx
ja 0x51869e
lea eax, [esi + 0x18]
cmp eax, edi
je 0x51872e
lea ebx, [esi + 0x10]
mov dword [ebp - 0x14], 0
mov edx, 0x10
jmp 0x5187ca
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [esi + 0x10]
mov dword [esi + 8], ebx
mov dword [ebp - 0x14], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
cmp eax, ebx
jae 0x51867f
jmp 0x5189c0
mov eax, dword [esi]
cmp dword [edi - 8], eax
jbe case.0x5186d1.0
jmp 0x518889
jmp dword [eax*4 + 0x6df1ac]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
cmp ecx, eax
ja 0x5188a0
cmp edx, ecx
ja 0x51873a
mov eax, dword [esi + 0x10]
cmp dword [edi - 8], eax
jbe 0x51872e
mov ecx, dword [esi + 0x14]
movsd xmm0, qword [edi - 8]
movsd qword [esi + 0x10], xmm0
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
mov edx, dword [esi + 8]
cmp dword [esi + 0x10], edx
jbe 0x51872e
mov eax, dword [esi]
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ebx
cmp eax, edi
jb 0x5187f9
mov bl, 1
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [esi + 0x10]
mov dword [esi + 8], ebx
mov dword [ebp - 0x14], edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
cmp eax, ebx
jae 0x5186ec
jmp 0x5189d6
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov ebx, edx
mov dword [ebp - 0x18], esi
mov ecx, ebx
mov ebx, dword [esi + ebx]
mov dword [ebp - 0x10], ebx
mov ebx, dword [esi + ecx + 4]
mov dword [esi + ecx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [esi + ecx + 8], ebx
test ecx, ecx
je 0x5187a4
lea ebx, [ecx - 8]
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
cmp dword [ebx + ecx - 8], esi
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
jb 0x518771
mov ebx, dword [ebp - 0x1c]
mov dword [esi + ecx], ebx
mov ebx, dword [ebp - 0x20]
mov dword [esi + ecx + 4], ebx
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 8
jne 0x5187d0
add eax, 8
cmp eax, edi
sete bl
jmp case.0x5186d1.0
mov ecx, dword [eax]
cmp ecx, dword [ebx]
ja 0x518761
mov ebx, eax
lea ecx, [eax + 8]
add edx, 8
mov eax, ecx
cmp ecx, edi
jne 0x5187ca
jmp 0x51872e
add edi, 0xfffffff8
lea edx, [esi + 8]
mov ecx, esi
push edi
call fcn.006578c0
add esp, 4
jmp case.0x5186d1.0
mov edx, dword [esi + 4]
mov dword [esi], edi
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jmp 0x51872e
movzx ebx, word [esi + 4]
mov word [ebp - 0x10], bx
mov bh, byte [esi + 6]
mov dword [ebp - 0x18], esi
mov bl, byte [esi + 7]
mov byte [ebp - 0x14], bl
cmp edx, ecx
ja 0x518862
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi], ecx
mov dword [esi + 8], eax
movzx ecx, word [ebp - 0x10]
mov word [esi + 0xc], cx
mov byte [esi + 0xe], bh
mov cl, byte [ebp - 0x14]
mov byte [esi + 0xf], cl
cmp edx, eax
jbe 0x51867f
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
jmp 0x518870
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0x10]
mov word [esi + 0x14], ax
mov byte [esi + 0x16], bh
mov al, byte [ebp - 0x14]
mov byte [esi + 0x17], al
jmp 0x51867f
mov ecx, dword [esi + 4]
movsd xmm0, qword [edi - 8]
movsd qword [esi], xmm0
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
jmp case.0x5186d1.0
movzx ebx, word [esi + 4]
mov word [ebp - 0x10], bx
mov bh, byte [esi + 6]
mov dword [ebp - 0x18], esi
mov bl, byte [esi + 7]
mov byte [ebp - 0x14], bl
cmp edx, ecx
ja 0x5188f6
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi], ecx
mov dword [esi + 8], eax
movzx ecx, word [ebp - 0x10]
mov word [esi + 0xc], cx
mov byte [esi + 0xe], bh
mov cl, byte [ebp - 0x14]
mov byte [esi + 0xf], cl
cmp edx, eax
jbe 0x5186ec
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
jmp 0x518904
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0x10]
mov word [esi + 0x14], ax
mov byte [esi + 0x16], bh
mov al, byte [ebp - 0x14]
mov byte [esi + 0x17], al
jmp 0x5186ec
lea eax, [esi + 0x18]
lea ebx, [esi + 0x10]
lea edx, [esi + 8]
mov ecx, esi
push eax
push ebx
call fcn.006579a0
add esp, 8
mov eax, dword [esi + 0x18]
cmp dword [edi - 8], eax
jbe 0x51872e
mov ebx, esi
mov ecx, dword [ebx + 0x1c]
movsd xmm0, qword [edi - 8]
movsd qword [ebx + 0x18], xmm0
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
mov edi, dword [ebx + 0x10]
cmp dword [ebx + 0x18], edi
jbe 0x51872e
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x10], ecx
mov esi, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x10], ecx
mov dword [ebp - 0x14], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], edi
mov esi, dword [ebp - 0x10]
mov dword [ebx + 0x1c], esi
cmp eax, ecx
jae 0x51872e
mov esi, dword [ebx]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebx + 8], ecx
mov edi, dword [ebp - 0x14]
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], eax
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x14], edx
cmp esi, ecx
jae 0x51872e
mov edx, dword [ebx + 4]
mov dword [ebx], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edx
jmp 0x51872e
mov ecx, dword [esi + 4]
mov dword [esi], ebx
mov edx, dword [ebp - 0x14]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jmp 0x51867f
mov ecx, dword [esi + 4]
mov dword [esi], ebx
mov edx, dword [ebp - 0x14]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jmp 0x5186ec