Function at 0x485860
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov eax, edx
sub eax, ecx
sar eax, 3
mov bl, 1
cmp eax, 5
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], edx
jbe 0x48599c
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ebx, dword [edi + 0x10]
cmp edx, eax
ja 0x485a40
cmp ebx, edx
ja 0x485942
lea eax, [edi + 0x18]
mov esi, dword [ebp - 0x1c]
cmp eax, esi
je 0x485936
lea ebx, [edi + 0x10]
mov dword [ebp - 0x18], 0
mov edx, 0x18
jmp 0x4858ce
mov ebx, eax
lea ecx, [eax + 8]
add edx, 8
mov eax, ecx
cmp ecx, esi
je 0x485936
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jbe 0x4858c0
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov ecx, edx
mov esi, dword [edi + ecx - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + ecx - 4]
mov ebx, dword [ebp - 0x10]
mov dword [ebx + ecx + 4], edi
mov edi, dword [ebp - 0x10]
mov dword [edi + ecx], esi
cmp ecx, 8
je 0x485a39
lea esi, [ecx - 8]
mov ebx, dword [ebp - 0x14]
cmp dword [edi + ecx - 0x10], ebx
mov ecx, esi
jb 0x4858e1
add esi, edi
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, 8
mov esi, dword [ebp - 0x1c]
jne 0x4858c0
add eax, 8
cmp eax, esi
sete bl
jmp case.0x48599e.0
mov bl, 1
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x14]
mov ebx, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov dword [edi + 8], esi
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], ebx
cmp eax, esi
jae 0x48589b
mov edx, dword [edi + 4]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
jmp 0x48589b
mov ecx, dword [edi + 0x14]
mov ebx, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov dword [edi + 8], esi
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], ebx
cmp eax, esi
jae 0x4859b9
jmp 0x485bf2
mov eax, dword [edi]
cmp dword [esi - 8], eax
jbe case.0x48599e.0
jmp 0x485b3e
mov esi, edx
jmp dword [eax*4 + 0x5339fc]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ebx, dword [edi + 0x10]
cmp edx, eax
ja 0x485aca
cmp ebx, edx
ja 0x485972
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], eax
jbe 0x485936
mov ecx, dword [edi + 0x14]
movsd xmm0, qword [edx - 8]
movsd qword [edi + 0x10], xmm0
mov dword [edx - 8], eax
mov dword [edx - 4], ecx
mov edx, dword [edi + 8]
cmp dword [edi + 0x10], edx
mov bl, 1
jbe case.0x48599e.0
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x14]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], edi
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp eax, esi
jae case.0x48599e.0
mov edx, dword [edi + 4]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
jmp case.0x48599e.0
mov esi, edi
jmp 0x485912
movzx ecx, word [edi + 4]
mov word [ebp - 0x18], cx
mov ch, byte [edi + 6]
mov cl, byte [edi + 7]
mov byte [ebp - 0x14], cl
cmp ebx, edx
ja 0x485a8d
mov edi, dword [ebp - 0x10]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov dword [edi + 4], esi
mov dword [edi], edx
mov dword [edi + 8], eax
movzx edx, word [ebp - 0x18]
mov word [edi + 0xc], dx
mov byte [edi + 0xe], ch
mov cl, byte [ebp - 0x14]
mov byte [edi + 0xf], cl
cmp ebx, eax
jbe 0x48589b
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
jmp 0x485a9b
mov edi, dword [ebp - 0x10]
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov dword [edi + 4], esi
mov dword [edi], edx
mov dword [edi + 0x10], eax
movzx eax, word [ebp - 0x18]
mov word [edi + 0x14], ax
mov byte [edi + 0x16], ch
mov al, byte [ebp - 0x14]
mov byte [edi + 0x17], al
jmp 0x48589b
add esi, 0xfffffff8
lea edx, [edi + 8]
mov ecx, edi
push esi
call fcn.0050bb00
add esp, 4
jmp case.0x48599e.0
movzx ecx, word [edi + 4]
mov word [ebp - 0x18], cx
mov ch, byte [edi + 6]
mov cl, byte [edi + 7]
mov byte [ebp - 0x14], cl
cmp ebx, edx
ja 0x485b17
mov edi, dword [ebp - 0x10]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov dword [edi + 4], esi
mov dword [edi], edx
mov dword [edi + 8], eax
movzx edx, word [ebp - 0x18]
mov word [edi + 0xc], dx
mov byte [edi + 0xe], ch
mov cl, byte [ebp - 0x14]
mov byte [edi + 0xf], cl
cmp ebx, eax
jbe 0x4859b9
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
jmp 0x485b25
mov edi, dword [ebp - 0x10]
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov dword [edi + 4], esi
mov dword [edi], edx
mov dword [edi + 0x10], eax
movzx eax, word [ebp - 0x18]
mov word [edi + 0x14], ax
mov byte [edi + 0x16], ch
mov al, byte [ebp - 0x14]
mov byte [edi + 0x17], al
jmp 0x4859b9
mov ecx, dword [edi + 4]
movsd xmm0, qword [esi - 8]
movsd qword [edi], xmm0
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
jmp case.0x48599e.0
lea eax, [edi + 0x18]
mov ebx, esi
lea esi, [edi + 0x10]
lea edx, [edi + 8]
mov ecx, edi
push eax
push esi
call fcn.0050bbe0
add esp, 8
mov eax, dword [edi + 0x18]
cmp dword [ebx - 8], eax
jbe 0x485936
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x1c]
mov esi, dword [ebp - 0x1c]
movsd xmm0, qword [esi - 8]
movsd qword [edx + 0x18], xmm0
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
mov esi, dword [edx + 0x10]
cmp dword [edx + 0x18], esi
jbe 0x485936
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], edi
cmp edx, ecx
jae 0x485936
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebx]
mov edi, dword [ebx + 0xc]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edi
cmp esi, ecx
jae 0x485936
mov edi, dword [ebp - 0x10]
mov edx, dword [edi + 4]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [edi + 8], esi
mov dword [edi + 0xc], edx
jmp 0x485936
mov edx, dword [edi + 4]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
jmp 0x4859b9