Function at 0x10010e70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
cmp byte [ecx + 0xc], 0
jne 0x100110f0
lea ecx, [ebx + 2]
cmp ecx, dword [edi + 0x14]
jg 0x100110f0
mov dword [esp + 4], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x1001107d
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x1001107d
cmp dword [edx + 0x60], 0
je 0x10010edc
call fcn.10011230
test eax, eax
jne 0x100111ad
mov edx, dword [edi + 0x38]
movzx ebx, byte [edi + 9]
mov dword [esp + 0x18], 0
movzx eax, word [edi + 0x12]
mov dword [esp + 8], edi
movzx ecx, word [edi + 0x18]
lea esi, [eax + ecx*2]
mov eax, ebx
mov dword [esp + 0xc], ebx
movzx edi, word [ebx + edx + 5]
shl edi, 0x10
bswap edi
cmp esi, edi
ja 0x1001117f
mov ecx, dword [esp + 4]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
cmp byte [eax + edx + 2], 0
mov dword [esp + 0x10], edx
jne 0x1001103e
mov eax, dword [esp + 0xc]
cmp byte [eax + edx + 1], 0
jne 0x1001103e
add esi, ecx
cmp esi, edi
jg 0x10011119
sub edi, ebx
mov eax, edi
rol ax, 8
mov esi, dword [esp + 0xc]
mov word [edx + esi + 5], ax
mov ebx, edi
mov edi, dword [esp + 8]
movzx eax, cx
sub dword [edi + 0x14], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x100110c0
lea eax, [edx + ebx]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [edi + 0x40]
mov edx, dword [esp + 0x14]
lea ecx, [eax + edx*2]
lea esi, [eax + edx*2]
add esi, 2
movzx eax, word [edi + 0x18]
sub eax, edx
add eax, eax
push eax
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
rol bx, 8
mov word [esi - 2], bx
inc word [edi + 0x18]
movzx eax, byte [edi + 9]
mov ecx, dword [esp + 0x10]
inc byte [eax + ecx + 4]
je 0x100111b7
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x11], 0
jne 0x10010fdc
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.1014dc80
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
mov ebx, dword [ebp + 8]
jne 0x10010fc9
mov ecx, dword [edi + 0x50]
call dword [section..00cfg]
lea esi, [esp + 0x18]
push esi
push ebx
push edi
call ecx
add esp, 0xc
movzx eax, word [esi + 0x10]
cmp dword [esi + 0xc], eax
jbe 0x10010fc9
mov ecx, dword [edi + 0x3c]
cmp ecx, ebx
jb 0x10011016
add eax, ebx
cmp ecx, eax
jb 0x100111f5
movzx eax, word [esp + 0x2a]
push dword [eax + ebx - 4]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, dword [edi + 0x34]
mov edx, eax
push dword [ebp + 0x18]
push dword [edi + 4]
push 3
call fcn.10027d30
add esp, 0xc
jmp 0x10010fc9
lea eax, [esi + 2]
cmp eax, edi
jg 0x10010f3b
lea eax, [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, ebx
push eax
call fcn.100116f0
add esp, 4
test eax, eax
je 0x100110a4
mov ebx, eax
mov edx, dword [esp + 0x10]
sub ebx, edx
cmp ebx, esi
jle 0x100111e9
mov edi, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x10010f5c
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x100111ad
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
ja 0x100111df
call fcn.10011a30
jmp 0x10010ed4
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
je 0x10010f3b
jmp 0x100111ad
lea esi, [edx + ebx]
add esi, 4
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
push dword [ebp + 0x14]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi - 4], eax
jmp 0x10010f7f
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x1001115d
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x1001116e
movzx eax, byte [edi + 0xc]
mov ecx, eax
inc cl
mov byte [edi + 0xc], cl
mov dword [edi + eax*4 + 0x24], esi
mov word [edi + eax*2 + 0x1c], dx
jmp 0x10010fc9
mov esi, edx
mov edx, ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x14]
sub eax, edx
cmp eax, 4
mov edx, 4
cmovl edx, eax
call fcn.10020fe0
test eax, eax
jne 0x100111ad
mov edx, esi
mov ecx, dword [esp + 0xc]
movzx eax, byte [esi + ecx + 5]
shl eax, 8
movzx ecx, byte [esi + ecx + 6]
add eax, ecx
dec eax
movzx edi, ax
inc edi
mov ecx, dword [esp + 4]
jmp 0x10010f45
push ebx
push eax
push esi
mov ebx, edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
add esp, 0xc
jmp 0x100110f9
push eax
mov ebx, edx
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov edx, ebx
add esp, 4
mov dword [esi], eax
jmp 0x10011100
test edi, edi
mov ecx, dword [esp + 4]
mov ebx, dword [ebp + 0xc]
je 0x100111c4
push 0x101c47ed
push 0x10632
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 ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x10010fc9
movzx eax, byte [edi + 9]
inc byte [eax + ecx + 3]
jmp 0x10010fc0
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x34]
mov edi, 0x10000
cmp dword [eax + 0x28], 0x10000
je 0x10010f19
jmp 0x1001118a
call fcn.10151ff0
jmp 0x10010ed4
push 0x101c47ed
push 0x10644
jmp 0x10011194
mov esi, 0xb
push 0x101c47ed
push 0x10533
push str.database_corruption
push str._s_at_line__d_of___.10s_
push esi
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
jmp 0x10010fc9