Function at 0x100cb4f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], bl
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xd8], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x110], edi
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x10c], eax
test ecx, ecx
jne 0x100cb561
pop edi
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 0x18]
movzx edx, byte [edi + 0xc]
push esi
lea esi, [edx + ecx]
cmp esi, 2
jae 0x100cb57a
mov dword [ebp - 0x120], ebx
jmp 0x100cb5ae
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100cb589
mov dword [ebp - 0x120], ebx
jmp 0x100cb5a4
cmp eax, esi
jne 0x100cb59d
mov eax, dword [ebp + 0x18]
add esi, 0xfffffffe
add esi, eax
mov dword [ebp - 0x120], esi
jmp 0x100cb5a7
dec eax
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x18]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x120]
sub eax, edx
lea edx, [eax + esi]
cmp edx, ecx
jne 0x100cb5d5
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x100cb5e9
mov eax, dword [edi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
lea edi, [ebp - 0x24]
push 0
push 0
lea edi, [edi + esi*4]
mov dword [ebp - 0x124], ecx
mov eax, dword [ecx]
bswap eax
push edi
push eax
push dword [ebp - 0x10c]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x108], eax
call fcn.100ebda0
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100cb807
mov ecx, dword [edi]
mov dword [ebp - 0xf8], esi
cmp dword [ecx + 0x14], 0
jge 0x100cb65d
push ecx
call fcn.100cd2b0
mov edi, eax
add esp, 4
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xf4], edi
test edi, edi
jne 0x100cb88b
mov eax, esi
dec esi
test eax, eax
je 0x100cb8d9
mov edi, dword [ebp - 0x110]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x100cb6c9
mov eax, dword [ebp - 0x120]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x100cb6c9
mov eax, dword [edi + 0x24]
lea edi, [esi*4]
push eax
mov dword [ebp + edi - 0x10], eax
mov ecx, dword [eax]
mov eax, dword [ebp - 0x110]
bswap ecx
push eax
mov dword [ebp - 0x134], ecx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x108], ecx
call eax
movzx eax, ax
add esp, 8
mov dword [ebp + edi - 0x4c], eax
mov eax, dword [ebp - 0x110]
mov byte [eax + 0xc], 0
jmp 0x100cb7d4
mov ecx, dword [ebp - 0x120]
movzx eax, dl
mov edx, dword [ebp - 0xf8]
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, edx
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
mov edi, dword [edi + 0x38]
movzx ecx, cx
and ecx, eax
lea eax, [edx*4 - 4]
add edi, ecx
mov dword [ebp - 0xf0], eax
lea ecx, [ebp - 0x10]
add eax, ecx
mov dword [ebp - 0x104], eax
push edi
mov dword [eax], edi
mov eax, dword [edi]
bswap eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x110]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xfc], edx
mov dword [ebp + eax - 0x4c], edx
mov eax, dword [ebp - 0x10c]
test byte [eax + 0x18], 0xc
je 0x100cb7a1
mov eax, dword [ebp - 0x110]
mov ecx, edi
mov ebx, dword [ebp - 0x10c]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x28]
mov ebx, 0
jg 0x100cb897
mov eax, dword [ebp - 0x140]
push edx
add eax, ecx
push edi
push eax
call fcn.1018c580
mov eax, dword [ebp - 0x110]
add esp, 0xc
mov edx, dword [ebp - 0xfc]
sub edi, dword [eax + 0x38]
mov eax, dword [ebp - 0x104]
add edi, dword [ebp - 0x140]
mov dword [eax], edi
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0xf4]
push eax
push edx
mov edx, dword [ebp - 0x110]
movzx eax, byte [edx + 0xc]
sub ecx, eax
mov eax, dword [ebp - 0xf8]
dec eax
add eax, ecx
push eax
push edx
call fcn.100d5ce0
mov edi, dword [ebp - 0xf0]
add esp, 0x10
push 0
lea eax, [ebp - 0x24]
add edi, eax
mov eax, dword [ebp - 0x134]
push 0
push edi
push eax
push dword [ebp - 0x10c]
call fcn.100ebda0
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
je 0x100cb630
lea eax, [esi*4 + 4]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x114], ebx
jle 0x100cc9dc
nop dword [eax + eax]
mov edx, dword [ebp + ebx*4 - 0x24]
test edx, edx
je 0x100cc9cf
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100cc9c6
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1017aa20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100cc9cf
lea eax, [esi*4]
jmp 0x100cb80e
push 0x101efecc
push 0x1146f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
mov eax, dword [ebp - 0xf8]
shl eax, 2
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0xe8], 0xb
push 0
push eax
call fcn.1018d4b0
add esp, 0x20
jmp 0x100cb81d
mov eax, dword [ebp - 0x10c]
mov esi, dword [eax + 0x24]
mov eax, 0xaaaaaaab
lea ecx, [esi - 8]
mul ecx
mov edi, edx
shr edi, 2
add edi, 4
imul edi, dword [ebp - 0x114]
add edi, 3
and edi, 0xfffffffc
lea eax, [edi + edi*2]
add eax, eax
mov dword [ebp - 0x104], eax
add eax, esi
cdq
push edx
push eax
call fcn.10120e70
mov esi, eax
add esp, 8
mov dword [ebp - 0xd8], esi
test esi, esi
jne 0x100cb934
mov dword [ebp - 0xe8], 7
jmp 0x100cb81d
mov ecx, dword [ebp - 0x24]
lea eax, [esi + edi*4]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x104]
add eax, esi
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xfc], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [ebp - 0x130], eax
mov al, byte [ecx + 3]
mov byte [ebp - 0xe1], al
movzx eax, al
mov dword [ebp - 0x144], eax
xor eax, eax
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x114], eax
jle 0x100cbbe6
nop dword [eax + eax]
shl eax, 2
mov dword [ebp - 0x128], eax
mov edi, dword [ebp + eax - 0x24]
mov dword [ebp - 0x118], edi
movzx eax, word [edi + 0x1a]
mov edx, dword [edi + 0x38]
mov ecx, eax
movzx esi, word [edi + 0x12]
mov dword [ebp - 0x138], eax
add esi, edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf0], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x100cbd5b
movzx eax, byte [edi + 0xc]
movzx ecx, word [edi + 0x18]
add ecx, eax
mov eax, dword [ebp - 0xe0]
add ecx, ecx
push ecx
mov ecx, dword [ebp - 0xd4]
push 0
lea eax, [ecx + eax*2]
push eax
call fcn.1018d4b0
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x100cbaa4
movzx edx, word [edi + 0x1c]
test edx, edx
je 0x100cba64
mov ebx, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xf8]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [ebp - 0x104]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [ebp - 0xd8]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x100cba20
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0xe0], ebx
mov ebx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], esi
mov al, byte [edi + 0xc]
xor edx, edx
test al, al
je 0x100cbaa4
mov ebx, dword [ebp - 0xe0]
lea ecx, [edi + 0x24]
mov esi, dword [ebp - 0xd8]
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebx*4], eax
inc edx
movzx eax, byte [edi + 0xc]
inc ebx
cmp edx, eax
jl 0x100cba80
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0xe0], ebx
mov ebx, dword [ebp - 0xec]
movzx eax, word [edi + 0x12]
xor edx, edx
movzx ecx, word [edi + 0x18]
add eax, dword [ebp - 0xf8]
lea eax, [eax + ecx*2]
xor ecx, ecx
mov edi, eax
sub edi, esi
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x100cbb09
mov ebx, dword [ebp - 0xe0]
nop
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [ebp - 0x138]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [ebp - 0xd8]
add ecx, dword [ebp - 0xf8]
mov dword [eax + ebx*4], ecx
inc ebx
cmp edx, edi
jb 0x100cbad0
mov dword [ebp - 0xe0], ebx
mov ebx, dword [ebp - 0xec]
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x11c]
mov edi, dword [ebp - 0xe0]
mov dword [ebp + edx - 0x74], edi
cmp eax, dword [ebp - 0x12c]
jge 0x100cbbd3
cmp byte [ebp - 0xe1], 0
jne 0x100cbbd3
movzx eax, word [ebp + edx - 0x4c]
mov ecx, dword [ebp - 0xd4]
mov esi, dword [ebp - 0xfc]
push eax
push dword [ebp + edx - 0x10]
add esi, ebx
mov word [ecx + edi*2], ax
add ebx, eax
push esi
mov dword [ebp - 0xec], ebx
call fcn.1018c580
mov ecx, dword [ebp - 0x130]
add esp, 0xc
mov edx, dword [ebp - 0xd4]
movzx eax, cx
add eax, esi
mov esi, dword [ebp - 0xd8]
mov dword [esi + edi*4], eax
mov eax, dword [ebp - 0x118]
sub word [edx + edi*2], cx
cmp byte [eax + 8], 0
jne 0x100cbb9c
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + edi*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x100cbbc6
cmp word [edx + edi*2], 4
jae 0x100cbbc6
mov eax, dword [ebp - 0xfc]
nop dword [eax]
mov byte [eax + ebx], 0
inc ebx
inc word [edx + edi*2]
cmp word [edx + edi*2], 4
jb 0x100cbbb0
mov dword [ebp - 0xec], ebx
mov eax, dword [ebp - 0x11c]
inc edi
mov dword [ebp - 0xe0], edi
inc eax
mov dword [ebp - 0x11c], eax
cmp eax, dword [ebp - 0x114]
jl 0x100cb990
mov eax, dword [ebp - 0x130]
xor ecx, ecx
movzx edi, ax
xor ebx, ebx
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xf0], ebx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add edi, eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x11c], edi
test eax, eax
jle 0x100cbd0d
mov esi, dword [ebp + ebx*4 - 0x24]
mov edx, dword [ebp + ebx*4 - 0x74]
mov dword [ebp - 0x128], edx
mov eax, dword [esi + 0x3c]
mov dword [ebp + ecx*4 - 0xd0], eax
mov dword [ebp + ecx*4 - 0xb8], edx
test ecx, ecx
je 0x100cbc54
cmp edx, dword [ebp + ecx*4 - 0xbc]
jne 0x100cbc54
dec ecx
mov dword [ebp - 0xec], ecx
cmp byte [ebp - 0xe1], 0
jne 0x100cbc7e
mov eax, dword [ebp - 0x110]
inc ecx
mov dword [ebp - 0xec], ecx
mov eax, dword [eax + 0x3c]
mov dword [ebp + ecx*4 - 0xd0], eax
lea eax, [edx + 1]
mov dword [ebp + ecx*4 - 0xb8], eax
sub edi, dword [esi + 0x14]
lea eax, [ebp - 0x4c]
cmp byte [esi + 0xc], 0
lea eax, [eax + ebx*4]
mov dword [ebp - 0x12c], eax
mov dword [eax], edi
mov dword [ebp - 0xfc], 0
jbe 0x100cbce7
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [ebp - 0xfc]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [ebp - 0xfc], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x100cbca2
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xec]
mov edx, dword [ebp - 0x128]
mov ebx, dword [ebp - 0xf0]
mov dword [eax], edi
mov eax, dword [ebp - 0x114]
inc ecx
mov edi, dword [ebp - 0x11c]
mov dword [ebp + ebx*4 - 0x60], edx
inc ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ecx
cmp ebx, eax
jl 0x100cbc21
mov ebx, dword [ebp - 0xe0]
mov edi, eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0xf0], 0
test eax, eax
jle 0x100cbf43
mov edx, 1
xor ecx, ecx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xf8], ecx
lea eax, [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x12c], eax
mov esi, dword [eax]
cmp esi, dword [ebp - 0x11c]
jle 0x100cbe67
jmp 0x100cbd8d
push 0x101efecc
push 0x114b1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100cc954
lea eax, [ebp - 0x4c]
add eax, ecx
cmp edx, edi
jl 0x100cbdb7
inc edx
mov dword [ebp - 0x118], edx
cmp edx, 5
jg 0x100cc10d
mov ebx, dword [ebp - 0xe0]
mov dword [ebp + ecx - 0x48], 0
mov esi, dword [eax]
mov dword [ebp + ecx - 0x5c], ebx
jmp 0x100cbdbd
mov ebx, dword [ebp - 0xe0]
mov edi, dword [ebp + ecx - 0x60]
mov edx, dword [ebp - 0xd4]
lea ecx, [edi - 1]
mov dword [ebp - 0x128], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x100cbdf2
push ecx
lea eax, [ebp - 0xe0]
push eax
call fcn.100d27e0
mov edx, dword [ebp - 0xd4]
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x12c]
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [ebp - 0xe1], 0
mov dword [ecx], esi
jne 0x100cbe35
cmp edi, ebx
jge 0x100cbe33
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x100cbe2b
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.100d27e0
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x100cbe35
xor eax, eax
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xec]
mov edi, dword [ebp - 0x118]
add dword [ebp + ecx - 0x48], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp + ecx - 0x60], eax
cmp esi, dword [ebp - 0x11c]
jg 0x100cbd88
mov ebx, dword [ebp - 0xe0]
mov edi, dword [ebp + ecx - 0x60]
cmp edi, ebx
jge 0x100cbf16
mov edx, dword [ebp - 0xd4]
nop dword [eax]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x100cbea8
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.100d27e0
mov ecx, dword [ebp - 0xf8]
add esp, 8
mov edx, dword [ebp - 0xd4]
movzx eax, ax
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [ebp - 0x11c]
jg 0x100cc0df
inc edi
mov dword [ebp + ecx - 0x4c], esi
cmp byte [ebp - 0xe1], 0
mov dword [ebp + ecx - 0x60], edi
jne 0x100cbf04
cmp edi, ebx
jge 0x100cbf02
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x100cbef4
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.100d27e0
mov edx, dword [ebp - 0xd4]
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0xf8]
movzx eax, ax
add eax, 2
jmp 0x100cbf04
xor eax, eax
sub dword [ebp + ecx - 0x48], eax
cmp edi, ebx
jl 0x100cbe80
mov edx, dword [ebp - 0xec]
mov edi, edx
mov dword [ebp - 0x118], edi
mov eax, dword [ebp - 0xf0]
add ecx, 4
inc eax
mov dword [ebp - 0xf8], ecx
inc edx
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], edx
cmp eax, edi
jl 0x100cbd40
lea eax, [edi - 1]
mov ecx, eax
mov dword [ebp - 0xec], eax
test ecx, ecx
jle 0x100cc186
shl ecx, 2
lea eax, [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x148], eax
mov edi, dword [eax]
lea eax, [ebp + ecx - 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x60]
sub eax, 4
mov dword [ebp - 0x104], eax
mov ecx, dword [eax + ecx]
mov dword [ebp - 0xfc], ecx
lea esi, [ecx - 1]
mov ecx, dword [ebp - 0xd4]
mov eax, esi
sub eax, dword [ebp - 0x144]
inc eax
cmp word [ecx + eax*2], 0
lea ecx, [ecx + eax*2]
mov dword [ebp - 0xf0], ecx
jne 0x100cbfc2
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.100d27e0
add esp, 8
mov ebx, dword [ebp - 0xf0]
nop dword [eax + eax]
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x128], esi
cmp word [eax + esi*2], 0
jne 0x100cbff9
lea eax, [ebp - 0xe0]
push esi
push eax
call fcn.100d27e0
add esp, 8
test edi, edi
je 0x100cc04f
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0xfc]
mov edx, eax
jne 0x100cc0a1
mov ecx, dword [ebp - 0x118]
mov eax, 2
mov ebx, dword [ebp - 0xf0]
dec ecx
cmp dword [ebp - 0xec], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [ebp - 0xf8]
sub ecx, eax
mov eax, dword [ebp - 0xd4]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x100cc0a1
movzx eax, word [ebx]
mov ecx, 0xfffffffe
mov edx, dword [ebp - 0x138]
add eax, 2
add edi, eax
sub ebx, 2
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], ebx
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0x12c]
add dword [ebp - 0xf8], ecx
mov ecx, dword [ebp - 0x104]
mov dword [ecx + eax], esi
sub esi, 1
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0xfc], eax
jns 0x100cbfd0
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0xe0]
mov dword [eax], edi
mov eax, dword [ebp - 0xf8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xec]
cmp ecx, 1
jle 0x100cc167
mov esi, dword [ebp - 0x104]
lea eax, [ecx*4]
mov eax, dword [eax + esi - 4]
jmp 0x100cc169
cmp edi, ebx
jge 0x100cbf10
cmp dword [ebp - 0xf0], 0
jle 0x100cc0f6
mov eax, dword [ebp + ecx - 0x64]
jmp 0x100cc0f8
xor eax, eax
cmp edi, eax
jle 0x100cc13a
mov edx, dword [ebp - 0xec]
mov edi, dword [ebp - 0x118]
jmp 0x100cbf1e
push 0x101efecc
push 0x11529
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100cc954
push 0x101efecc
push 0x1154a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100cc954
xor eax, eax
cmp edx, eax
jle 0x100cc1ec
dec ecx
mov dword [ebp - 0xec], ecx
test ecx, ecx
jg 0x100cbf56
mov edi, dword [ebp - 0x118]
mov eax, dword [ebp - 0x24]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [ebp - 0xfc], eax
lea eax, [esi + 1]
test edi, edi
jle 0x100cc2da
cmp esi, dword [ebp - 0x114]
jge 0x100cc219
mov eax, dword [ebp + esi*4 - 0x24]
mov dword [ebp + esi*4 - 0x38], eax
mov dword [ebp + esi*4 - 0x24], 0
mov dword [ebp - 0x104], eax
push dword [eax + 0x48]
call fcn.101234b0
inc dword [ebp - 0x100]
mov ecx, eax
add esp, 4
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xf4], ecx
test ecx, ecx
jne 0x100cc954
jmp 0x100cc2cc
push 0x101efecc
push 0x11574
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100cc954
cmp dword [ebp + 0x18], 0
mov ecx, dword [ebp - 0x134]
push 0
cmovne ecx, eax
lea eax, [ebp - 0x108]
push ecx
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
call fcn.100c8dd0
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100cc954
push dword [ebp - 0xfc]
mov edi, dword [ebp - 0x104]
push edi
call fcn.1015b000
mov ecx, dword [ebp - 0x10c]
add esp, 8
inc dword [ebp - 0x100]
mov dword [ebp + esi*4 - 0x38], edi
mov dword [ebp + esi*4 - 0x74], ebx
cmp byte [ecx + 0x11], 0
je 0x100cc2ba
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x110]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.100f9030
mov eax, dword [ebp - 0xf4]
add esp, 0x14
mov dword [ebp - 0xe8], eax
test eax, eax
jne 0x100cc954
mov eax, dword [ebp - 0x108]
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x134], eax
inc esi
mov eax, 1
cmp esi, edi
jl 0x100cc1a2
mov ebx, dword [ebp - 0x100]
xor ecx, ecx
test ebx, ebx
jle 0x100cc327
mov eax, dword [ebp + ecx*4 - 0x38]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [ebp + ecx*4 - 0x9c], edx
mov dword [ebp + ecx*4 - 0x88], edx
mov ax, word [eax + 0x1c]
mov word [ebp + ecx*2 - 0x10], ax
xor eax, eax
test ecx, ecx
jle 0x100cc322
nop dword [eax]
cmp dword [ebp + eax*4 - 0x9c], edx
je 0x100cc481
inc eax
cmp eax, ecx
jl 0x100cc310
inc ecx
cmp ecx, ebx
jl 0x100cc2e6
xor edi, edi
test ebx, ebx
jle 0x100cc3c5
xor esi, esi
lea edx, [esi + 1]
cmp ebx, edx
jle 0x100cc35a
nop word [eax + eax]
mov eax, dword [ebp + edx*4 - 0x88]
mov ecx, edx
cmp eax, dword [ebp + esi*4 - 0x88]
cmovae ecx, esi
inc edx
mov esi, ecx
cmp edx, ebx
jl 0x100cc340
mov ebx, dword [ebp + esi*4 - 0x88]
mov dword [ebp + esi*4 - 0x88], 0xffffffff
cmp esi, edi
je 0x100cc3b6
jle 0x100cc395
mov eax, dword [ebp - 0x10c]
xor edx, edx
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + esi*4 - 0x38]
inc ecx
add ecx, esi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.10124140
add esp, 8
mov eax, dword [ebp + edi*4 - 0x38]
push ebx
mov ecx, dword [eax + 0x48]
mov ax, word [ebp + esi*2 - 0x10]
push ecx
mov word [ecx + 0x1c], ax
call fcn.10124140
mov eax, dword [ebp + edi*4 - 0x38]
add esp, 8
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0x100]
inc edi
cmp edi, ebx
jl 0x100cc331
test byte [ebp - 0xfc], 8
mov eax, dword [ebp + ebx*4 - 0x3c]
mov ecx, dword [ebp - 0x124]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x100cc406
mov ecx, dword [ebp - 0x114]
cmp ecx, ebx
je 0x100cc406
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x38]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + ebx*4 - 0x3c]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10c]
cmp byte [eax + 0x11], 0
je 0x100cc5f5
mov esi, dword [ebp - 0x38]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x124], 0
movzx eax, byte [esi + 0xc]
movzx edx, word [esi + 0x18]
add edx, eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xf0], edx
test eax, eax
jle 0x100cc5fa
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x108], esi
mov ecx, dword [ebp - 0xd8]
mov ecx, dword [ecx + ebx*4]
mov dword [ebp - 0xfc], ecx
cmp ebx, edx
jne 0x100cc4d1
xor eax, eax
cmp byte [ebp - 0xe1], al
sete al
mov dword [ebp - 0xc], eax
inc edi
cmp edi, dword [ebp - 0x100]
jge 0x100cc4ae
mov esi, dword [ebp + edi*4 - 0x38]
jmp 0x100cc4b2
push 0x101efecc
push 0x115be
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100cc954
mov esi, dword [ebp + edi*4 - 0x24]
movzx eax, word [esi + 0x18]
add eax, dword [ebp - 0xc]
movzx ecx, byte [esi + 0xc]
add ecx, eax
add edx, ecx
cmp ebx, edx
je 0x100cc472
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xf0], edx
mov ecx, dword [ebp - 0x104]
cmp ebx, dword [ebp + ecx - 0x60]
mov ecx, dword [ebp - 0xfc]
jne 0x100cc516
mov edx, dword [ebp - 0x124]
inc edx
mov dword [ebp - 0x124], edx
shl edx, 2
cmp byte [ebp - 0xe1], 0
mov dword [ebp - 0x104], edx
mov edx, dword [ebp + edx - 0x38]
mov dword [ebp - 0x108], edx
mov edx, dword [ebp - 0xf0]
je 0x100cc5e6
cmp edi, dword [ebp - 0x100]
jge 0x100cc53e
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp eax, dword [ebp + edi*4 - 0x9c]
jne 0x100cc53e
cmp ecx, dword [esi + 0x38]
jb 0x100cc53e
cmp ecx, dword [esi + 0x3c]
jb 0x100cc5e0
cmp word [ebp - 0x130], 0
jne 0x100cc579
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x108]
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [ebp - 0x10c]
call fcn.100f9030
mov eax, dword [ebp - 0xf4]
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xd4]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x100cc59b
lea eax, [ebp - 0xe0]
push ebx
push eax
call fcn.100d27e0
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x108]
cmp ax, word [ecx + 0x10]
jbe 0x100cc5cc
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0xfc]
push esi
push ecx
call fcn.100f9150
mov ecx, dword [ebp - 0xf4]
add esp, 0x10
mov dword [ebp - 0xe8], ecx
jmp 0x100cc5d2
mov ecx, dword [ebp - 0xe8]
test ecx, ecx
jne 0x100cc954
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0xe0]
inc ebx
cmp ebx, eax
jl 0x100cc451
mov ebx, dword [ebp - 0x100]
mov esi, dword [ebp - 0x38]
jmp 0x100cc600
mov ebx, dword [ebp - 0x100]
lea eax, [ebx - 1]
xor edi, edi
test eax, eax
jle 0x100cc76a
nop dword [eax]
mov eax, dword [ebp + edi*4 - 0x60]
mov edx, dword [ebp - 0xd8]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [ebp + edi*4 - 0x38]
mov ebx, dword [ebp - 0x13c]
add ebx, dword [ebp - 0x140]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x108], ecx
mov ecx, dword [ebp - 0x130]
movzx eax, word [edx + eax*2]
movzx edx, cx
mov ecx, dword [ebp - 0x108]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x100cc667
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x100cc711
cmp byte [ebp - 0xe1], 0
je 0x100cc6f6
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [ebp - 0x9c]
mov esi, ebx
mov ecx, dword [ebp - 0xa0]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x100cc6e4
jb 0x100cc6a6
cmp ecx, 0x7f
ja 0x100cc6b7
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x100cc711
test edx, edx
ja 0x100cc6e4
jb 0x100cc6c5
cmp ecx, 0x3fff
ja 0x100cc6e4
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
shr edx, 7
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x100cc711
push edx
push ecx
push ebx
call fcn.100f99a0
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x100cc711
sub esi, 4
cmp eax, 4
jne 0x100cc717
mov eax, dword [ebp - 0x110]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov ecx, dword [ebp - 0x108]
add dword [ebp - 0x13c], edx
lea eax, [ebp - 0xf4]
push eax
push dword [ecx + 4]
mov eax, dword [ebp - 0x120]
push ebx
push edx
push esi
add eax, edi
push eax
push dword [ebp - 0x110]
call fcn.100edd60
mov esi, dword [ebp - 0xf4]
add esp, 0x1c
mov dword [ebp - 0xe8], esi
test esi, esi
jne 0x100cc954
mov ebx, dword [ebp - 0x100]
inc edi
lea eax, [ebx - 1]
cmp edi, eax
jl 0x100cc610
mov esi, dword [ebp - 0x38]
mov edi, 1
sub edi, ebx
mov dword [ebp - 0x124], edi
cmp edi, ebx
jge 0x100cc84d
nop
mov eax, edi
lea ebx, [ebp - 0x18]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x100cc835
test edi, edi
jns 0x100cc7a9
mov eax, dword [ebp + ecx*4 - 0x78]
cmp eax, dword [ebp + ecx*4 - 0x64]
jl 0x100cc835
test ecx, ecx
jne 0x100cc7b6
mov esi, dword [ebp - 0x60]
xor eax, eax
xor edx, edx
jmp 0x100cc7ea
cmp ecx, dword [ebp - 0x114]
jge 0x100cc7cf
xor eax, eax
cmp byte [ebp - 0xe1], al
sete al
add eax, dword [ebp + ecx*4 - 0x78]
jmp 0x100cc7d5
mov eax, dword [ebp - 0xe0]
mov esi, dword [ebp + ecx*4 - 0x60]
xor edx, edx
cmp byte [ebp - 0xe1], dl
sete dl
add edx, dword [ebp + ecx*4 - 0x64]
sub esi, edx
lea edi, [ecx*4]
lea ecx, [ebp - 0xe0]
push ecx
push esi
push edx
push eax
push dword [ebp + edi - 0x38]
call fcn.100d5ec0
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100cc954
mov eax, dword [ebp + edi - 0x38]
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp + edi - 0x4c]
mov edi, dword [ebp - 0x124]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
mov ebx, dword [ebp - 0x100]
inc edi
mov dword [ebp - 0x124], edi
cmp edi, ebx
jl 0x100cc780
mov esi, dword [ebp - 0x38]
cmp dword [ebp + 0x14], 0
je 0x100cc8ba
mov edi, dword [ebp - 0x110]
cmp word [edi + 0x18], 0
jne 0x100cc8ba
movzx eax, byte [edi + 9]
cmp eax, dword [esi + 0x14]
jg 0x100cc8ba
push 0xffffffffffffffff
push esi
call fcn.100d4d80
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0xf4]
push eax
push edi
push dword [ebp - 0x38]
call fcn.100d40f0
mov ecx, dword [ebp - 0xf4]
add esp, 0x14
mov dword [ebp - 0xe8], ecx
test ecx, ecx
jne 0x100cc921
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.100db930
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xe8], ecx
jmp 0x100cc921
mov ecx, dword [ebp - 0x10c]
cmp byte [ecx + 0x11], 0
je 0x100cc91b
cmp word [ebp - 0x130], 0
jne 0x100cc91b
xor esi, esi
test ebx, ebx
jle 0x100cc91b
nop word [eax + eax]
mov eax, dword [ebp + esi*4 - 0x38]
lea edx, [ebp - 0xf4]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.100f9030
mov ecx, dword [ebp - 0x10c]
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x100cc8e0
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xe8], ecx
jmp 0x100cc921
mov ecx, dword [ebp - 0xe8]
mov edi, dword [ebp - 0x114]
mov esi, ebx
cmp ebx, edi
jge 0x100cc954
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x24]
test ecx, ecx
jne 0x100cc949
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.100db930
add esp, 0xc
mov ecx, eax
inc esi
cmp esi, edi
jl 0x100cc930
mov dword [ebp - 0xe8], ecx
mov ebx, dword [ebp - 0xd8]
test ebx, ebx
je 0x100cb81d
cmp dword [0x10226cd0], 0
je 0x100cc9b7
mov eax, dword [0x1022ff40]
test eax, eax
je 0x100cc97e
push eax
call dword [0x10226d2c]
add esp, 4
push ebx
call dword [0x10226d08]
sub dword [0x1022fe50], eax
dec dword [0x1022fe74]
push ebx
call dword [0x10226d00]
mov eax, dword [0x1022ff40]
add esp, 8
test eax, eax
je 0x100cb81d
push eax
call dword [0x10226d34]
add esp, 4
jmp 0x100cb81d
push ebx
call dword [0x10226d00]
add esp, 4
jmp 0x100cb81d
push edx
call fcn.101241e0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x114]
jl 0x100cb830
xor ebx, ebx
cmp dword [ebp - 0x100], ebx
jle 0x100cca48
mov edx, dword [ebp + ebx*4 - 0x38]
test edx, edx
je 0x100cca3f
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100cca36
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1017aa20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100cca3f
push edx
call fcn.101241e0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x100]
jl 0x100cc9e6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe8]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.101799ce
mov esp, ebp
pop ebp
ret