Function at 0x1000b100
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
mov dword [esp + 0x10], edi
lea ecx, [ecx + eax + 0x18]
mov dword [esp + 0x14], 0
cmp dx, word [eax + 6]
jae 0x1000b38a
lea ebx, [ecx + 0xc]
jmp 0x1000b144
mov edi, dword [esp + 0x10]
cmp dword [ebx + 4], 0
jne 0x1000b2a8
cmp dword [0x10034788], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jne 0x1000b195
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jbe 0x1000b18d
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x20]
mov ebp, dword [eax + 0x38]
test ebp, ebp
jle 0x1000b36c
cmp dword [0x10034788], 0
jne 0x1000b1e5
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jbe 0x1000b1dd
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebx]
add ecx, dword [esp + 0x10]
push 4
push 0x1000
push ebp
push ecx
call dword [0x10034790]
test eax, eax
je 0x1000b397
mov esi, dword [ebx]
add esi, dword [esp + 0x10]
cmp dword [0x10034788], 0
mov dword [ebx - 4], esi
jne 0x1000b252
call edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
jbe 0x1000b244
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push 0
push esi
call fcn.10004370
add esp, 0xc
cmp dword [0x10034788], 0
jne 0x1000b36c
call edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jbe 0x1000b29b
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1000b36c
cmp dword [0x10034788], 0
jne 0x1000b2ed
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jbe 0x1000b2e5
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
push 4
push 0x1000
push edx
add eax, edi
push eax
call dword [0x10034790]
test eax, eax
je 0x1000b397
cmp dword [0x10034788], 0
jne 0x1000b350
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
jbe 0x1000b348
push 0
push 0x80
push 0
push 0
push 4
push 0x40000000
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
add edx, dword [esp + 0x1c]
mov esi, dword [ebx]
push ecx
push edx
add esi, edi
push esi
call fcn.10006160
add esp, 0xc
mov dword [ebx - 4], esi
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
movzx ecx, word [edx + 6]
inc eax
add ebx, 0x28
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x1000b140
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret