Function at 0x10158380
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x34
mov eax, dword [0x101df584]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebx
mov eax, ebp
mov dword [esp + 0xc], ebp
mov ecx, 4
push esi
sub eax, dword [ebp]
cmp cx, word [eax]
jae 0x10158457
movzx eax, word [eax + 4]
lea ecx, [eax + ebp]
test ax, ax
je 0x10158457
mov eax, dword [ecx]
add eax, ecx
je 0x10158457
push dword [eax]
add eax, 4
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
push eax
lea ecx, [esp + 0x2c]
movups xmmword [esp + 0x2c], xmm0
call fcn.10001380
lea eax, [esp + 0x24]
cmp ebx, eax
je 0x10158421
mov ecx, ebx
call fcn.10001690
movups xmm0, xmmword [esp + 0x24]
mov ecx, 0xf
mov byte [esp + 0x24], 0
movups xmmword [ebx], xmm0
movq xmm0, qword [esp + 0x34]
movq qword [ebx + 0x10], xmm0
jmp 0x10158425
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x10158457
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1015844d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10158504
push ecx
push edx
call fcn.10196271
add esp, 8
mov eax, ebp
mov ecx, 6
sub eax, dword [ebp]
cmp cx, word [eax]
jae 0x10158514
movzx eax, word [eax + 6]
lea ecx, [eax + ebp]
test ax, ax
je 0x10158514
mov eax, dword [ecx]
add eax, ecx
je 0x10158514
push dword [eax]
add eax, 4
mov dword [esp + 0x38], 0
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
push eax
lea ecx, [esp + 0x2c]
movups xmmword [esp + 0x2c], xmm0
call fcn.10001380
lea esi, [ebx + 0x18]
lea eax, [esp + 0x24]
cmp esi, eax
je 0x101584dc
mov ecx, esi
call fcn.10001690
movups xmm0, xmmword [esp + 0x24]
mov ecx, 0xf
mov byte [esp + 0x24], 0
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x34]
movq qword [esi + 0x10], xmm0
jmp 0x101584e0
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x10158514
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1015850a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1015850a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10196271
add esp, 8
mov eax, ebp
mov ecx, 8
sub eax, dword [ebp]
push edi
cmp cx, word [eax]
jae 0x101585bd
movzx eax, word [eax + 8]
lea ecx, [eax + ebp]
test ax, ax
je 0x101585bd
mov esi, dword [ecx]
add esi, ecx
mov dword [esp + 0x1c], esi
je 0x101585bd
push dword [esi]
lea eax, [ebx + 0x30]
mov ecx, eax
mov dword [esp + 0x24], eax
call fcn.101622f0
cmp dword [esi], 0
jbe 0x101585bd
mov edi, 0xfffffffc
lea ebx, [esi + 4]
sub edi, esi
xor ebp, ebp
mov dword [esp + 0x10], edi
mov ecx, dword [ebx]
push dword [esp + 0x4c]
add ecx, ebx
call fcn.10156410
mov ecx, dword [esp + 0x20]
mov esi, eax
lea eax, [edi + ebx]
add eax, dword [ecx]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x10158670
mov edi, dword [eax]
mov dword [eax], esi
test edi, edi
je 0x101585a5
mov ecx, edi
call fcn.10010c60
push 0xc
push edi
call fcn.10196271
add esp, 8
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc ebp
add ebx, 4
cmp ebp, dword [eax]
jb 0x10158567
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, ebp
mov ecx, 0xa
sub eax, dword [ebp]
cmp cx, word [eax]
jae 0x1015865b
movzx eax, word [eax + 0xa]
lea ecx, [eax + ebp]
test ax, ax
je 0x1015865b
mov esi, dword [ecx]
add esi, ecx
mov dword [esp + 0x14], esi
je 0x1015865b
push dword [esi]
lea eax, [ebx + 0x3c]
mov ecx, eax
mov dword [esp + 0x1c], eax
call fcn.101622f0
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x1015865b
mov edi, 0xfffffffc
lea ebx, [esi + 4]
sub edi, esi
mov dword [esp + 0x10], edi
nop word [eax + eax]
mov ecx, dword [ebx]
push dword [esp + 0x4c]
add ecx, ebx
call fcn.10156410
mov esi, eax
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, edi
add eax, ebx
cmp eax, ecx
je 0x1015868f
mov edi, dword [eax]
mov dword [eax], esi
test edi, edi
je 0x1015864b
mov ecx, edi
call fcn.10010c60
push 0xc
push edi
call fcn.10196271
add esp, 8
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebp
add ebx, 4
cmp ebp, dword [eax]
jb 0x10158610
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1019627f
add esp, 0x34
ret 8
test esi, esi
je 0x101585a9
mov ecx, esi
call fcn.10010c60
push 0xc
push esi
call fcn.10196271
add esp, 8
jmp 0x101585a9
test esi, esi
je 0x1015864f
mov ecx, esi
call fcn.10010c60
push 0xc
push esi
call fcn.10196271
add esp, 8
jmp 0x1015864f