Function at 0x40a800
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov dword [esp + 0x20], eax
mov eax, ecx
mov dword [esp + 0x24], edx
sub eax, edx
mov dword [esp + 0x10], ecx
cmp eax, 7
jle 0x40a944
cmp ecx, edx
mov esi, ecx
jle 0x40aaa8
lea eax, [edx - 1]
mov edi, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], edi
lea esi, [eax + esi*8]
lea eax, [eax + edi*8]
mov ebx, dword [esi]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x14]
cmp edx, dword [eax]
jae 0x40a899
mov edi, dword [esp + 0x20]
add esi, 1
mov ebp, dword [eax + 4]
lea edx, [edi + esi*8]
mov edi, dword [edx]
movzx ebx, word [edx + 4]
movzx ecx, byte [edx + 7]
mov dword [esp + 0x18], edi
mov edi, dword [eax]
mov word [esp + 0x1c], bx
movzx ebx, byte [edx + 6]
mov dword [edx + 4], ebp
mov dword [edx], edi
movzx edx, word [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov byte [eax + 7], cl
mov byte [eax + 6], bl
mov dword [eax], edi
mov word [eax + 4], dx
add dword [esp + 0xc], 1
mov ebx, dword [esp + 0x10]
add eax, 8
mov edi, dword [esp + 0xc]
cmp edi, ebx
jl 0x40a851
mov eax, dword [esp + 0x20]
lea edx, [esi + 1]
lea eax, [eax + edx*8]
movzx ecx, byte [eax + 7]
movzx edi, word [eax + 4]
mov ebp, dword [eax]
movzx ebx, byte [eax + 6]
mov byte [esp + 0x18], cl
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ebp
mov word [esp + 0x14], di
mov ebp, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [eax + 4], ebp
mov dword [eax], edi
mov byte [ecx + 6], bl
movzx ebx, byte [esp + 0x18]
movzx edi, word [esp + 0x14]
mov ebp, dword [esp + 0xc]
mov byte [ecx + 7], bl
mov ebx, dword [esp + 0x10]
mov word [ecx + 4], di
mov edi, dword [esp + 0x24]
mov dword [ecx], ebp
mov ecx, edx
mov eax, ebx
sub ecx, edi
sub eax, edx
cmp ecx, eax
jge 0x40aab0
mov eax, dword [esp + 0x20]
mov edx, edi
mov ecx, esi
call fcn.0040a800
lea eax, [esi + 2]
mov edx, eax
mov dword [esp + 0x24], eax
cmp edx, ebx
jge 0x40aaa8
lea eax, [esi + 1]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
jmp 0x40a835
mov edx, eax
mov eax, dword [esp + 0x20]
test edx, edx
lea eax, [eax + ebx*8]
mov dword [esp + 0x18], eax
jle 0x40aaa8
lea esi, [edx - 7]
mov dword [esp + 0x1c], esi
mov esi, 0xfffffff9
movzx ebx, word [eax + 0xc]
mov ecx, dword [eax + 8]
lea edx, [esi + 7]
cmp ecx, dword [eax]
mov word [esp + 0xc], bx
movzx ebx, byte [eax + 0xe]
mov byte [esp + 0x10], bl
movzx ebx, byte [eax + 0xf]
mov byte [esp + 0x14], bl
jbe 0x40aae0
mov edi, dword [eax]
mov ebp, dword [eax + 4]
lea edx, [esi + 6]
cmp edx, 0xffffffff
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebp
je 0x40aaf0
cmp ecx, dword [eax - 8]
jbe 0x40aae0
mov edi, dword [eax - 8]
mov ebp, dword [eax - 4]
lea edx, [esi + 5]
cmp edx, 0xffffffff
mov dword [eax], edi
mov dword [eax + 4], ebp
je 0x40aaf0
cmp ecx, dword [eax - 0x10]
jbe 0x40aae0
mov edi, dword [eax - 0x10]
mov ebp, dword [eax - 0xc]
lea edx, [esi + 4]
cmp edx, 0xffffffff
mov dword [eax - 8], edi
mov dword [eax - 4], ebp
je 0x40aaf0
cmp ecx, dword [eax - 0x18]
jbe 0x40aae0
mov edi, dword [eax - 0x18]
mov ebp, dword [eax - 0x14]
lea edx, [esi + 3]
cmp edx, 0xffffffff
mov dword [eax - 0x10], edi
mov dword [eax - 0xc], ebp
je 0x40aaf0
cmp ecx, dword [eax - 0x20]
jbe 0x40aae0
mov edi, dword [eax - 0x20]
mov ebp, dword [eax - 0x1c]
lea edx, [esi + 2]
cmp edx, 0xffffffff
mov dword [eax - 0x18], edi
mov dword [eax - 0x14], ebp
je 0x40aaf0
cmp ecx, dword [eax - 0x28]
jbe 0x40aae0
mov edi, dword [eax - 0x28]
mov ebp, dword [eax - 0x24]
lea ebx, [esi + 1]
cmp ebx, 0xffffffff
mov dword [eax - 0x20], edi
mov dword [eax - 0x1c], ebp
je 0x40aafa
cmp ecx, dword [eax - 0x30]
jbe 0x40aad1
mov edi, dword [eax - 0x30]
mov ebp, dword [eax - 0x2c]
cmp esi, 0xffffffff
mov dword [eax - 0x28], edi
mov dword [eax - 0x24], ebp
je 0x40aafa
cmp ecx, dword [eax - 0x38]
mov edx, esi
jbe 0x40aad3
mov esi, dword [eax - 0x38]
mov edi, dword [eax - 0x34]
xor edx, edx
mov dword [eax - 0x30], esi
mov dword [eax - 0x2c], edi
add edx, dword [esp + 0x18]
movzx esi, word [esp + 0xc]
add eax, 8
cmp ebx, dword [esp + 0x1c]
mov dword [edx], ecx
movzx ecx, byte [esp + 0x10]
mov word [edx + 4], si
mov esi, ebx
mov byte [edx + 6], cl
movzx ecx, byte [esp + 0x14]
mov byte [edx + 7], cl
jne 0x40a965
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea edx, [esi + 2]
mov ecx, ebx
call fcn.0040a800
cmp esi, dword [esp + 0x24]
jle 0x40aaa8
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
jmp 0x40a835
mov edx, ebx
lea edx, [edx*8 + 8]
jmp 0x40aa7a
lea ebx, [esi + 1]
lea edx, [edx*8 + 8]
jmp 0x40aa7a
xor edx, edx
lea ebx, [esi + 1]
jmp 0x40aa7a
xor edx, edx
jmp 0x40aa7a