Function at 0x10027500
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, dword [esp + 0x34]
mov eax, dword [ebx + 0x38]
movzx ebp, word [ebx + 0x18]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x40]
push edi
mov edi, dword [esp + 0x40]
lea eax, [eax + ecx*2]
add ecx, esi
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0xc]
add eax, ebp
mov dword [esp + 0x14], ecx
add eax, edx
mov dword [esp + 0x18], eax
cmp edx, esi
jge 0x100275b7
push edi
mov eax, esi
sub eax, edx
push eax
push edx
push ebx
call fcn.1003af40
mov edx, eax
add esp, 0x10
mov dword [esp + 0x1c], edx
cmp edx, ebp
jle 0x10027593
push 0x100b85cc
push 0x1278d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.sqlite3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [ebx + 0x40]
lea eax, [ebp*2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x24]
add esp, 0xc
sub ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jge 0x100275cb
push edi
sub eax, ecx
push eax
push ecx
push ebx
call fcn.1003af40
add esp, 0x10
sub ebp, eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
movzx ecx, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
or ecx, eax
dec ecx
movzx eax, cx
inc eax
add eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jb 0x1002777a
cmp eax, dword [ebx + 0x3c]
ja 0x1002777a
mov eax, dword [esp + 0x34]
mov edx, esi
cmp edx, eax
jge 0x10027661
mov esi, dword [ebx + 0x40]
mov ecx, eax
sub ecx, edx
lea eax, [ebp*2]
cmp dword [esp + 0x3c], ecx
push eax
cmovl ecx, dword [esp + 0x40]
push esi
mov dword [esp + 0x20], ecx
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x44]
push edi
push dword [esp + 0x28]
push eax
push esi
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x30]
push ebx
call fcn.1003b350
add esp, 0x28
test eax, eax
jne 0x10027776
add ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp byte [ebx + 0xc], cl
jbe 0x1002770f
lea eax, [ebx + 0x1c]
mov dword [esp + 0x18], eax
movzx esi, word [eax]
sub esi, edx
add esi, dword [esp + 0x34]
js 0x100276f3
cmp esi, dword [esp + 0x3c]
jge 0x100276f3
mov eax, dword [ebx + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x24], ecx
cmp ebp, esi
jle 0x100276ae
mov eax, ebp
sub eax, esi
add eax, eax
push eax
push ecx
lea eax, [ecx + 2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [esp + 0x44]
add esp, 0xc
mov eax, dword [edi + 0xc]
add esi, edx
inc ebp
cmp word [eax + esi*2], 0
jne 0x100276c5
push esi
push edi
call fcn.10024360
add esp, 8
push edi
push 1
push esi
push dword [esp + 0x30]
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
push ebx
call fcn.1003b350
add esp, 0x1c
test eax, eax
jne 0x10027776
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add eax, 2
inc ecx
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 0xc]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x18]
jl 0x10027677
mov eax, dword [ebx + 0x40]
mov esi, dword [esp + 0x3c]
push edi
lea ecx, [eax + ebp*2]
mov eax, esi
sub eax, ebp
push eax
lea eax, [edx + ebp]
push eax
push ecx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
push ebx
call fcn.1003b350
add esp, 0x1c
test eax, eax
jne 0x10027776
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
movzx eax, si
mov word [ebx + 0x18], ax
shr eax, 8
mov byte [ebx + 0xc], 0
mov byte [edx + 3], al
mov al, byte [ebx + 0x18]
mov ebx, dword [esp + 0x20]
mov byte [edx + 4], al
mov eax, ecx
pop edi
sub eax, ebx
sub cl, bl
pop esi
sar eax, 8
pop ebp
mov byte [edx + 5], al
xor eax, eax
mov byte [edx + 6], cl
pop ebx
add esp, 0x1c
ret
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ebx, eax
test eax, eax
jle 0x100277c3
mov eax, dword [esp + 0x38]
add esi, esi
lea ebp, [eax*4]
mov eax, dword [edi + 0xc]
cmp word [esi + eax], 0
jne 0x100277b4
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push dword [eax + ebp]
mov eax, dword [ecx + 0x4c]
push ecx
call eax
mov ecx, dword [edi + 0xc]
add esp, 8
mov word [esi + ecx], ax
dec ebx
add ebp, 4
add esi, 2
test ebx, ebx
jg 0x10027791
mov eax, dword [esp + 0x3c]
push dword [esp + 0x30]
push eax
push dword [esp + 0x40]
push edi
call fcn.10040db0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret