Function at 0x1015fa40
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.1015be90
add esi, 0xffffffef
mov dword [0x1021d6d4], ebp
add esp, 4
cmp esi, 0x1b
ja case.0x1015fa7f.18
movzx eax, byte [esi + 0x1015ff90]
jmp dword [eax*4 + 0x1015ff50]
mov eax, dword [esp + 0x30]
mov esi, dword [edi + 8]
mov ebx, dword [eax]
push ebx
test esi, esi
je 0x1015faa1
call fcn.1015bcb0
mov dword [eax + 0x14], esi
jmp 0x1015ff32
call fcn.1015bb00
xor ebx, ebx
jmp 0x1015ff32
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.10159980
mov edx, dword [esi + 4]
mov ecx, eax
test edx, edx
je 0x1015faea
cmp dword [esp + 0x2c], 0xc
jbe 0x1015faea
mov ecx, dword [ebx + edi + 0x1c]
mov dword [edx + 0xc], ecx
mov ecx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1015faf3
mov dword [eax], ecx
xor ebx, ebx
test ebp, ebp
jmp 0x1015ff2f
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 4]
cmp eax, edx
jbe 0x1015fb19
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.101a3c10
add esp, 0xc
mov ebx, dword [edi + 8]
jmp 0x1015ff32
mov ecx, dword [esp + 0x30]
mov ebx, dword [edi + 8]
mov edx, dword [ecx + 4]
lea esi, [ebx + 1]
and edx, 0x10000
je 0x1015fb4c
lea esi, [ebx*2 + 2]
xor eax, eax
test edx, edx
setne al
cmp esi, dword [ecx + 8]
jbe 0x1015fb6b
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x1015ff32
push eax
push ebx
lea eax, [edi + 0xc]
push eax
push dword [ecx]
call fcn.101609a0
mov ebx, dword [edi + 8]
jmp 0x1015ff32
mov ecx, dword [esp + 0x30]
lea ebx, [edi + 0xc]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 8]
cmp eax, edx
jbe 0x1015fba1
cmp word [esp + 0x2c], 0
mov eax, edx
mov edx, 5
cmove ebp, edx
push eax
push ebx
push dword [ecx]
call fcn.101a3c10
mov ebx, dword [edi + 8]
add esp, 0xc
jmp 0x1015ff32
mov eax, dword [esp + 0x30]
mov esi, dword [edi + 8]
mov ebx, dword [eax]
push ebx
test esi, esi
je 0x1015faa1
call fcn.1015bcb0
mov dword [eax + 0xc], esi
jmp 0x1015ff32
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 0x1015fccb
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 [0x1021d6f8], 0
je 0x1015fc65
or edx, 0x10000
mov dword [esi], edx
mov eax, dword [esp + 0x10]
cmp eax, 0x24
jbe 0x1015fcc2
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jb 0x1015fcc2
cmp dword [esp + 0x14], eax
jb 0x1015fcdc
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.101609a0
test dword [esp + 0x1c], 0x80000
mov ebx, dword [esp + 0x10]
mov eax, dword [esi]
je 0x1015fcb3
or eax, 0x80000
mov dword [esi + 0xc], 0x24
mov dword [esi], eax
jmp 0x1015fcdc
and eax, 0xfff7ffff
mov dword [esi], eax
lea eax, [esi + 0x24]
mov dword [esi + 0xc], eax
jmp 0x1015fcdc
mov dword [esi + 0xc], 0
jmp 0x1015fcdc
push ebx
push 0
push edx
push esi
push ecx
push eax
call fcn.1015ffb0
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
jbe 0x1015fcf2
cmp word [esp + 0x2c], 0
mov ecx, 5
cmove ebp, ecx
cmp dword [esp + 0x24], 0
jne 0x1015ff32
cmp eax, 8
jb 0x1015ff32
push dword [esi + 4]
call fcn.1015bd60
mov dword [esi + 4], eax
jmp 0x1015ff32
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 0x1015fd32
cmp word [esp + 0x2c], 0
je 0x1015fd3b
mov ecx, edx
mov ebx, edx
mov ebp, 5
cmp ecx, edx
cmova ecx, edx
push ecx
push edi
push dword [eax]
call fcn.101a3c10
add esp, 0xc
jmp 0x1015ff32
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 0x1015fd77
cmp word [esp + 0x2c], 0
jne 0x1015fd77
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.101a3c10
add esp, 0xc
jmp 0x1015ff32
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 0x1015fdb3
cmp word [esp + 0x2c], 0
jne 0x1015fdb3
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.101a3c10
add esp, 0xc
jmp 0x1015ff32
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 0x1015fdef
cmp word [esp + 0x2c], 0
jne 0x1015fdef
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.101a3c10
add esp, 0xc
jmp 0x1015ff32
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 0x1015fe6d
cmp eax, 0x10
je 0x1015fe6d
cmp eax, 0x20
jne 0x1015ff32
and edx, 0x10000
lea ebx, [ecx + ecx]
cmove ebx, ecx
cmp ebx, esi
jbe 0x1015fe4a
lea ebp, [eax - 0x1b]
jmp 0x1015ff32
test ecx, ecx
je 0x1015ff32
xor eax, eax
test edx, edx
setne al
push eax
lea eax, [ecx - 1]
push eax
push edi
push dword [esp + 0x20]
call fcn.101609a0
jmp 0x1015ff32
push edx
push 0
push esi
push dword [esp + 0x20]
push ecx
push edi
call fcn.1015ffb0
mov ebx, eax
add esp, 0x18
cmp ebx, esi
jbe 0x1015ff32
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x1015ff32
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 0x1015fed1
cmp eax, 0x30
jne 0x1015ff32
push ecx
push edi
push edx
call fcn.101a3c10
add esp, 0xc
jmp 0x1015ff32
push dword [esp + 0x24]
push 0
push esi
push edx
push ecx
push edi
call fcn.1015ffb0
mov ebx, eax
add esp, 0x18
cmp ebx, esi
jbe 0x1015ff32
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x1015ff32
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 8]
test si, si
jne 0x1015ff21
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x1015ff21
test ecx, ecx
je 0x1015ff21
push ecx
lea eax, [edi + 0xc]
push eax
push edx
call fcn.101a3c10
add esp, 0xc
xor ebx, ebx
test si, si
jmp 0x1015ff2f
xor ebx, ebx
cmp word [esp + 0x2c], bx
sete bl
test ebp, ebp
je 0x1015ff45
push ebp
call fcn.1015be90
add esp, 4
mov dword [0x1021d6d4], ebp
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret