Function at 0x1000bae0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x18]
push esi
mov edx, 1
push edi
mov edi, dword [esp + 0x70]
xor ecx, ecx
cmp eax, edx
mov dword [ebp + 0x58], edi
mov byte [ebp + 0x9c], 0
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 3
jne 0x1000bb21
mov dword [esp + 0x4c], ecx
cmp eax, 2
jne 0x1000bb2e
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
cmp eax, ecx
mov dword [esp + 0x28], ecx
jle 0x1000bf82
jmp 0x1000bb40
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + eax*4 + 0x4c]
mov edx, eax
imul edx, edx, 0x58
lea ecx, [eax + eax*4 + 5]
lea esi, [edi + ecx*4]
movzx ecx, byte [edi + edx + 0x71]
add edi, edx
mov edx, dword [ebp + 0x54]
sub ecx, dword [edx + 0xc]
dec ecx
mov dword [ebp + 0x20], ecx
mov edx, dword [esi + 0x10]
movzx ebx, byte [edi + 0x75]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8]
movsx edx, byte [esi + 0xb]
mov dword [esp + 0x2c], esi
movsx esi, byte [esi + 0xa]
mov dword [ebp + 0xc], eax
mov dword [ebp], ebx
mov eax, dword [ecx]
mov dword [ebp + 4], eax
mov ecx, dword [ecx + 4]
mov dword [ebp + 0x14], edx
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x90], edx
mov dword [ebp + 0x8c], esi
mov dx, word [ebp + 0xa]
sub dx, word [ebp + 6]
mov cx, word [ebp + 8]
sub cx, word [ebp + 4]
xor eax, eax
mov ax, dx
xor edx, edx
mov dx, cx
mov ecx, ebp
mov dword [esp + 0x48], edi
add eax, 0x1a
push eax
add edx, 7
push edx
call fcn.10009bb0
neg al
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
jne 0x1000bf84
mov eax, dword [ebp + 0x20]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
jl 0x1000bf67
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + 0x10]
mov edx, dword [ebp + 0x54]
mov ecx, dword [edx + 0x18]
add esi, ebx
cmp ecx, 1
mov dword [esp + 0x38], esi
jne 0x1000bc20
cmp dword [esp + 0x10], eax
jl 0x1000bc20
test ebx, ebx
jle 0x1000bc20
mov eax, 1
jmp 0x1000bc22
xor eax, eax
mov byte [ebp + 0x9c], al
xor eax, eax
mov al, byte [esi]
xor ecx, ecx
and eax, 1
mov dword [ebp + 0x48], eax
mov cl, byte [esi + 2]
and ecx, 1
test ebx, ebx
mov dword [ebp + 0x4c], ecx
jle 0x1000bc64
mov dx, word [ebp + 0x2a]
sub dx, word [ebp + 0x26]
mov cx, word [ebp + 0x28]
sub cx, word [ebp + 0x24]
xor eax, eax
mov ax, dx
xor edx, edx
mov dx, cx
mov ecx, ebp
push eax
push edx
call fcn.1000a110
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x1c], eax
mov ecx, dword [esi]
mov al, byte [ebp + 0x9c]
test al, al
mov dword [ebp + 0x24], ecx
mov edx, dword [esi + 4]
mov dword [ebp + 0x28], edx
jne 0x1000bf53
mov al, byte [esi + 0xe]
test al, al
mov dword [esp + 0x24], 0
jle 0x1000bf03
mov eax, dword [esp + 0x1c]
lea ecx, [edi + eax*2 + 0x7a]
lea edx, [esi + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
lea ebx, [ebx]
mov eax, dword [edx - 4]
test eax, eax
je 0x1000bed1
mov eax, dword [esp + 0x20]
movzx eax, word [eax]
movzx ecx, byte [edi + 0xb2]
movzx ebx, byte [edi + 0x74]
mov dword [esp + 0x30], eax
sar eax, 0xb
lea eax, [ecx + eax - 1]
movsx ecx, byte [edx]
cmp ecx, 1
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x50]
jne 0x1000bcee
mov esi, 0x10011310
jmp 0x1000bcfd
cmp ecx, 3
mov esi, 0x10011410
je 0x1000bcfd
mov esi, 0x10011210
lea edi, [eax + 0x8310]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [eax + 0x84f8], ecx
mov ecx, ebx
shr ecx, 3
and cl, 1
mov dword [eax + 0x84fc], ebx
mov byte [eax + 0x8504], cl
mov dword [eax + 0x84f4], 0
xor ebx, ebx
mov bl, byte [edx]
lea edx, [esp + 0x5c]
push edx
mov ecx, esi
push ebx
call fcn.10007910
mov eax, dword [esp + 0x2c]
movsx ecx, byte [eax + 8]
mov edx, dword [esp + 0x5c]
mov edi, dword [ebp]
mov dword [ebp + 0x34], edx
mov edx, dword [esp + 0x60]
mov dword [ebp + 0x38], edx
mov edx, dword [esp + 0x64]
mov dword [ebp + 0x3c], edx
mov edx, dword [esp + 0x68]
movsx eax, bl
mov dword [ebp + 0x40], edx
mov edx, 1
cmp edi, edx
mov dword [ebp + 0x2c], eax
jne 0x1000bd86
mov dword [ebp + 0x30], 0
jmp case.default.0x1000bd8b
cmp eax, 3
ja case.default.0x1000bd8b
jmp dword [eax*4 + 0x1000bf90]
mov dword [ebp + 0x30], edx
jmp case.default.0x1000bd8b
mov dword [ebp + 0x30], 2
mov eax, dword [esp + 0x30]
push eax
push ecx
mov ecx, ebp
call fcn.10009c10
movzx ecx, word [esi + 0xa]
movzx edx, word [esi + 8]
imul ecx, edx
test ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], 0
jle 0x1000bec1
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x98]
cmp byte [eax], 0
jne 0x1000bec1
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 4]
mov edx, dword [esp + 0x14]
mov ebx, dword [eax + edx]
mov esi, dword [eax + edx + 0xc]
add eax, edx
test ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], 0
jle 0x1000bea5
lea esp, [esp]
mov dx, word [esi]
mov cx, word [esi + 4]
cmp dx, cx
jae 0x1000be8d
xor edi, edi
mov di, word [esi + 2]
xor eax, eax
mov ax, word [esi + 6]
cmp di, ax
jae 0x1000be8d
xor ebx, ebx
mov bl, byte [ebp + 0x9c]
sub eax, edi
sub ecx, edx
movzx eax, ax
movzx ecx, cx
push ebx
push eax
push ecx
mov ecx, dword [ebp + 0x50]
call fcn.100056e0
mov al, byte [ebp + 0x9c]
test al, al
jne 0x1000be70
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 0x1d0]
mov ecx, dword [ebp + 0x50]
push eax
push esi
call fcn.100059b0
test eax, eax
jne 0x1000bf84
movzx edx, word [esi + 2]
movzx eax, word [esi]
xor ecx, ecx
mov cl, byte [ebp + 0x9c]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.10009c70
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
inc eax
add esi, 0x14
cmp eax, ebx
mov dword [esp + 0x30], eax
jl 0x1000be10
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
inc eax
add esi, 0x10
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], esi
jl 0x1000bdd2
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
add ecx, 2
add edx, 8
inc eax
mov dword [esp + 0x20], ecx
movsx ecx, byte [esi + 0xe]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
jl 0x1000bcb0
mov al, byte [ebp + 0x9c]
test al, al
mov eax, dword [ebp]
mov ecx, ebp
je 0x1000bf25
cmp eax, 1
jne 0x1000bf1e
call fcn.1000a570
jmp 0x1000bf36
call fcn.1000a410
jmp 0x1000bf36
cmp eax, 1
jne 0x1000bf31
call fcn.1000a6d0
jmp 0x1000bf36
call fcn.1000ad60
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x20]
inc ecx
add ebx, 0x28
cmp ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], ebx
jle 0x1000bbf7
jmp 0x1000bf67
cmp dword [ebp], 1
mov ecx, ebp
jne 0x1000bf62
call fcn.1000a570
jmp 0x1000bf67
call fcn.1000a410
mov ecx, ebp
call fcn.1000b9c0
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x1000bb3c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4