Function at 0x1001dcb0
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
mov ebp, dword [esp + 0x38]
push esi
mov eax, dword [ebx + 0x38]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x40]
push edi
movzx edi, word [ebx + 0x18]
lea eax, [eax + ecx*2]
add ecx, esi
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0xc]
add eax, edi
mov dword [esp + 0x14], ecx
add eax, edx
mov dword [esp + 0x18], eax
cmp edx, esi
jge 0x1001dd63
push ebp
mov eax, esi
sub eax, edx
push eax
push edx
push ebx
call fcn.1002ace0
mov edx, eax
add esp, 0x10
mov dword [esp + 0x1c], edx
cmp edx, edi
jle 0x1001dd43
push 0x10091874
push 0x112e6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
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, [edi + edi]
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 edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jge 0x1001dd77
push ebp
sub eax, ecx
push eax
push ecx
push ebx
call fcn.1002ace0
add esp, 0x10
sub edi, 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 0x1001df11
mov eax, dword [esp + 0x34]
mov edx, esi
cmp edx, eax
jge 0x1001de05
mov ecx, eax
mov eax, dword [esp + 0x3c]
sub ecx, edx
mov dword [esp + 0x18], ecx
cmp eax, ecx
jge 0x1001ddc7
mov ecx, eax
mov dword [esp + 0x18], eax
mov esi, dword [ebx + 0x40]
lea eax, [edi + edi]
push eax
push esi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x44]
push ebp
push dword [esp + 0x28]
push eax
push esi
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x30]
push ebx
call fcn.1002b100
add esp, 0x28
test eax, eax
jne 0x1001df0d
add edi, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp byte [ebx + 0xc], cl
jbe 0x1001dea6
lea eax, [ebx + 0x1c]
mov dword [esp + 0x18], eax
jmp 0x1001de20
movzx esi, word [eax]
sub esi, edx
add esi, dword [esp + 0x34]
js 0x1001de8a
cmp esi, dword [esp + 0x3c]
jge 0x1001de8a
mov eax, dword [ebx + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x24], ecx
cmp edi, esi
jle 0x1001de5b
mov eax, edi
sub eax, esi
add eax, eax
push eax
push ecx
lea eax, [ecx + 2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x38]
push ebp
push 1
lea eax, [esi + edx]
inc edi
push eax
push ecx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
push ebx
call fcn.1002b100
add esp, 0x1c
test eax, eax
jne 0x1001df0d
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 0x1001de20
mov eax, dword [ebx + 0x40]
mov esi, dword [esp + 0x3c]
push ebp
lea ecx, [eax + edi*2]
mov eax, esi
sub eax, edi
push eax
lea eax, [edi + edx]
push eax
push ecx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
push ebx
call fcn.1002b100
add esp, 0x1c
test eax, eax
jne 0x1001df0d
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 edi, eax
test eax, eax
jle 0x1001df66
mov eax, dword [esp + 0x38]
add esi, esi
lea ebx, [eax*4]
jmp 0x1001df30
mov eax, dword [ebp + 0xc]
cmp word [esi + eax], 0
jne 0x1001df53
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push dword [eax + ebx]
mov eax, dword [ecx + 0x4c]
push ecx
call eax
mov ecx, dword [ebp + 0xc]
add esp, 8
mov word [esi + ecx], ax
dec edi
add ebx, 4
add esi, 2
test edi, edi
jg 0x1001df30
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
push ebx
push eax
push dword [esp + 0x40]
push ebp
call fcn.1002fb80
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret