Function at 0x1017ca90
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 0x1017cab7
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 0x1017cb56
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 0x1017cb22
push eax
push dword [esi + 0x1c]
push ebx
call fcn.102207f0
add esp, 0xc
add ebx, dword [esi + 0x20]
cmp dword [esp + 0x1c], 0
jne 0x1017ccb7
test byte [edi], 4
je 0x1017ccb7
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 0x1017ccbc
test byte [edi], 4
lea ecx, [ebp + 4]
mov edx, ecx
je 0x1017cb7d
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 0x1017cb86
mov eax, dword [esi]
mov dword [ebp], eax
mov dword [esp + 0x1c], ebx
test byte [edi], 4
je 0x1017cba8
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 0x1017cbad
mov eax, dword [esi + 4]
mov dword [ecx], eax
test byte [edi], 4
lea ecx, [edx + 4]
mov edx, ecx
je 0x1017cbd4
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 0x1017cbd9
mov eax, dword [esi + 8]
mov dword [ecx], eax
test byte [edi], 4
lea ecx, [edx + 4]
mov edx, ecx
je 0x1017cc00
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 0x1017cc05
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
test byte [edi], 4
lea ecx, [edx + 4]
mov edx, ecx
je 0x1017cc2c
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 0x1017cc31
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
test byte [edi], 4
lea ecx, [edx + 4]
mov edx, ecx
je 0x1017cc58
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 0x1017cc5d
mov eax, dword [esi + 0x14]
mov dword [ecx], eax
lea ecx, [edx + 4]
mov ebx, ecx
add ebx, 4
test byte [edi], 4
je 0x1017cc87
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 0x1017cc8c
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
test byte [edi], 4
mov ecx, ebx
je 0x1017cb03
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 0x1017cb08
mov eax, dword [esi + 0x3c]
mov dword [ebx], eax
mov eax, dword [esi + 0x3c]
add ebx, 4
test eax, eax
je 0x1017ccd6
push eax
push dword [esi + 0x38]
push ebx
call fcn.102207f0
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