Function at 0x1013acd0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
cmp byte [ecx + 0xc], 0
jne 0x1013af2a
lea ecx, [ebx + 2]
cmp ecx, dword [esi + 0x14]
jg 0x1013af2a
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], edx
mov ecx, dword [esi + 0x48]
call fcn.1013b1c0
test eax, eax
jne 0x1013b06b
mov edx, dword [esi + 0x38]
movzx edi, byte [esi + 9]
mov dword [esp + 0x20], 0
movzx eax, word [esi + 0x12]
movzx ecx, word [esi + 0x18]
lea ebx, [eax + ecx*2]
mov ecx, edi
movzx eax, word [edi + edx + 5]
rol ax, 8
movzx edi, ax
mov dword [esp + 8], ebx
cmp ebx, edi
ja 0x1013b044
cmp byte [ecx + edx + 2], 0
mov dword [esp + 4], esi
mov ebx, dword [ebp + 0xc]
je 0x1013af16
mov eax, dword [esp + 8]
add eax, 2
cmp eax, edi
ja 0x1013af76
mov dword [esp + 0x10], ecx
mov esi, edx
lea eax, [esp + 0x20]
mov ecx, dword [esp + 4]
mov edx, ebx
push eax
call fcn.1013b0b0
add esp, 4
test eax, eax
je 0x1013af5d
mov ebx, eax
sub ebx, esi
cmp ebx, dword [esp + 8]
jle 0x1013b07f
mov edx, esi
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
movzx eax, ax
sub dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [esp + 0x14], edx
jne 0x1013aeed
lea eax, [edx + ebx]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x40]
mov edx, dword [esp + 0x18]
lea ecx, [eax + edx*2]
lea edi, [eax + edx*2]
add edi, 2
movzx eax, word [esi + 0x18]
sub eax, edx
add eax, eax
push eax
push ecx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
rol bx, 8
mov word [edi - 2], bx
inc word [esi + 0x18]
movzx eax, byte [esi + 9]
mov ecx, dword [esp + 0x14]
inc byte [eax + ecx + 4]
je 0x1013b072
mov eax, dword [esi + 0x34]
xor edi, edi
cmp byte [eax + 0x11], 0
mov ebx, dword [ebp + 8]
je 0x1013aec5
mov dword [esp + 0x1c], 0
mov ecx, dword [esi + 0x50]
cmp ecx, 0x10007630
jne 0x1013b02d
movzx ecx, byte [esi + 0xa]
lea eax, [ebx + ecx]
movzx ecx, byte [ebx + ecx]
test cl, cl
jns 0x1013ae7e
and ecx, 0x7f
xor esi, esi
mov ebx, ecx
shl ebx, 7
movzx edx, byte [eax + esi + 1]
mov ecx, edx
and ecx, 0x7f
or ecx, ebx
lea ebx, [esi + 1]
test dl, dl
jns 0x1013ae73
cmp esi, 7
mov esi, ebx
jb 0x1013ae54
add eax, ebx
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, dword [esp + 4]
inc eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
movzx edx, word [esi + 0xe]
cmp ecx, edx
ja 0x1013aeda
sub eax, ebx
add eax, ecx
test eax, 0xfffc
mov edx, 4
cmovne edx, eax
mov word [esp + 0x32], dx
mov word [esp + 0x30], cx
movzx eax, word [esp + 0x30]
cmp dword [esp + 0x2c], eax
ja 0x1013af90
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.10156ff0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x20]
mov ecx, esi
mov edx, ebx
push eax
call fcn.10140210
add esp, 4
jmp 0x1013aeb6
lea esi, [edx + ebx]
add esi, 4
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffffc
push ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
bswap edi
mov dword [esi - 4], edi
jmp 0x1013add2
mov eax, dword [esp + 8]
add eax, 2
cmp byte [ecx + edx + 1], 0
jne 0x1013ad6a
jmp 0x1013af76
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x1013b010
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x1013b024
movzx eax, byte [esi + 0xc]
mov ecx, eax
inc cl
mov byte [esi + 0xc], cl
mov dword [esi + eax*4 + 0x24], edi
mov word [esi + eax*2 + 0x1c], dx
xor edi, edi
jmp 0x1013aec5
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1013b06b
mov edx, esi
mov eax, dword [esp + 8]
add eax, 2
mov ecx, dword [esp + 0x10]
add eax, ebx
cmp eax, edi
jg 0x1013afd0
sub edi, ebx
mov eax, edi
rol ax, 8
mov word [edx + ecx + 5], ax
mov ebx, edi
jmp 0x1013ada3
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
jb 0x1013afa1
add eax, ebx
cmp ecx, eax
jb 0x1013b0a2
movzx eax, word [esp + 0x32]
mov edx, dword [eax + ebx - 4]
bswap edx
mov ecx, dword [esi + 0x34]
lea ebx, [esp + 0x1c]
push ebx
push dword [esi + 4]
push 3
call fcn.1000f960
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x1013aec5
jmp 0x1013b06b
mov edi, ecx
mov esi, edx
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x14]
sub eax, dword [esp + 0xc]
cmp eax, 4
mov edx, 4
cmovl edx, eax
call fcn.1000b730
test eax, eax
jne 0x1013b06b
mov edx, esi
movzx eax, byte [esi + edi + 5]
shl eax, 8
movzx ecx, byte [esi + edi + 6]
add eax, ecx
dec eax
mov ecx, edi
movzx edi, ax
inc edi
jmp 0x1013af7c
push ebx
push eax
push edi
mov ebx, edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
add esp, 0xc
jmp 0x1013af37
bswap eax
mov dword [edi], eax
jmp 0x1013af42
call dword [section..00cfg]
lea eax, [esp + 0x20]
push eax
push ebx
push esi
call ecx
add esp, 0xc
jmp 0x1013aeb6
test edi, edi
je 0x1013b08b
push 0x101cff9b
push 0x1120c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
mov edi, eax
jmp 0x1013aec5
movzx eax, byte [esi + 9]
inc byte [eax + ecx + 3]
jmp 0x1013ae17
push 0x101cff9b
push 0x1121e
jmp 0x1013b052
mov eax, dword [esi + 0x34]
mov edi, 0x10000
cmp dword [eax + 0x28], 0x10000
je 0x1013ad51
jmp 0x1013b048
push 0x101cff9b
push 0x11109
jmp 0x1013b052