Function at 0x1000a6d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebx
mov ebx, ecx
mov ax, word [ebx + 0x28]
sub ax, word [ebx + 0x24]
mov dx, word [ebx + 0x2a]
sub dx, word [ebx + 0x26]
push ebp
push esi
push edi
xor ecx, ecx
xor edi, edi
mov cx, ax
mov eax, dword [ebx + 0x1c]
test eax, eax
mov di, dx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edi
je 0x1000ad46
test ecx, ecx
jle 0x1000ad46
test edi, edi
jle 0x1000ad46
cmp eax, dword [ebx + 0x20]
sete dl
cmp ecx, 1
mov dword [esp + 0x48], 0
mov byte [esp + 0x13], dl
jne 0x1000a7dc
cmp edi, ecx
jne 0x1000a7dc
mov eax, dword [ebx + 0x2c]
cmp eax, 3
ja case.default.0x1000a745
jmp dword [eax*4 + 0x1000ad50]
mov eax, 2
mov ecx, eax
jmp 0x1000a791
mov ecx, dword [ebx + 0x48]
mov eax, 1
sub eax, ecx
mov ecx, dword [ebx + 0x4c]
jmp 0x1000a791
mov esi, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x48]
mov ecx, 1
sub ecx, esi
jmp 0x1000a791
mov edi, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
mov eax, 1
mov ecx, 1
sub eax, edi
sub ecx, esi
jmp 0x1000a791
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov esi, dword [ebx + 0x60]
mov edi, dword [ebx + 0x5c]
add ecx, 0x12
imul ecx, esi
add ecx, eax
test dl, dl
lea eax, [edi + ecx*2]
lea ecx, [esi + esi*4]
mov si, word [eax]
mov word [edi + ecx*8 + 4], si
je 0x1000ad46
push 1
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], eax
push 0
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
push 0
push eax
lea ecx, [ebx + 0x6c]
call fcn.100088c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ecx, ebx
call fcn.10009f50
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x60]
mov ebp, dword [ebx + 0x5c]
lea ecx, [eax + 0xc]
imul ecx, edx
lea esi, [ebp + ecx*2]
lea ecx, [edi + 0xc]
cmp eax, ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x34], eax
jge 0x1000ad46
sub edi, eax
lea ecx, [eax - 8]
add edi, 7
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
lea ecx, [ecx]
mov eax, dword [ebx + 0x98]
cmp byte [eax], 0
jne 0x1000ad46
mov ecx, dword [esp + 0x14]
mov eax, 1
cmp ecx, eax
lea edi, [esi + edx*2]
jne 0x1000a8ee
mov ax, word [edi]
mov cx, word [esi]
movsx edx, word [ebp + 8]
mov word [esp + 0x2c], cx
movsx ecx, ax
lea edx, [edx + ecx + 2]
mov ecx, dword [esp + 0x2c]
sar edx, 2
sub ecx, edx
movsx edx, word [ebp + 2]
mov word [ebp], cx
movsx ecx, cx
add edx, ecx
xor ecx, ecx
mov cx, word [ebp + 8]
sar edx, 1
mov word [ebp + 8], ax
add edx, ecx
mov cx, word [ebp + 2]
mov word [ebp + 0xa], dx
mov dx, word [ebp]
mov word [ebp + 4], cx
movsx ecx, word [ebp + 0x14]
mov word [ebp + 2], dx
movsx edx, ax
lea edx, [ecx + edx + 2]
mov ecx, dword [esp + 0x2c]
sar edx, 2
sub ecx, edx
movsx edx, word [ebp + 0xe]
mov word [ebp + 0xc], cx
mov dword [esp + 0x30], ecx
movsx ecx, cx
add edx, ecx
xor ecx, ecx
mov cx, word [ebp + 0x14]
sar edx, 1
mov word [ebp + 0x14], ax
mov ax, word [ebp + 4]
add edx, ecx
mov cx, word [ebp + 0xe]
mov word [ebp + 0x16], dx
mov dx, word [esp + 0x30]
mov word [ebp + 0x10], cx
mov word [ebp + 0xe], dx
mov word [esi + 4], ax
mov cx, word [ebp + 0xa]
mov word [edi + 4], cx
jmp 0x1000ac69
cmp dword [esp + 0x24], eax
mov eax, dword [ebx + 0x48]
jne 0x1000ab3a
xor ecx, ecx
neg eax
mov cx, word [esi + eax*2 + 6]
mov dx, word [edi + eax*2 + 6]
mov word [esp + 0x18], dx
mov dword [esp + 0x28], ecx
movsx ecx, cx
lea edx, [ecx + 2]
mov cx, word [esi + eax*2 + 8]
sar edx, 2
sub cx, dx
mov word [esp + 0x4a], cx
movsx ecx, word [esp + 0x18]
lea edx, [ecx + 2]
mov cx, word [edi + eax*2 + 8]
sar edx, 2
sub cx, dx
mov word [esp + 0x56], cx
mov ecx, dword [ebx + 0x48]
add ecx, ecx
mov dword [esp + 0x2c], ecx
mov edx, edi
sub edx, ecx
mov dx, word [edx + 2]
mov word [esp + 0x30], dx
mov edx, esi
sub edx, ecx
xor ecx, ecx
mov cx, word [edx + 2]
movsx edx, cx
mov dword [esp + 0x38], ecx
movsx ecx, word [esp + 0x28]
lea edx, [edx + ecx + 2]
mov cx, word [esi + eax*2 + 4]
sar edx, 2
sub cx, dx
movsx edx, word [esp + 0x4a]
mov word [esp + 0x48], cx
movsx ecx, cx
add edx, ecx
mov ecx, dword [esp + 0x28]
sar edx, 1
add edx, ecx
mov cx, word [esp + 0x48]
mov word [esp + 0x52], dx
mov dx, word [esp + 0x4a]
mov word [esp + 0x4c], dx
mov dx, word [esp + 0x38]
mov word [esp + 0x50], dx
movsx edx, word [esp + 0x30]
mov word [esp + 0x4a], cx
movsx ecx, word [esp + 0x18]
lea edx, [edx + ecx + 2]
mov cx, word [edi + eax*2 + 4]
sar edx, 2
sub cx, dx
movsx edx, word [esp + 0x56]
mov word [esp + 0x54], cx
movsx ecx, cx
add edx, ecx
mov ecx, dword [esp + 0x18]
sar edx, 1
add edx, ecx
mov cx, word [esp + 0x54]
mov word [esp + 0x5e], dx
mov dx, word [esp + 0x56]
mov word [esp + 0x58], dx
mov dx, word [esp + 0x30]
mov word [esp + 0x5c], dx
mov edx, dword [esp + 0x2c]
mov word [esp + 0x56], cx
lea ecx, [edx + esi]
add edx, edi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
lea eax, [eax + edx + 7]
test eax, 0xfffffffe
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], 0
jle 0x1000ac69
mov edx, dword [esp + 0x18]
add edx, 2
mov dword [esp + 0x2c], edx
lea ebp, [ecx + 2]
mov ax, word [edx]
mov bx, word [ebp]
mov cx, word [ecx]
movsx edx, word [esp + 0x50]
mov word [esp + 0x38], ax
movsx eax, bx
lea edx, [edx + eax + 2]
movsx eax, word [esp + 0x4a]
sar edx, 2
sub cx, dx
movsx edx, cx
add eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
add eax, edx
mov dx, word [esp + 0x4a]
mov word [esp + 0x4a], cx
movsx ecx, word [esp + 0x5c]
mov word [esp + 0x4c], dx
movsx edx, word [esp + 0x38]
lea ecx, [ecx + edx + 2]
mov edx, dword [esp + 0x18]
mov dx, word [edx]
sar ecx, 2
sub dx, cx
movsx ecx, word [esp + 0x56]
mov word [esp + 0x50], bx
movsx ebx, dx
add ecx, ebx
mov ebx, dword [esp + 0x5c]
sar ecx, 1
add ecx, ebx
mov bx, word [esp + 0x56]
mov word [esp + 0x52], ax
mov word [esp + 0x58], bx
mov word [esp + 0x56], dx
mov edx, dword [esp + 0x2c]
mov bx, word [edx]
mov word [ebp], ax
mov ax, word [esp + 0x58]
mov word [esp + 0x5c], bx
mov bx, word [esp + 0x4c]
mov word [ebp - 2], bx
mov ebx, dword [esp + 0x3c]
mov word [edx - 2], ax
add dword [esp + 0x18], 4
mov eax, dword [esp + 0x28]
mov word [edx], cx
mov word [esp + 0x5e], cx
mov ecx, dword [esp + 0x30]
add ecx, 4
add edx, 4
add ebp, 4
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x30], ecx
add eax, 7
sar eax, 1
cmp dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jl 0x1000aa42
mov ebp, dword [esp + 0x40]
jmp 0x1000ac69
neg eax
mov cx, word [edi + eax*2 + 6]
mov word [esp + 0x28], cx
xor ecx, ecx
mov cx, word [esi + eax*2 + 6]
push ebp
mov dword [esp + 0x34], ecx
movsx ecx, cx
lea edx, [ecx + 2]
mov cx, word [esi + eax*2 + 8]
sar edx, 2
sub cx, dx
mov word [esp + 0x4e], cx
movsx ecx, word [esp + 0x2c]
lea edx, [ecx + 2]
mov cx, word [edi + eax*2 + 8]
sar edx, 2
sub cx, dx
mov word [esp + 0x5a], cx
mov ecx, dword [ebx + 0x48]
add ecx, ecx
mov dword [esp + 0x30], ecx
mov edx, edi
sub edx, ecx
mov dx, word [edx + 2]
mov word [esp + 0x1c], dx
mov edx, esi
sub edx, ecx
xor ecx, ecx
mov cx, word [edx + 2]
movsx edx, cx
mov dword [esp + 0x3c], ecx
movsx ecx, word [esp + 0x34]
lea edx, [edx + ecx + 2]
mov cx, word [esi + eax*2 + 4]
sar edx, 2
sub cx, dx
movsx edx, word [esp + 0x4e]
mov word [esp + 0x4c], cx
movsx ecx, cx
add edx, ecx
mov ecx, dword [esp + 0x34]
sar edx, 1
add edx, ecx
mov cx, word [esp + 0x4c]
mov word [esp + 0x56], dx
mov dx, word [esp + 0x4e]
mov word [esp + 0x50], dx
mov dx, word [esp + 0x3c]
mov word [esp + 0x54], dx
movsx edx, word [esp + 0x1c]
mov word [esp + 0x4e], cx
movsx ecx, word [esp + 0x2c]
lea edx, [edx + ecx + 2]
mov cx, word [edi + eax*2 + 4]
sar edx, 2
sub cx, dx
movsx edx, word [esp + 0x5a]
mov word [esp + 0x58], cx
movsx ecx, cx
add edx, ecx
mov ecx, dword [esp + 0x2c]
sar edx, 1
add edx, ecx
mov cx, word [esp + 0x58]
mov word [esp + 0x62], dx
mov dx, word [esp + 0x5a]
mov word [esp + 0x5c], dx
mov dx, word [esp + 0x1c]
mov word [esp + 0x5a], cx
mov ecx, dword [esp + 0x30]
mov word [esp + 0x60], dx
lea edx, [ecx + edi]
push edx
add ecx, esi
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx + 7]
sar edx, 1
push edx
push 0
lea ecx, [esp + 0x5c]
call fcn.10009770
mov al, byte [esp + 0x13]
test al, al
je 0x1000ad0d
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x1000acc5
cmp eax, dword [esp + 0x24]
jge 0x1000acc5
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x54]
mov cl, byte [eax + 0x15]
test cl, cl
je 0x1000ac99
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x14]
push edx
lea eax, [esi + 4]
lea ecx, [eax + edx*2 - 2]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x40]
push eax
push 0
push ecx
lea ecx, [ebx + 0x6c]
call fcn.100088c0
mov edx, dword [esp + 0x20]
lea ecx, [edx + 1]
test ecx, ecx
jl 0x1000ad0d
cmp ecx, dword [esp + 0x24]
jge 0x1000ad0d
mov eax, dword [ebx + 0x54]
mov dl, byte [eax + 0x15]
test dl, dl
je 0x1000ace5
mov ecx, dword [esp + 0x1c]
dec ecx
mov edx, dword [esp + 0x14]
push edx
add edi, 4
sub esp, 0xc
lea eax, [edi + edx*2 - 2]
mov edx, esp
mov dword [edx], edi
push ecx
mov dword [edx + 4], eax
mov eax, dword [ebx + 0xc]
push 0
push eax
lea ecx, [ebx + 0x6c]
mov dword [edx + 8], edi
call fcn.100088c0
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, 2
add edx, eax
add ecx, eax
sub edi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x44]
add eax, 0xc
cmp ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edi
lea esi, [esi + edx*4]
jl 0x1000a820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret