Function at 0x1017cf30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
movzx eax, word [edi + 4]
movzx esi, byte [edi + 6]
mov ebp, eax
mov ecx, eax
push ebp
mov dword [esp + 0x30], ecx
call fcn.10179380
add esi, 0xffffffef
mov dword [0x102047a4], ebp
add esp, 4
cmp esi, 0x1b
ja case.0x1017cf6f.18
movzx eax, byte [esi + 0x1017d480]
jmp dword [eax*4 + 0x1017d440]
mov eax, dword [esp + 0x30]
mov esi, dword [edi + 8]
mov ebx, dword [eax]
push ebx
test esi, esi
je 0x1017cf91
call fcn.101791a0
mov dword [eax + 0x14], esi
jmp 0x1017d422
call fcn.10178ff0
xor ebx, ebx
jmp 0x1017d422
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 8]
push ebp
push dword [esi + 0x14]
mov dword [esp + 0x34], eax
lea eax, [edi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x10]
push ebx
push eax
push dword [esi]
call fcn.10176e70
mov edx, dword [esi + 4]
mov ecx, eax
test edx, edx
je 0x1017cfda
cmp dword [esp + 0x2c], 0xc
jbe 0x1017cfda
mov ecx, dword [ebx + edi + 0x1c]
mov dword [edx + 0xc], ecx
mov ecx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1017cfe3
mov dword [eax], ecx
xor ebx, ebx
test ebp, ebp
jmp 0x1017d41f
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 4]
cmp eax, edx
jbe 0x1017d009
cmp word [esp + 0x2c], bx
mov eax, edx
mov edx, 5
cmove ebp, edx
push eax
lea eax, [edi + 0xc]
push eax
push dword [ecx]
call fcn.101b6150
add esp, 0xc
mov ebx, dword [edi + 8]
jmp 0x1017d422
mov ecx, dword [esp + 0x30]
mov ebx, dword [edi + 8]
mov edx, dword [ecx + 4]
lea esi, [ebx + 1]
and edx, 0x10000
je 0x1017d03c
lea esi, [ebx*2 + 2]
xor eax, eax
test edx, edx
setne al
cmp esi, dword [ecx + 8]
jbe 0x1017d05b
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x1017d422
push eax
push ebx
lea eax, [edi + 0xc]
push eax
push dword [ecx]
call fcn.1017de90
mov ebx, dword [edi + 8]
jmp 0x1017d422
mov ecx, dword [esp + 0x30]
lea ebx, [edi + 0xc]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 8]
cmp eax, edx
jbe 0x1017d091
cmp word [esp + 0x2c], 0
mov eax, edx
mov edx, 5
cmove ebp, edx
push eax
push ebx
push dword [ecx]
call fcn.101b6150
mov ebx, dword [edi + 8]
add esp, 0xc
jmp 0x1017d422
mov eax, dword [esp + 0x30]
mov esi, dword [edi + 8]
mov ebx, dword [eax]
push ebx
test esi, esi
je 0x1017cf91
call fcn.101791a0
mov dword [eax + 0xc], esi
jmp 0x1017d422
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 4]
mov ecx, ebx
mov edx, dword [eax + 8]
and ecx, 0xf0
mov esi, dword [eax]
lea eax, [edi + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jne 0x1017d1bb
mov edi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov ebx, 0x24
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
movzx eax, word [edi + 0x18]
mov word [esi + 0x18], ax
movzx eax, word [edi + 0x1a]
mov word [esi + 0x1a], ax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
cmp dword [0x102047c8], 0
je 0x1017d155
or edx, 0x10000
mov dword [esi], edx
mov eax, dword [esp + 0x10]
cmp eax, 0x24
jbe 0x1017d1b2
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jb 0x1017d1b2
cmp dword [esp + 0x14], eax
jb 0x1017d1cc
shr edx, 0x10
lea ebx, [esi + 0x24]
and edx, 1
add eax, 0xffffffdc
push edx
push eax
lea eax, [ecx + edi]
push eax
push ebx
call fcn.1017de90
test dword [esp + 0x1c], 0x80000
mov ebx, dword [esp + 0x10]
mov eax, dword [esi]
je 0x1017d1a3
or eax, 0x80000
mov dword [esi + 0xc], 0x24
mov dword [esi], eax
jmp 0x1017d1cc
and eax, 0xfff7ffff
mov dword [esi], eax
lea eax, [esi + 0x24]
mov dword [esi + 0xc], eax
jmp 0x1017d1cc
mov dword [esi + 0xc], 0
jmp 0x1017d1cc
push ebx
push 0
push edx
push esi
push ecx
push eax
call fcn.1017d4a0
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
jbe 0x1017d1e2
cmp word [esp + 0x2c], 0
mov ecx, 5
cmove ebp, ecx
cmp dword [esp + 0x24], 0
jne 0x1017d422
cmp eax, 8
jb 0x1017d422
push dword [esi + 4]
call fcn.10179250
mov dword [esi + 4], eax
jmp 0x1017d422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
add edi, 0x10
mov edx, dword [eax + 8]
cmp ecx, edx
ja 0x1017d222
cmp word [esp + 0x2c], 0
je 0x1017d22b
mov ecx, edx
mov ebx, edx
mov ebp, 5
cmp ecx, edx
cmova ecx, edx
push ecx
push edi
push dword [eax]
call fcn.101b6150
add esp, 0xc
jmp 0x1017d422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp ecx, edx
jbe 0x1017d267
cmp word [esp + 0x2c], 0
jne 0x1017d267
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.101b6150
add esp, 0xc
jmp 0x1017d422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp ecx, edx
jbe 0x1017d2a3
cmp word [esp + 0x2c], 0
jne 0x1017d2a3
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.101b6150
add esp, 0xc
jmp 0x1017d422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp ecx, edx
jbe 0x1017d2df
cmp word [esp + 0x2c], 0
jne 0x1017d2df
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.101b6150
add esp, 0xc
jmp 0x1017d422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
add edi, 0x10
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, edx
and eax, 0xf0
je 0x1017d35d
cmp eax, 0x10
je 0x1017d35d
cmp eax, 0x20
jne 0x1017d422
and edx, 0x10000
lea ebx, [ecx + ecx]
cmove ebx, ecx
cmp ebx, esi
jbe 0x1017d33a
lea ebp, [eax - 0x1b]
jmp 0x1017d422
test ecx, ecx
je 0x1017d422
xor eax, eax
test edx, edx
setne al
push eax
lea eax, [ecx - 1]
push eax
push edi
push dword [esp + 0x20]
call fcn.1017de90
jmp 0x1017d422
push edx
push 0
push esi
push dword [esp + 0x20]
push ecx
push edi
call fcn.1017d4a0
mov ebx, eax
add esp, 0x18
cmp ebx, esi
jbe 0x1017d422
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x1017d422
mov eax, dword [esp + 0x30]
mov ebx, dword [edi + 0xc]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 8]
add edi, 0x10
and eax, 0xf0
je 0x1017d3c1
cmp eax, 0x30
jne 0x1017d422
push ecx
push edi
push edx
call fcn.101b6150
add esp, 0xc
jmp 0x1017d422
push dword [esp + 0x24]
push 0
push esi
push edx
push ecx
push edi
call fcn.1017d4a0
mov ebx, eax
add esp, 0x18
cmp ebx, esi
jbe 0x1017d422
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x1017d422
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 8]
test si, si
jne 0x1017d411
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x1017d411
test ecx, ecx
je 0x1017d411
push ecx
lea eax, [edi + 0xc]
push eax
push edx
call fcn.101b6150
add esp, 0xc
xor ebx, ebx
test si, si
jmp 0x1017d41f
xor ebx, ebx
cmp word [esp + 0x2c], bx
sete bl
test ebp, ebp
je 0x1017d435
push ebp
call fcn.10179380
add esp, 4
mov dword [0x102047a4], ebp
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret