Function at 0x10159010
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x44
mov eax, dword [0x101df584]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, ecx
mov ecx, 4
mov eax, ebx
mov dword [esp + 0x18], ebx
push ebp
mov ebp, dword [esp + 0x50]
sub eax, dword [ebx]
push esi
push edi
mov dword [esp + 0x14], ebp
cmp cx, word [eax]
jae 0x10159128
movzx eax, word [eax + 4]
lea ecx, [ebx + eax]
test ax, ax
je 0x10159128
mov esi, dword [ecx]
add esi, ecx
mov dword [esp + 0x1c], esi
je 0x10159128
push dword [esi]
mov ecx, ebp
call fcn.10162160
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x10159124
mov dword [esp + 0x18], ebp
lea edi, [esi + 4]
nop word [eax + eax]
mov eax, dword [edi]
lea ecx, [esp + 0x38]
add eax, edi
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
movups xmmword [esp + 0x38], xmm0
push dword [eax]
add eax, 4
push eax
call fcn.10001380
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
lea eax, [esp + 0x38]
add esi, dword [esp + 0x18]
cmp esi, eax
je 0x101590d9
mov ecx, esi
call fcn.10001690
movups xmm0, xmmword [esp + 0x38]
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x48]
movq qword [esi + 0x10], xmm0
jmp 0x1015910f
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x10
jb 0x1015910f
mov edx, dword [esp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10159105
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10159227
push ecx
push edx
call fcn.10196271
add esp, 8
mov eax, dword [esp + 0x1c]
inc ebp
add dword [esp + 0x18], 0x18
add edi, 4
cmp ebp, dword [eax]
jb 0x10159080
mov ebp, dword [esp + 0x14]
mov eax, ebx
mov ecx, 6
sub eax, dword [ebx]
cmp cx, word [eax]
jae 0x1015916f
movzx eax, word [eax + 6]
lea ecx, [ebx + eax]
test ax, ax
je 0x1015916f
mov esi, dword [ecx]
add esi, ecx
je 0x1015916f
push dword [esi]
lea ecx, [ebp + 0xc]
call fcn.100418b0
xor edx, edx
cmp dword [esi], edx
jbe 0x1015916f
nop dword [eax + eax]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + edx*4 + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [esi]
jb 0x10159160
mov eax, ebx
mov ecx, 8
sub eax, dword [ebx]
cmp cx, word [eax]
jae 0x101591b4
movzx eax, word [eax + 8]
lea ecx, [ebx + eax]
test ax, ax
je 0x101591b4
mov edi, dword [ecx]
add edi, ecx
je 0x101591b4
push dword [edi]
lea ecx, [ebp + 0x18]
call fcn.100a9900
xor esi, esi
cmp dword [edi], esi
jbe 0x101591b4
mov ecx, dword [ebp + 0x18]
lea edx, [edi + 4]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
inc esi
cmp esi, dword [edi]
jb 0x101591a5
mov eax, ebx
mov ecx, 0xa
sub eax, dword [ebx]
cmp cx, word [eax]
jae 0x101592af
movzx eax, word [eax + 0xa]
lea ecx, [ebx + eax]
test ax, ax
je 0x101592af
mov ebp, dword [ecx]
add ebp, ecx
je 0x101592af
mov esi, dword [esp + 0x14]
mov edi, dword [ebp]
add esi, 0x24
mov byte [esp + 0x10], 0
mov dword [esp + 0x18], esi
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
cmp eax, edi
jae 0x1015922d
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.100d5bd0
sub edi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edi
push dword [eax + 4]
mov ecx, esi
push dword [eax]
lea eax, [esp + 0x2c]
push eax
call fcn.100d5750
jmp 0x10159279
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
jbe 0x10159279
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.100d5bd0
push dword [ebp]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
call fcn.100d5620
mov ecx, dword [esp + 0x18]
push esi
push edi
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x2c]
push eax
call fcn.100d5f20
xor ecx, ecx
cmp dword [ebp], ecx
jbe 0x101592af
mov ebx, dword [esp + 0x18]
mov edi, dword [ebx]
mov esi, ecx
shr esi, 5
mov edx, ecx
and edx, 0x1f
cmp byte [ecx + ebp + 4], 0
mov eax, dword [edi + esi*4]
je 0x1015929f
bts eax, edx
jmp 0x101592a2
btr eax, edx
inc ecx
mov dword [edi + esi*4], eax
cmp ecx, dword [ebp]
jb 0x10159284
mov ebx, dword [esp + 0x24]
mov eax, ebx
mov ecx, 0xc
sub eax, dword [ebx]
cmp cx, word [eax]
jae 0x10159335
movzx eax, word [eax + 0xc]
lea ecx, [ebx + eax]
test ax, ax
je 0x10159335
mov esi, dword [ecx]
add esi, ecx
je 0x10159335
mov ebx, dword [esp + 0x14]
mov edi, dword [esi]
mov ebp, dword [ebx + 0x38]
mov ecx, ebp
mov edx, dword [ebx + 0x34]
sub ecx, edx
sar ecx, 2
cmp edi, ecx
jae 0x101592eb
lea eax, [edx + edi*4]
jmp 0x1015931d
jbe 0x10159320
mov eax, dword [ebx + 0x3c]
sub eax, edx
sar eax, 2
cmp edi, eax
jbe 0x10159309
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [ebx + 0x34]
call fcn.100c1730
jmp 0x10159320
sub edi, ecx
shl edi, 2
push edi
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [edi + ebp]
mov dword [ebx + 0x38], eax
xor edx, edx
cmp dword [esi], edx
jbe 0x10159335
mov ecx, dword [ebx + 0x34]
mov eax, dword [esi + edx*4 + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [esi]
jb 0x10159326
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1019627f
add esp, 0x44
ret 8