Function at 0x100861d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14c
mov eax, dword [0x10143964]
xor eax, esp
mov dword [esp + 0x148], eax
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0x15c]
mov dword [esp + 4], ecx
mov dword [esp], eax
push esi
mov esi, dword [esp + 0x168]
test ecx, ecx
jne 0x1008622c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
pop esi
mov dword [eax], 9
or eax, 0xffffffff
or edx, eax
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.100f06e3
add esp, 0x14c
ret
push ebp
mov ebp, dword [esp + 0x15c]
test ebp, ebp
jne 0x10086260
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
pop ebp
pop esi
mov dword [eax], 0xe
or eax, 0xffffffff
or edx, eax
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.100f06e3
add esp, 0x14c
ret
push ebx
push edi
push 0x80
lea eax, [esp + 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x188]
add esp, 0xc
xor edi, edi
xor ebx, ebx
cmp eax, 4
ja case.0x10086286.3
jmp dword [eax*4 + 0x100864f0]
cmp dword [esp + 0x178], ebx
jne case.0x10086286.3
test esi, esi
je 0x100863a1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
or eax, 0xffffffff
or edx, eax
mov ecx, dword [esp + 0x158]
pop edi
pop ebx
pop ebp
pop esi
xor ecx, esp
call fcn.100f06e3
add esp, 0x14c
ret
test esi, esi
je case.0x10086286.3
cmp dword [esp + 0x178], 0x10
jne case.0x10086286.3
movzx eax, word [esi]
lea edi, [esi + 0xc]
mov word [esp + 0x40], ax
movzx eax, word [esi + 2]
mov word [esp + 0x44], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [edi]
mov dword [esp + 0x5c], eax
jmp 0x1008639c
test esi, esi
je case.0x10086286.3
cmp dword [esp + 0x178], 8
jne case.0x10086286.3
mov ax, word [esi]
and ax, 0xf
mov word [esp + 0x44], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x50], eax
jmp 0x1008639c
test esi, esi
je case.0x10086286.3
cmp dword [esp + 0x178], 0x20
jne case.0x10086286.3
mov edx, dword [esi]
test dl, 1
je 0x10086369
mov ax, word [esi + 4]
lea edi, [esi + 0x10]
mov cx, word [esi + 6]
mov word [esp + 0x40], ax
mov eax, dword [esi + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [edi]
mov dword [esp + 0x5c], eax
jmp 0x10086372
xor ecx, ecx
xor eax, eax
mov word [esp + 0x40], ax
mov word [esp + 0x44], cx
test dl, 2
je 0x10086393
mov ax, word [esi + 0x14]
and ax, 0xf
or cx, ax
mov eax, dword [esi + 0x18]
mov word [esp + 0x44], cx
mov dword [esp + 0x50], eax
test dl, 4
jne case.0x10086286.3
mov ebx, 1
cmp dword [esp + 0x170], 1
jg case.0x10086286.3
mov dword [esp + 0x1c], ebp
lea eax, [esp + 0x18]
mov ebp, dword [esp + 0x168]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
lea ecx, [esp + 0x40]
xor eax, eax
test ebx, ebx
mov ebx, dword [esp + 0x10]
cmove ecx, eax
push ecx
push dword [esp + 0x184]
push eax
push eax
lea eax, [esp + 0x30]
push eax
push ebx
push dword [esp + 0x2c]
call fcn.10098290
add esp, 0x1c
mov dword [esi], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0
jne 0x100862aa
test ebx, ebx
je 0x100864db
test edi, edi
je 0x100864db
push 0x98
lea eax, [esp + 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movzx eax, word [ebx]
add esp, 0xc
sub eax, 2
je 0x10086481
sub eax, 0x15
je 0x1008647a
sub eax, 0x64
je 0x10086473
xor eax, eax
jmp 0x10086486
mov eax, 8
jmp 0x10086486
mov eax, 0x1c
jmp 0x10086486
mov eax, 0x10
push eax
lea eax, [esp + 0xc4]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [esp + 0x1c], 0x98
call ebx
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
lea eax, [esp + 0xd4]
push eax
push 0x101
push dword [esp + 0x30]
call fcn.10087640
add esp, 0x20
mov dword [esi], eax
call ebx
mov ecx, dword [esp + 0x140]
xor edx, edx
cmp dword [eax], edx
cmovne ecx, edx
mov dword [edi], ecx
sub ebp, dword [esp + 0x30]
mov edx, 0
mov eax, ebp
sbb edx, dword [esp + 0x34]
jmp 0x100862af