Function at 0x1000b990
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x24
push ebp
push 0x40
mov eax, edx
xor ebp, ebp
call fcn.1000ac40
add esp, 4
test eax, eax
jne 0x1000b9b1
xor eax, eax
pop ebp
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1000b9aa
push ebx
mov ebx, dword [ecx + 0x3c]
lea eax, [ebx + 0xf8]
push eax
mov eax, edx
call fcn.1000ac40
add esp, 4
test eax, eax
je 0x1000b9f5
add ebx, ecx
cmp dword [ebx], 0x4550
jne 0x1000b9f5
mov ecx, 0x14c
cmp word [ebx + 4], cx
jne 0x1000b9f5
mov edx, dword [ebx + 0x38]
test dl, 1
je 0x1000b9fd
pop ebx
xor eax, eax
pop ebp
add esp, 0x24
ret
movzx eax, word [ebx + 0x14]
push esi
lea esi, [eax + ebx + 0x18]
movzx eax, word [ebx + 6]
push edi
test eax, eax
jbe 0x1000ba31
add esi, 0xc
mov edi, eax
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
jne 0x1000ba21
add eax, edx
jmp 0x1000ba23
add eax, ecx
cmp eax, ebp
jbe 0x1000ba29
mov ebp, eax
add esi, 0x28
sub edi, 1
jne 0x1000ba14
lea ecx, [esp + 0x10]
push ecx
call fcn.100086a0
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x50]
add esp, 4
mov ecx, edx
call fcn.1000ac20
mov esi, eax
mov ecx, edx
mov eax, ebp
call fcn.1000ac20
cmp esi, eax
jne 0x1000bbd0
mov edi, dword [esp + 0x54]
mov edx, dword [ebx + 0x34]
push edi
push 4
push 0x3000
push esi
push edx
call dword [esp + 0x54]
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x1000ba98
push edi
push 4
push 0x3000
push esi
push eax
call dword [esp + 0x54]
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1000bbd0
push 0x40
push 8
call fcn.10008760
push eax
call fcn.10008840
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000bac9
push edi
push 0x8000
push eax
push ebp
call dword [esp + 0x54]
add esp, 0x10
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x24
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [esi + 4], ebp
movzx eax, word [ebx + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x34], edi
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebx + 0x54]
push ecx
call fcn.1000ac40
add esp, 4
test eax, eax
je 0x1000bbc7
push edi
push 4
push 0x1000
push ecx
push ebp
call edx
mov edx, dword [ebx + 0x54]
mov edi, eax
mov eax, dword [esp + 0x4c]
push edx
push eax
push edi
call fcn.1005c010
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x5c]
add edi, ecx
push ebx
mov dword [esi], edi
push edx
mov dword [edi + 0x34], ebp
push eax
mov edi, esi
call fcn.1000ac50
add esp, 0x2c
test eax, eax
je 0x1000bbc7
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
sub eax, dword [ebx + 0x34]
je 0x1000bb78
push eax
mov eax, esi
call fcn.1000af90
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x1000bb7f
mov dword [esi + 0x18], 1
call fcn.1000b030
test eax, eax
je 0x1000bbc7
push esi
call fcn.1000ae10
add esp, 4
test eax, eax
je 0x1000bbc7
mov eax, esi
call fcn.1000af50
test eax, eax
je 0x1000bbc7
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x1000bbf8
add eax, ebp
cmp dword [esi + 0x14], 0
je 0x1000bbeb
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x1000bbda
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.1000b3b0
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x24
ret
pop edi
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret
pop edi
mov dword [esi + 0x38], eax
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret
pop edi
mov dword [esi + 0x38], 0
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret