Function at 0x1001af30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edx
xor ebx, ebx
mov dword [esp + 0x18], edi
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
mov edx, dword [ecx + 0x38]
movzx esi, byte [edx + 0x24]
movzx eax, byte [edx + 0x25]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 0x26]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 0x27]
shl esi, 8
or esi, eax
cmp esi, dword [esp + 0x30]
jb 0x1001afa1
push 0x100f686c
push 0xdff9
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100071a0
add esp, 0x10
lea eax, [ebx + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1001b71d
mov dl, byte [ebp + 0x10]
xor cl, cl
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
cmp dl, 1
jne 0x1001afe9
cmp eax, dword [esp + 0x30]
ja 0x1001affb
lea ecx, [esp + 0x13]
mov edx, eax
push 0
push ecx
mov ecx, edi
call fcn.10016670
add esp, 8
test eax, eax
jne 0x1001b943
cmp byte [esp + 0x13], 2
jne 0x1001affb
mov byte [esp + 0x24], 1
jmp 0x1001affb
cmp dl, 2
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001b01a
call fcn.10012bd0
jmp 0x1001b01f
call fcn.100128c0
test eax, eax
jne 0x1001b943
lea edx, [esi - 1]
mov esi, dword [esp + 0x1c]
mov eax, edx
shr eax, 0x18
mov ecx, dword [esi + 0x38]
mov byte [ecx + 0x24], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0x25], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0x26], al
mov byte [ecx + 0x27], dl
nop dword [eax]
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x1001b076
mov ecx, dword [ebx + 0x38]
movzx eax, byte [ecx]
movzx esi, byte [ecx + 1]
shl eax, 8
or esi, eax
movzx eax, byte [ecx + 2]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 3]
jmp 0x1001b093
mov ecx, dword [esi + 0x38]
movzx eax, byte [ecx + 0x20]
movzx esi, byte [ecx + 0x21]
shl eax, 8
or esi, eax
movzx eax, byte [ecx + 0x22]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x23]
shl esi, 8
or esi, eax
cmp esi, dword [esp + 0x30]
ja 0x1001b6d4
mov ecx, dword [edi]
lea eax, [esp + 0x38]
push 0
push eax
mov edx, esi
call fcn.10011f40
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001b6f2
mov eax, dword [esp + 0x38]
cmp esi, 1
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], edi
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ecx
mov dword [edx + 0x44], eax
setne al
mov dword [edx + 0x34], ebx
dec al
and al, 0x64
mov dword [edx + 0x38], ecx
mov dword [edx + 0x48], esi
mov byte [edx + 6], al
movzx ebx, byte [ecx + 4]
movzx eax, byte [ecx + 5]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 6]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 7]
shl ebx, 8
or ebx, eax
mov dword [esp + 0x20], ebx
jne 0x1001b174
cmp byte [esp + 0x24], 0
jne 0x1001b174
mov edi, dword [esp + 0x38]
mov ecx, edi
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001b13c
call fcn.10012bd0
jmp 0x1001b141
call fcn.100128c0
mov edi, eax
test edi, edi
jne 0x1001b6c2
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov dword [eax], esi
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esi + 0x38]
mov eax, dword [eax]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [eax], ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x1001b656
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x24]
shr eax, 2
sub eax, 2
cmp ebx, eax
ja 0x1001b6a4
cmp byte [esp + 0x24], 0
mov eax, dword [ebp + 0xc]
je 0x1001b3dc
cmp eax, esi
je 0x1001b1ab
jbe 0x1001b3dc
cmp byte [ebp + 0x10], 2
jne 0x1001b3dc
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x38]
mov byte [esp + 0x24], 0
mov dword [eax], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x10]
mov dword [eax], edx
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, edi
jbe 0x1001b1d9
call fcn.10012bd0
jmp 0x1001b1de
call fcn.100128c0
mov edi, eax
test edi, edi
jne 0x1001b6c2
test ebx, ebx
jne 0x1001b257
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x1001b210
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
mov eax, dword [ecx + 0x38]
mov ecx, dword [esi + 0x38]
mov eax, dword [eax]
mov dword [ecx + 0x20], eax
jmp 0x1001b656
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001b22b
call fcn.10012bd0
jmp 0x1001b230
call fcn.100128c0
mov edi, eax
test edi, edi
jne 0x1001b6c2
mov ecx, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [ecx + 0x38]
mov ecx, dword [esi + 0x38]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x1001b656
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x38]
movzx eax, byte [ecx + 8]
movzx ebx, byte [ecx + 9]
shl eax, 8
or ebx, eax
movzx eax, byte [ecx + 0xa]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 0xb]
shl ebx, 8
or ebx, eax
cmp ebx, dword [esp + 0x30]
ja 0x1001b68c
lea eax, [esp + 0x3c]
mov edx, ebx
push 0
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
call fcn.10011f40
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001b6c2
mov ecx, dword [esp + 0x3c]
cmp ebx, 1
mov esi, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x34], eax
setne al
dec al
mov dword [esi + 0x44], ecx
and al, 0x64
mov dword [esi + 0x48], ebx
mov byte [esi + 6], al
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001b2e7
call fcn.10012bd0
jmp 0x1001b2ec
call fcn.100128c0
mov edi, eax
test edi, edi
jne 0x1001b682
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x38]
mov edx, dword [esp + 0x20]
dec edx
mov eax, dword [eax + 0x38]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edx
mov ecx, dword [esi + 0x38]
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 5], al
mov eax, edx
shr eax, 8
mov byte [ecx + 6], al
lea eax, [edx*4]
push eax
mov eax, dword [esp + 0x18]
mov byte [ecx + 7], dl
mov eax, dword [eax + 0x38]
add eax, 0xc
push eax
mov eax, dword [esi + 0x38]
add eax, 8
push eax
call fcn.100c17c0
mov ecx, dword [esi + 0x44]
add esp, 0xc
call fcn.100124f0
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x1001b386
mov esi, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov ecx, dword [esi + 0x38]
mov byte [ecx + 0x20], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 0x21], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 0x23], bl
xor ebx, ebx
mov byte [ecx + 0x22], al
mov dword [esp + 0x14], ebx
jmp 0x1001b656
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001b3a1
call fcn.10012bd0
jmp 0x1001b3a6
call fcn.100128c0
mov edi, eax
test edi, edi
jne 0x1001b6c2
mov ecx, dword [esi + 0x38]
mov eax, ebx
mov esi, dword [esp + 0x1c]
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 3], bl
xor ebx, ebx
mov byte [ecx + 2], al
mov dword [esp + 0x14], ebx
jmp 0x1001b656
test ebx, ebx
je 0x1001b67e
test eax, eax
je 0x1001b566
cmp byte [ebp + 0x10], 2
mov dword [esp + 0x20], edi
jne 0x1001b4b3
xor esi, esi
lea edx, [ecx + 0xa]
nop
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
cmp ecx, dword [ebp + 0xc]
jbe 0x1001b4a7
inc esi
add edx, 4
cmp esi, ebx
jb 0x1001b400
mov ecx, dword [esp + 0x28]
mov eax, edi
lea esi, [ecx + eax*4]
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xb]
shl ecx, 8
or ecx, eax
cmp ecx, dword [esp + 0x30]
ja 0x1001b698
cmp byte [esp + 0x24], 0
je 0x1001b47d
cmp ecx, dword [ebp + 0xc]
je 0x1001b47d
jae 0x1001b64e
cmp byte [ebp + 0x10], 2
jne 0x1001b64e
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, edi
jbe 0x1001b571
call fcn.10012bd0
jmp 0x1001b576
mov ecx, dword [esp + 0x28]
mov eax, esi
mov dword [esp + 0x20], esi
jmp 0x1001b435
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xb]
shl edx, 8
or edx, eax
sub edx, dword [ebp + 0xc]
jns 0x1001b4e8
cmp edx, 0x80000000
jne 0x1001b4e6
mov edx, 0x7fffffff
jmp 0x1001b4e8
neg edx
mov esi, 1
cmp ebx, esi
jbe 0x1001b433
mov edi, ecx
nop word [eax + eax]
movzx eax, byte [edi + esi*4 + 8]
movzx ecx, byte [edi + esi*4 + 9]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + esi*4 + 0xa]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + esi*4 + 0xb]
shl eax, 8
or eax, ecx
sub eax, dword [ebp + 0xc]
jns 0x1001b538
cmp eax, 0x80000000
jne 0x1001b536
mov eax, 0x7fffffff
jmp 0x1001b538
neg eax
cmp eax, edx
mov ecx, esi
cmovge ecx, dword [esp + 0x20]
inc esi
cmp eax, edx
mov dword [esp + 0x20], ecx
cmovge eax, edx
mov edx, eax
cmp esi, ebx
jb 0x1001b500
mov edi, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
jmp 0x1001b435
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x1001b435
call fcn.100128c0
mov edi, eax
test edi, edi
jne 0x1001b6c2
mov ecx, dword [esp + 0x28]
lea edx, [ebx - 1]
cmp dword [esp + 0x20], edx
jae 0x1001b594
mov eax, dword [ecx + ebx*4 + 4]
mov dword [esi + 8], eax
mov ebx, dword [esp + 0x18]
mov eax, edx
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 5], al
mov eax, edx
shr eax, 8
mov byte [ecx + 6], al
mov eax, dword [ebp + 8]
mov byte [ecx + 7], dl
mov ecx, dword [ebx + 0x3c]
mov esi, dword [eax]
test ecx, ecx
je 0x1001b5d2
cmp esi, dword [ecx]
ja 0x1001b5ce
mov edx, esi
call fcn.1000c740
test eax, eax
je 0x1001b5d2
xor eax, eax
jmp 0x1001b5d7
mov eax, 1
mov ecx, dword [ebx]
mov edx, esi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10011f40
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001b649
mov ecx, dword [esp + 0x44]
cmp esi, 1
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov dword [edx + 0x38], eax
setne al
mov dword [edx + 0x34], ebx
dec al
mov ebx, dword [esp + 0x2c]
and al, 0x64
mov dword [edx + 0x44], ecx
mov dword [edx + 0x48], esi
mov byte [edx + 6], al
mov dword [ebx], edx
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001b630
call fcn.10012bd0
jmp 0x1001b635
call fcn.100128c0
mov edi, eax
test edi, edi
je 0x1001b649
mov ecx, dword [ebx]
test ecx, ecx
je 0x1001b649
mov ecx, dword [ecx + 0x44]
call fcn.100124f0
mov byte [esp + 0x24], 0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1001b666
mov ecx, dword [eax + 0x44]
call fcn.100124f0
cmp byte [esp + 0x24], 0
mov dword [esp + 0x34], 0
je 0x1001b6c2
mov edi, dword [esp + 0x18]
jmp 0x1001b050
mov ebx, edx
jmp 0x1001b652
mov ecx, dword [esi + 0x44]
call fcn.100124f0
jmp 0x1001b6c2
push 0x100f686c
push 0xe068
jmp 0x1001b6ae
push 0x100f686c
push 0xe0a9
jmp 0x1001b6ae
push 0x100f686c
push 0xe046
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100071a0
add esp, 0x10
mov edi, 0xb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001b6f2
mov ecx, dword [eax + 0x44]
call fcn.100124f0
jmp 0x1001b6f2
push 0x100f686c
push 0xe02a
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.100071a0
add esp, 0x10
mov edi, 0xb
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1001b702
mov ecx, dword [ecx + 0x44]
call fcn.100124f0
mov ebx, dword [esp + 0x2c]
test edi, edi
je 0x1001b8fe
mov dword [ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x44]
xor eax, eax
mov esi, edi
mov edx, dword [ecx + 0x10]
cmp byte [esi + 0x13], al
sete al
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001b746
call fcn.10012bd0
jmp 0x1001b74b
call fcn.100128c0
test eax, eax
jne 0x1001b943
mov eax, dword [0x10100f7c]
xor edx, edx
div dword [esi + 0x20]
inc dword [esi + 0x2c]
mov edi, dword [esi + 0x2c]
inc eax
mov dword [esp + 0x44], eax
cmp edi, eax
jne 0x1001b770
inc edi
mov dword [esi + 0x2c], edi
cmp byte [esi + 0x11], 0
mov ebx, edi
je 0x1001b851
cmp edi, 2
jae 0x1001b785
xor eax, eax
jmp 0x1001b7b4
mov ebx, dword [esp + 0x18]
lea esi, [edi - 2]
mov eax, 0xcccccccd
mul dword [ebx + 0x24]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
sub esi, edx
lea eax, [esi + 2]
sub eax, dword [esp + 0x44]
neg eax
sbb eax, eax
add esi, 3
add eax, esi
mov esi, ebx
mov ebx, edi
cmp eax, edi
jne 0x1001b851
push dword [esp + 0x38]
mov ecx, dword [esi]
lea eax, [esp + 0x48]
push eax
mov edx, edi
call fcn.10011f40
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001b82b
mov ecx, dword [esp + 0x44]
cmp edi, 1
mov ebx, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x34], eax
setne al
dec al
mov dword [ebx + 0x44], ecx
and al, 0x64
mov dword [ebx + 0x48], edi
mov byte [ebx + 6], al
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001b818
call fcn.10012bd0
jmp 0x1001b81d
call fcn.100128c0
mov ecx, dword [ebx + 0x44]
mov esi, eax
call fcn.100124f0
test esi, esi
je 0x1001b834
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
xor edx, edx
mov eax, dword [0x10100f7c]
div dword [esi + 0x20]
inc dword [esi + 0x2c]
mov ebx, dword [esi + 0x2c]
inc eax
cmp ebx, eax
jne 0x1001b851
inc ebx
mov dword [esi + 0x2c], ebx
mov eax, dword [esi + 0xc]
push dword [esp + 0x38]
mov ecx, dword [eax + 0x38]
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 0x1c], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 0x1d], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 0x1e], al
mov eax, dword [ebp + 8]
mov byte [ecx + 0x1f], bl
mov esi, dword [esi + 0x2c]
mov edx, esi
mov ebx, dword [esp + 0x1c]
mov dword [eax], esi
lea eax, [esp + 0x48]
push eax
mov ecx, dword [ebx]
call fcn.10011f40
add esp, 8
test eax, eax
jne 0x1001b943
mov ecx, dword [esp + 0x44]
cmp esi, 1
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
mov dword [edx + 0x38], eax
setne al
mov dword [edx + 0x34], ebx
dec al
mov ebx, dword [esp + 0x2c]
and al, 0x64
mov dword [edx + 0x44], ecx
mov dword [edx + 0x48], esi
mov byte [edx + 6], al
mov dword [ebx], edx
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001b8dc
call fcn.10012bd0
jmp 0x1001b8e1
call fcn.100128c0
mov edi, eax
test edi, edi
je 0x1001b8fe
mov ecx, dword [ebx]
test ecx, ecx
je 0x1001b706
mov ecx, dword [ecx + 0x44]
call fcn.100124f0
jmp 0x1001b706
mov eax, dword [ebx]
mov ecx, dword [eax + 0x44]
cmp word [ecx + 0x1a], 1
jle 0x1001b93e
test eax, eax
je 0x1001b913
call fcn.100124f0
push 0x100f686c
push 0xe10c
push str.database_corruption_at_line__d_of___.10s_
push 0xb
mov dword [ebx], 0
call fcn.100071a0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret