Function at 0x1006de30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx]
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov eax, dword [ebp + 0x48]
inc eax
push ebp
mov dword [ebp + 0x48], eax
mov edx, dword [ebx + 4]
mov dword [esp + 0x18], eax
lea ecx, [eax + 1]
lea eax, [eax + edi + 2]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [ebp + 0x48], eax
call fcn.1006a260
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx]
push 0
push ecx
push edx
push ebp
call fcn.1005bc00
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx + 8]
add eax, edi
push eax
push ecx
push 0x45
push esi
mov dword [esp + 0x34], eax
call fcn.10057e50
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
inc edx
push 1
push edx
push eax
push ebp
call fcn.1006d3c0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x5c]
mov edx, edi
push ecx
mov ecx, dword [esp + 0x5c]
sub edx, eax
add edx, 2
add eax, ecx
push edx
push eax
push 0x30
push esi
call fcn.1004aaf0
mov eax, dword [esp + 0x70]
add esp, 0x48
test eax, eax
jle 0x1006dff0
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebx + 4]
add ecx, eax
lea edx, [eax + 1]
mov dword [ebp + 0x48], ecx
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 4]
sub edi, edx
mov edx, dword [esp + 0x10]
push edx
push 0x2d
push esi
inc edi
call fcn.10058940
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
push eax
push ecx
push edx
push 0x29
push esi
call fcn.1004aaf0
mov eax, dword [ebx + 0x14]
push eax
push esi
call fcn.1005bd10
mov ecx, dword [ebp]
add esp, 0x28
mov dword [esp + 0x18], eax
mov dl, byte [ecx + 0x40]
test dl, dl
jne 0x1006e075
mov edx, dword [eax + 0x10]
inc edi
xor ecx, ecx
mov dword [eax + 8], edi
mov cx, word [edx + 6]
mov edi, dword [edx + 0x10]
mov dword [esp + 0x10], edx
mov edx, ecx
xor eax, eax
push 0xfffffffffffffffa
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
push eax
push 0xffffffffffffffff
push esi
call fcn.1004ad60
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx]
push 1
push ecx
push edx
push ebp
call fcn.1006e120
mov ecx, dword [esp + 0x38]
push esi
mov dword [ecx + 0x10], eax
call fcn.100589e0
mov edi, eax
lea eax, [edi + 1]
push eax
push 0
push eax
push 0x2a
push esi
call fcn.1004aaf0
push esi
call fcn.10058960
mov dword [ebx + 0x10], eax
mov edx, dword [ebp + 0x48]
inc edx
mov dword [ebp + 0x48], edx
mov ebp, edx
mov edx, dword [ebx + 0x10]
mov dword [ebx + 0xc], ebp
push edx
push ebp
push 0x11
push esi
call fcn.10057e50
mov eax, dword [ebx + 8]
add esp, 0x4c
push eax
push 0x75
push esi
call fcn.10058940
mov ecx, dword [esp + 0x28]
push ecx
push esi
call fcn.10057e70
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
push 0x20
push esi
call fcn.1004aaf0
push edi
push esi
call fcn.10057e70
add esp, 0x30
mov al, byte [ebx + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
and al, 1
neg al
sbb eax, eax
push edx
add eax, 0x6c
push ecx
push eax
push esi
call fcn.10057e50
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov eax, dword [ecx + 8]
test eax, eax
je 0x1006e075
mov ecx, dword [ecx + 0xc]
test ecx, ecx
lea edi, [ecx + 1]
jne 0x1006e026
mov edi, eax
push edi
push 0x89
push esi
call fcn.10058940
push 0xffffffffffffffff
push edi
push 0x25
push esi
mov ebp, eax
call fcn.10057e50
push 0x10
push esi
call fcn.10058220
push ebp
push esi
mov edi, eax
call fcn.10057e70
mov edx, dword [ebx + 8]
push edx
push 0x67
push esi
call fcn.10058940
mov eax, dword [ebx + 8]
push eax
push 0x4b
push esi
call fcn.10058940
add esp, 0x44
push edi
push esi
call fcn.10057e70
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret