Function at 0x807b80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x3c]
add eax, 0x24
add eax, dword [esi + 0x20]
cmp dword [esp + 0x20], eax
jae 0x807ba7
pop edi
pop esi
mov eax, 0xc
pop ebp
ret
push ebx
xor ebx, ebx
add edi, 0x9c
cmp dword [esp + 0x18], 5
mov dword [esp + 0x1c], ebx
jae 0x807c46
mov eax, dword [esi]
lea ebx, [ebp + 0x1c]
mov dword [ebp], eax
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x1c], 1
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0x20]
mov dword [ebx], eax
mov eax, dword [esi + 0x20]
add ebx, 4
test eax, eax
je 0x807c12
push eax
push dword [esi + 0x1c]
push ebx
call fcn.0086cdf0
add esp, 0xc
add ebx, dword [esi + 0x20]
cmp dword [esp + 0x1c], 0
jne 0x807da7
test byte [edi], 4
je 0x807da7
movzx eax, byte [esi + 0x3f]
mov byte [ebx], al
movzx eax, byte [esi + 0x3e]
mov byte [ebx + 1], al
movzx eax, byte [esi + 0x3d]
mov byte [ebx + 2], al
movzx eax, byte [esi + 0x3c]
mov byte [ebx + 3], al
jmp 0x807dac
test byte [edi], 4
lea ecx, [ebp + 4]
mov edx, ecx
je 0x807c6d
movzx eax, byte [esi + 3]
mov byte [ebp], al
movzx eax, byte [esi + 2]
mov byte [ebp + 1], al
movzx eax, byte [esi + 1]
mov byte [ebp + 2], al
movzx eax, byte [esi]
mov byte [ebp + 3], al
jmp 0x807c76
mov eax, dword [esi]
mov dword [ebp], eax
mov dword [esp + 0x1c], ebx
test byte [edi], 4
je 0x807c98
movzx eax, byte [esi + 7]
mov byte [ecx], al
movzx eax, byte [esi + 6]
mov byte [ecx + 1], al
movzx eax, byte [esi + 5]
mov byte [ecx + 2], al
movzx eax, byte [esi + 4]
mov byte [ecx + 3], al
jmp 0x807c9d
mov eax, dword [esi + 4]
mov dword [ecx], eax
test byte [edi], 4
lea ecx, [edx + 4]
mov edx, ecx
je 0x807cc4
movzx eax, byte [esi + 0xb]
mov byte [ecx], al
movzx eax, byte [esi + 0xa]
mov byte [ecx + 1], al
movzx eax, byte [esi + 9]
mov byte [ecx + 2], al
movzx eax, byte [esi + 8]
mov byte [ecx + 3], al
jmp 0x807cc9
mov eax, dword [esi + 8]
mov dword [ecx], eax
test byte [edi], 4
lea ecx, [edx + 4]
mov edx, ecx
je 0x807cf0
movzx eax, byte [esi + 0xf]
mov byte [ecx], al
movzx eax, byte [esi + 0xe]
mov byte [ecx + 1], al
movzx eax, byte [esi + 0xd]
mov byte [ecx + 2], al
movzx eax, byte [esi + 0xc]
mov byte [ecx + 3], al
jmp 0x807cf5
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
test byte [edi], 4
lea ecx, [edx + 4]
mov edx, ecx
je 0x807d1c
movzx eax, byte [esi + 0x13]
mov byte [ecx], al
movzx eax, byte [esi + 0x12]
mov byte [ecx + 1], al
movzx eax, byte [esi + 0x11]
mov byte [ecx + 2], al
movzx eax, byte [esi + 0x10]
mov byte [ecx + 3], al
jmp 0x807d21
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
test byte [edi], 4
lea ecx, [edx + 4]
mov edx, ecx
je 0x807d48
movzx eax, byte [esi + 0x17]
mov byte [ecx], al
movzx eax, byte [esi + 0x16]
mov byte [ecx + 1], al
movzx eax, byte [esi + 0x15]
mov byte [ecx + 2], al
movzx eax, byte [esi + 0x14]
mov byte [ecx + 3], al
jmp 0x807d4d
mov eax, dword [esi + 0x14]
mov dword [ecx], eax
lea ecx, [edx + 4]
mov ebx, ecx
add ebx, 4
test byte [edi], 4
je 0x807d77
movzx eax, byte [esi + 0x1b]
mov byte [ecx], al
movzx eax, byte [esi + 0x1a]
mov byte [ecx + 1], al
movzx eax, byte [esi + 0x19]
mov byte [ecx + 2], al
movzx eax, byte [esi + 0x18]
mov byte [ecx + 3], al
jmp 0x807d7c
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
test byte [edi], 4
mov ecx, ebx
je 0x807bf3
movzx eax, byte [esi + 0x23]
mov byte [ecx], al
movzx eax, byte [esi + 0x22]
mov byte [ecx + 1], al
movzx eax, byte [esi + 0x21]
mov byte [ecx + 2], al
movzx eax, byte [esi + 0x20]
mov byte [ecx + 3], al
jmp 0x807bf8
mov eax, dword [esi + 0x3c]
mov dword [ebx], eax
mov eax, dword [esi + 0x3c]
add ebx, 4
test eax, eax
je 0x807dc6
push eax
push dword [esi + 0x38]
push ebx
call fcn.0086cdf0
add esp, 0xc
add ebx, dword [esi + 0x3c]
mov eax, dword [esp + 0x28]
sub ebx, ebp
mov dword [eax], ebx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret