Function at 0x10008710
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
sub esp, 0xc
cmp dword [ebx + 0x3168], 0
je 0x10008725
push ebx
call fcn.10008680
add esp, 4
mov eax, dword [ebx + 0x3148]
push 0
push eax
mov eax, dword [ebx + 0x3140]
push eax
call fcn.10016cec
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10008747
call fcn.1000cfe0
mov ecx, dword [ebx + 0x3140]
push esi
push 0xc8
lea esi, [ebx + 0x5d26]
push esi
push ecx
call fcn.10016b7a
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1000876d
call fcn.1000cfe0
cmp dword [esi], 0x4550
je 0x1000877c
xor eax, eax
pop esi
add esp, 0xc
ret
push edi
movzx edi, word [ebx + 0x5d2c]
cmp di, 0x60
jbe 0x10008792
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [ebx + 0x5d5a]
mov edx, dword [ebx + 0x5d4e]
mov eax, dword [ebx + 0x5d9a]
add edx, ecx
cmp eax, 0x400
mov dword [ebx + 0x3150], ecx
mov dword [ebx + 0x314c], edx
jl 0x100087be
mov eax, 0x400
mov ecx, dword [ebx + 0x3148]
mov edx, dword [ebx + 0x3140]
push ebp
mov ebp, dword [ebx + 0x5d7a]
lea eax, [ecx + eax*8 + 0x78]
push 0
push eax
push edx
call fcn.10016cec
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100087eb
call fcn.1000cfe0
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
add eax, eax
movzx eax, ax
mov ecx, 0x1388
cmp ax, cx
jbe 0x10008803
mov eax, ecx
mov ecx, dword [ebx + 0x3140]
movzx edx, ax
push edx
lea eax, [ebx + 0x4593]
push eax
push ecx
call fcn.10016b7a
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10008827
call fcn.1000cfe0
push 0x20
call fcn.1000cb2d
mov esi, eax
xor eax, eax
mov dword [esi + 1], eax
mov dword [esi + 5], eax
mov dword [esi + 0xc], eax
mov edx, dword [ebx + 0x3150]
mov dword [esi + 0x14], ebp
mov dword [esi + 0x10], edx
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x45a7]
mov ecx, dword [ebx + 0x459f]
movzx ebp, di
mov dword [ebx + 0x316c], eax
lea edx, [ebp + ebp*4]
lea eax, [ebx + edx*8]
mov dword [ebx + 0x3168], esi
mov dword [ebx + 0x3170], ecx
mov ecx, dword [eax + 0x457f]
mov dword [ebx + 0x3174], ecx
mov edx, dword [eax + 0x4577]
add edx, dword [ebx + 0x3150]
add esp, 4
cmp ebp, 1
mov dword [ebx + 0x3178], edx
mov dword [esp + 0xc], 1
jl 0x1000896b
lea edi, [ebx + 0x4594]
lea ebx, [ebx]
mov eax, dword [edi + 0x13]
cmp eax, dword [ebx + 0x3134]
jge 0x100089a6
push 0x20
call fcn.1000cb2d
mov dword [esi + 0x18], eax
movzx ecx, byte [edi - 1]
mov esi, eax
mov byte [esi + 1], cl
movzx edx, byte [edi]
mov byte [esi + 2], dl
movzx eax, byte [edi + 1]
mov byte [esi + 3], al
movzx ecx, byte [edi + 2]
mov byte [esi + 4], cl
movzx edx, byte [edi + 3]
mov byte [esi + 5], dl
movzx eax, byte [edi + 4]
mov byte [esi + 6], al
movzx ecx, byte [edi + 5]
mov byte [esi + 7], cl
movzx edx, byte [edi + 6]
mov byte [esi + 8], dl
mov eax, dword [edi + 0x13]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0xb]
add ecx, dword [ebx + 0x3150]
add esp, 4
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 7]
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x18], 0
mov eax, dword [edi + 7]
mov ecx, dword [edi + 0xf]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
cmp dword [ebx + 0x316c], eax
mov dword [esp + 0x10], edx
jg 0x10008955
mov dword [ebx + 0x316c], eax
mov edx, dword [esi + 0x10]
sub edx, dword [ebx + 0x3150]
mov dword [ebx + 0x3170], edx
mov edx, dword [esp + 0xc]
inc edx
add edi, 0x28
cmp edx, ebp
mov dword [esp + 0xc], edx
jle 0x100088b0
jmp 0x10008973
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
lea ebp, [eax + ecx]
cmp ebp, dword [ebx + 0x3134]
jge 0x100089a6
push 0x20
call fcn.1000cb2d
mov edx, dword [esp + 0x14]
mov dword [esi + 0x18], eax
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [eax + 1], ecx
add esp, 4
mov dword [eax + 5], ecx
add edx, esi
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], edx
mov dword [eax + 0x18], ecx
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret