Function at 0x1015579
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 8]
push esi
xor edx, edx
push edi
inc edx
xor edi, edi
cmp byte [eax + ecx], 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], edi
jne 0x10155f2
mov ecx, dword [ebx + 0x60]
cmp byte [ecx], 0xff
jne 0x10155f2
inc dword [ebx + 0x68]
inc ecx
inc eax
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 0x60], ecx
cmp dword [eax + 4], edi
je 0x10155ea
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3a], edi
mov dword [ebp - 0x42], edi
mov edi, dword [ebx + 0x5c]
imul edi, edi, 0x3c
add edi, dword [eax + 0xe2]
push 0xf
pop ecx
push 0x3c
add eax, 0xde
lea esi, [ebp - 0x4c]
mov byte [ebp - 0x4c], 0x66
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.010140d8
inc dword [ebx + 0x5c]
push 4
pop eax
jmp 0x101598f
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
movsx ecx, word [eax + 0x16]
add dword [ebx + 0x50], ecx
cmp word [eax + 0xa], di
mov ecx, dword [ebx + 0x50]
mov dword [ebp - 8], ecx
je 0x1015617
push edx
push eax
call fcn.0101349f
add dword [ebx + 0x50], eax
mov eax, dword [ebx]
movsx ecx, word [eax + 0x1e]
mov edx, dword [ebp + 0x10]
sub edx, ecx
mov dword [ebx + 0x3c], edx
cmp word [eax + 0xa], di
je 0x1015636
push 4
push eax
call fcn.0101349f
sub dword [ebx + 0x3c], eax
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0xc], 3
mov esi, dword [ebp + 8]
jl 0x101564e
cmp dword [esi + 0xf6], edi
jle 0x1015807
cmp dword [ebx + 0xc], edi
jne 0x101571e
lea eax, [esi + 0xf6]
cmp dword [eax], edi
jle 0x101571e
push 0xa
lea edx, [esi + 0xf2]
mov esi, dword [edx]
pop ecx
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
dec dword [eax]
mov eax, dword [eax]
mov edx, dword [edx]
lea eax, [eax + eax*4]
shl eax, 3
push eax
lea eax, [edx + 0x28]
push eax
push edx
call dword [sym.imp.msvcrt.dll_memmove]
xor ecx, ecx
inc ecx
xor esi, esi
add esp, 0xc
cmp dword [ebx + 0x10], esi
mov dword [ebx + 0xc], ecx
jne 0x10156bb
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x24]
cmp eax, 0xa
mov dword [ebx + 0x1c], eax
jge 0x10156b0
mov dword [ebx + 0x10], ecx
jmp 0x10156b6
add eax, 0xfffffff6
mov dword [ebx + 0x3c], eax
cmp dword [ebx + 0x10], esi
je 0x10156e6
mov eax, dword [ebx]
movsx ecx, word [eax + 0x1c]
mov dword [ebx + 0x1c], ecx
mov dx, word [eax + 0x20]
cmp dx, si
jge 0x10156d5
movsx edx, dx
add edx, ecx
mov dword [ebx + 0x1c], edx
cmp word [eax + 0xa], si
je 0x10156e6
push 2
push eax
call fcn.0101349f
add dword [ebx + 0x1c], eax
mov ecx, dword [ebx + 0x14]
cmp ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x50]
mov dword [ebx + 0x20], eax
jge 0x1015719
mov edx, ecx
imul edx, edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xe2]
mov esi, dword [ebx + 0x1c]
add eax, edx
add dword [eax + 2], esi
mov esi, dword [ebx + 0x20]
add dword [eax + 6], esi
inc ecx
add edx, 0x3c
cmp ecx, dword [ebx + 0x18]
jl 0x10156f9
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
cmp dword [ebx + 0xc], edi
sete al
mov dword [ebx + 0x40], eax
mov eax, dword [ebx]
movsx ecx, word [eax + 0x1c]
mov dword [ebx + 0x38], ecx
cmp word [eax + 0xa], di
je 0x1015743
push 2
push eax
call fcn.0101349f
add dword [ebx + 0x38], eax
cmp dword [ebx + 0xc], edi
je 0x1015756
cmp dword [ebx + 0x10], edi
je 0x1015756
mov eax, dword [ebx + 0x24]
add eax, 0xa
add dword [ebx + 0x38], eax
cmp dword [ebp - 0xc], edi
je 0x101577b
mov eax, dword [ebx]
cmp word [eax + 0x10], di
movsx eax, word [eax + 0x20]
je 0x1015773
sub dword [ebx + 0x3c], eax
mov dword [ebp - 4], 1
jmp 0x1015776
add dword [ebx + 0x38], eax
mov dword [ebp - 0xc], edi
jmp 0x1015792
cmp dword [ebp - 4], edi
je 0x1015792
mov eax, dword [ebx]
cmp word [eax + 0x10], di
je 0x1015792
movsx eax, word [eax + 0x20]
add dword [ebx + 0x3c], eax
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], 3
je 0x10157a8
cmp dword [ebp + 0xc], 4
je 0x10157a8
push ebx
push esi
call fcn.01015176
mov dword [ebp + 0xc], eax
cmp dword [ebx + 0xc], edi
je 0x1015639
cmp dword [ebp + 0xc], 3
je 0x10157cc
cmp dword [ebp + 0xc], 4
je 0x10157cc
mov eax, dword [ebx + 0x28]
add eax, dword [ebx + 0x20]
cmp dword [ebx + 0x50], eax
jle 0x1015639
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0xc], edi
movsx ecx, word [eax + 0x1e]
sub edx, ecx
mov dword [ebx + 0x3c], edx
cmp word [eax + 0xa], di
je 0x10157ee
push 4
push eax
call fcn.0101349f
sub dword [ebx + 0x3c], eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x28]
add eax, ecx
mov ecx, dword [ebx + 0x50]
cmp ecx, eax
jle 0x10157ff
mov eax, ecx
mov dword [ebx + 0x50], eax
jmp 0x1015639
mov eax, dword [ebp - 8]
cmp dword [ebx + 0x50], eax
jne 0x1015862
cmp dword [ebp + 0xc], 4
je 0x1015862
cmp word [ebx + 0x48], 0xffff
jne 0x1015820
mov word [ebx + 0x48], di
movsx eax, word [ebx + 0x48]
cmp dword [esi + 0x13e], eax
je 0x1015853
push eax
push esi
call fcn.0101067d
lea eax, [esi + 0x142]
push eax
push dword [esi + 4]
call dword [0x1001098]
movsx eax, word [ebx + 0x48]
mov dword [esi + 0x13a], eax
mov dword [esi + 0x13e], eax
mov eax, dword [esi + 0x152]
add eax, dword [esi + 0x142]
add dword [ebx + 0x50], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x5c]
imul ecx, ecx, 0x3c
mov edx, dword [esi + 0xe2]
imul eax, eax, 0x3c
mov dword [ebp + 0x10], edi
lea edi, [ecx + edx]
add edx, eax
cmp edi, edx
mov dword [ebp - 4], edi
jae 0x10158b5
mov edx, dword [ebx + 0x5c]
mov edi, dword [esi + 0xe2]
imul edx, edx, 0x3c
add edx, edi
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
mov edi, dword [edx + 0x12]
mov edx, dword [edx + 6]
add edx, edi
cmp dword [ebp + 0x10], edx
jg 0x10158a7
mov dword [ebp + 0x10], edx
mov edx, dword [ebp - 4]
add edx, 0x3c
cmp edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
jb 0x1015897
mov edx, dword [ebx + 0x50]
cmp edx, dword [ebp + 0x10]
jg 0x10158c0
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x50], edx
mov edx, dword [ebx]
cmp word [edx + 0xa], 0
je 0x1015983
mov edi, dword [esi + 0xe2]
and dword [ebp + 0x10], 0
add ecx, edi
add edi, eax
cmp ecx, edi
jae 0x1015907
mov eax, dword [ebx + 0x5c]
mov edx, dword [esi + 0xe2]
imul eax, eax, 0x3c
add edx, eax
mov eax, dword [ecx + 0xe]
mov esi, dword [ecx + 2]
add eax, esi
cmp dword [ebp + 0x10], eax
jg 0x1015900
mov dword [ebp + 0x10], eax
add ecx, 0x3c
cmp ecx, edx
jb 0x10158f0
mov al, byte [edi + 1]
and al, 0xfe
or al, 2
mov byte [edi], 5
mov byte [edi + 1], al
mov eax, dword [ebx]
movsx ecx, word [eax + 0x1c]
movsx esi, word [eax + 0x20]
movsx eax, word [eax + 0x1c]
lea edx, [ecx + esi]
cmp ecx, edx
jl 0x101592b
add eax, esi
mov dword [edi + 2], eax
mov eax, dword [ebp - 8]
mov dword [edi + 6], eax
mov esi, dword [ebx + 0x3c]
cmp dword [ebp + 0x10], esi
jle 0x101593f
mov esi, dword [ebp + 0x10]
push 4
push dword [ebx]
call fcn.0101349f
sub esi, dword [edi + 2]
push 3
add eax, esi
mov dword [edi + 0xe], eax
push dword [ebx]
call fcn.0101349f
add dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x50]
sub eax, dword [ebp - 8]
add edi, 0x2a
mov dword [edi - 0x18], eax
mov esi, dword [ebx]
mov eax, dword [ebp + 8]
add esi, 0x24
movsw word es:[edi], word [esi]
push 0x3c
add eax, 0xde
push eax
movsb byte es:[edi], byte [esi]
call fcn.010140d8
inc dword [ebx + 0x5c]
mov eax, dword [ebx]
movsx eax, word [eax + 0x18]
add dword [ebx + 0x50], eax
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc