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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x101eff24]
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 0x100c7391
pop edi
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10158d02
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 0x100c73aa
mov dword [ebp - 0x120], ebx
jmp 0x100c73de
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100c73b9
mov dword [ebp - 0x120], ebx
jmp 0x100c73d4
cmp eax, esi
jne 0x100c73cd
mov eax, dword [ebp + 0x18]
add esi, 0xfffffffe
add esi, eax
mov dword [ebp - 0x120], esi
jmp 0x100c73d7
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 0x100c7405
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x100c7419
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.100e8070
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100c7637
mov ecx, dword [edi]
mov dword [ebp - 0xf8], esi
cmp dword [ecx + 0x14], 0
jge 0x100c748d
push ecx
call fcn.100c9110
mov edi, eax
add esp, 4
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xf4], edi
test edi, edi
jne 0x100c76bb
mov eax, esi
dec esi
test eax, eax
je 0x100c7709
mov edi, dword [ebp - 0x110]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x100c74f9
mov eax, dword [ebp - 0x120]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x100c74f9
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 0x100c7604
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 0x100c75d1
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 0x100c76c7
mov eax, dword [ebp - 0x140]
push edx
add eax, ecx
push edi
push eax
call fcn.1016a0c0
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.100d1cc0
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.100e8070
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
je 0x100c7460
lea eax, [esi*4 + 4]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.1016abc0
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x114], ebx
jle 0x100c880c
nop dword [eax + eax]
mov edx, dword [ebp + ebx*4 - 0x24]
test edx, edx
je 0x100c87ff
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c87f6
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100c87ff
lea eax, [esi*4]
jmp 0x100c763e
push 0x101c584c
push 0x1146f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
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.1016abc0
add esp, 0x20
jmp 0x100c764d
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.1011db10
mov esi, eax
add esp, 8
mov dword [ebp - 0xd8], esi
test esi, esi
jne 0x100c7764
mov dword [ebp - 0xe8], 7
jmp 0x100c764d
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 0x100c7a16
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 0x100c7b8b
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.1016abc0
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x100c78d4
movzx edx, word [edi + 0x1c]
test edx, edx
je 0x100c7894
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 0x100c7850
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 0x100c78d4
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 0x100c78b0
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 0x100c7939
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 0x100c7900
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 0x100c7a03
cmp byte [ebp - 0xe1], 0
jne 0x100c7a03
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.1016a0c0
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 0x100c79cc
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + edi*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x100c79f6
cmp word [edx + edi*2], 4
jae 0x100c79f6
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 0x100c79e0
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 0x100c77c0
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 0x100c7b3d
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 0x100c7a84
cmp edx, dword [ebp + ecx*4 - 0xbc]
jne 0x100c7a84
dec ecx
mov dword [ebp - 0xec], ecx
cmp byte [ebp - 0xe1], 0
jne 0x100c7aae
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 0x100c7b17
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 0x100c7ad2
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 0x100c7a51
mov ebx, dword [ebp - 0xe0]
mov edi, eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0xf0], 0
test eax, eax
jle 0x100c7d73
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 0x100c7c97
jmp 0x100c7bbd
push 0x101c584c
push 0x114b1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100c8784
lea eax, [ebp - 0x4c]
add eax, ecx
cmp edx, edi
jl 0x100c7be7
inc edx
mov dword [ebp - 0x118], edx
cmp edx, 5
jg 0x100c7f3d
mov ebx, dword [ebp - 0xe0]
mov dword [ebp + ecx - 0x48], 0
mov esi, dword [eax]
mov dword [ebp + ecx - 0x5c], ebx
jmp 0x100c7bed
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 0x100c7c22
push ecx
lea eax, [ebp - 0xe0]
push eax
call fcn.100ce770
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 0x100c7c65
cmp edi, ebx
jge 0x100c7c63
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x100c7c5b
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.100ce770
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x100c7c65
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 0x100c7bb8
mov ebx, dword [ebp - 0xe0]
mov edi, dword [ebp + ecx - 0x60]
cmp edi, ebx
jge 0x100c7d46
mov edx, dword [ebp - 0xd4]
nop dword [eax]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x100c7cd8
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.100ce770
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 0x100c7f0f
inc edi
mov dword [ebp + ecx - 0x4c], esi
cmp byte [ebp - 0xe1], 0
mov dword [ebp + ecx - 0x60], edi
jne 0x100c7d34
cmp edi, ebx
jge 0x100c7d32
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x100c7d24
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.100ce770
mov edx, dword [ebp - 0xd4]
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0xf8]
movzx eax, ax
add eax, 2
jmp 0x100c7d34
xor eax, eax
sub dword [ebp + ecx - 0x48], eax
cmp edi, ebx
jl 0x100c7cb0
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 0x100c7b70
lea eax, [edi - 1]
mov ecx, eax
mov dword [ebp - 0xec], eax
test ecx, ecx
jle 0x100c7fb6
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 0x100c7df2
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.100ce770
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 0x100c7e29
lea eax, [ebp - 0xe0]
push esi
push eax
call fcn.100ce770
add esp, 8
test edi, edi
je 0x100c7e7f
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0xfc]
mov edx, eax
jne 0x100c7ed1
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 0x100c7ed1
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 0x100c7e00
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 0x100c7f97
mov esi, dword [ebp - 0x104]
lea eax, [ecx*4]
mov eax, dword [eax + esi - 4]
jmp 0x100c7f99
cmp edi, ebx
jge 0x100c7d40
cmp dword [ebp - 0xf0], 0
jle 0x100c7f26
mov eax, dword [ebp + ecx - 0x64]
jmp 0x100c7f28
xor eax, eax
cmp edi, eax
jle 0x100c7f6a
mov edx, dword [ebp - 0xec]
mov edi, dword [ebp - 0x118]
jmp 0x100c7d4e
push 0x101c584c
push 0x11529
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100c8784
push 0x101c584c
push 0x1154a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100c8784
xor eax, eax
cmp edx, eax
jle 0x100c801c
dec ecx
mov dword [ebp - 0xec], ecx
test ecx, ecx
jg 0x100c7d86
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 0x100c810a
cmp esi, dword [ebp - 0x114]
jge 0x100c8049
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.101201f0
inc dword [ebp - 0x100]
mov ecx, eax
add esp, 4
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xf4], ecx
test ecx, ecx
jne 0x100c8784
jmp 0x100c80fc
push 0x101c584c
push 0x11574
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100c8784
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.100c4b70
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100c8784
push dword [ebp - 0xfc]
mov edi, dword [ebp - 0x104]
push edi
call fcn.10158500
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 0x100c80ea
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.100f5520
mov eax, dword [ebp - 0xf4]
add esp, 0x14
mov dword [ebp - 0xe8], eax
test eax, eax
jne 0x100c8784
mov eax, dword [ebp - 0x108]
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x134], eax
inc esi
mov eax, 1
cmp esi, edi
jl 0x100c7fd2
mov ebx, dword [ebp - 0x100]
xor ecx, ecx
test ebx, ebx
jle 0x100c8157
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 0x100c8152
nop dword [eax]
cmp dword [ebp + eax*4 - 0x9c], edx
je 0x100c82b1
inc eax
cmp eax, ecx
jl 0x100c8140
inc ecx
cmp ecx, ebx
jl 0x100c8116
xor edi, edi
test ebx, ebx
jle 0x100c81f5
xor esi, esi
lea edx, [esi + 1]
cmp ebx, edx
jle 0x100c818a
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 0x100c8170
mov ebx, dword [ebp + esi*4 - 0x88]
mov dword [ebp + esi*4 - 0x88], 0xffffffff
cmp esi, edi
je 0x100c81e6
jle 0x100c81c5
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.10120e90
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.10120e90
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 0x100c8161
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 0x100c8236
mov ecx, dword [ebp - 0x114]
cmp ecx, ebx
je 0x100c8236
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 0x100c8425
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 0x100c842a
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 0x100c8301
xor eax, eax
cmp byte [ebp - 0xe1], al
sete al
mov dword [ebp - 0xc], eax
inc edi
cmp edi, dword [ebp - 0x100]
jge 0x100c82de
mov esi, dword [ebp + edi*4 - 0x38]
jmp 0x100c82e2
push 0x101c584c
push 0x115be
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x100c8784
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 0x100c82a2
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 0x100c8346
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 0x100c8416
cmp edi, dword [ebp - 0x100]
jge 0x100c836e
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp eax, dword [ebp + edi*4 - 0x9c]
jne 0x100c836e
cmp ecx, dword [esi + 0x38]
jb 0x100c836e
cmp ecx, dword [esi + 0x3c]
jb 0x100c8410
cmp word [ebp - 0x130], 0
jne 0x100c83a9
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.100f5520
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 0x100c83cb
lea eax, [ebp - 0xe0]
push ebx
push eax
call fcn.100ce770
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x108]
cmp ax, word [ecx + 0x10]
jbe 0x100c83fc
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0xfc]
push esi
push ecx
call fcn.100f5650
mov ecx, dword [ebp - 0xf4]
add esp, 0x10
mov dword [ebp - 0xe8], ecx
jmp 0x100c8402
mov ecx, dword [ebp - 0xe8]
test ecx, ecx
jne 0x100c8784
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0xe0]
inc ebx
cmp ebx, eax
jl 0x100c8281
mov ebx, dword [ebp - 0x100]
mov esi, dword [ebp - 0x38]
jmp 0x100c8430
mov ebx, dword [ebp - 0x100]
lea eax, [ebx - 1]
xor edi, edi
test eax, eax
jle 0x100c859a
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 0x100c8497
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x100c8541
cmp byte [ebp - 0xe1], 0
je 0x100c8526
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 0x100c8514
jb 0x100c84d6
cmp ecx, 0x7f
ja 0x100c84e7
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x100c8541
test edx, edx
ja 0x100c8514
jb 0x100c84f5
cmp ecx, 0x3fff
ja 0x100c8514
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 0x100c8541
push edx
push ecx
push ebx
call fcn.100f5eb0
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x100c8541
sub esi, 4
cmp eax, 4
jne 0x100c8547
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.100ea0c0
mov esi, dword [ebp - 0xf4]
add esp, 0x1c
mov dword [ebp - 0xe8], esi
test esi, esi
jne 0x100c8784
mov ebx, dword [ebp - 0x100]
inc edi
lea eax, [ebx - 1]
cmp edi, eax
jl 0x100c8440
mov esi, dword [ebp - 0x38]
mov edi, 1
sub edi, ebx
mov dword [ebp - 0x124], edi
cmp edi, ebx
jge 0x100c867d
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 0x100c8665
test edi, edi
jns 0x100c85d9
mov eax, dword [ebp + ecx*4 - 0x78]
cmp eax, dword [ebp + ecx*4 - 0x64]
jl 0x100c8665
test ecx, ecx
jne 0x100c85e6
mov esi, dword [ebp - 0x60]
xor eax, eax
xor edx, edx
jmp 0x100c861a
cmp ecx, dword [ebp - 0x114]
jge 0x100c85ff
xor eax, eax
cmp byte [ebp - 0xe1], al
sete al
add eax, dword [ebp + ecx*4 - 0x78]
jmp 0x100c8605
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.100d1ea0
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100c8784
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 0x100c85b0
mov esi, dword [ebp - 0x38]
cmp dword [ebp + 0x14], 0
je 0x100c86ea
mov edi, dword [ebp - 0x110]
cmp word [edi + 0x18], 0
jne 0x100c86ea
movzx eax, byte [edi + 9]
cmp eax, dword [esi + 0x14]
jg 0x100c86ea
push 0xffffffffffffffff
push esi
call fcn.100d0d50
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0xf4]
push eax
push edi
push dword [ebp - 0x38]
call fcn.100d0090
mov ecx, dword [ebp - 0xf4]
add esp, 0x14
mov dword [ebp - 0xe8], ecx
test ecx, ecx
jne 0x100c8751
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.100d7990
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xe8], ecx
jmp 0x100c8751
mov ecx, dword [ebp - 0x10c]
cmp byte [ecx + 0x11], 0
je 0x100c874b
cmp word [ebp - 0x130], 0
jne 0x100c874b
xor esi, esi
test ebx, ebx
jle 0x100c874b
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.100f5520
mov ecx, dword [ebp - 0x10c]
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x100c8710
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xe8], ecx
jmp 0x100c8751
mov ecx, dword [ebp - 0xe8]
mov edi, dword [ebp - 0x114]
mov esi, ebx
cmp ebx, edi
jge 0x100c8784
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x24]
test ecx, ecx
jne 0x100c8779
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.100d7990
add esp, 0xc
mov ecx, eax
inc esi
cmp esi, edi
jl 0x100c8760
mov dword [ebp - 0xe8], ecx
mov ebx, dword [ebp - 0xd8]
test ebx, ebx
je 0x100c764d
cmp dword [0x101eb668], 0
je 0x100c87e7
mov eax, dword [0x101fd940]
test eax, eax
je 0x100c87ae
push eax
call dword [0x101eb6c4]
add esp, 4
push ebx
call dword [0x101eb6a0]
sub dword [0x101fd850], eax
dec dword [0x101fd874]
push ebx
call dword [0x101eb698]
mov eax, dword [0x101fd940]
add esp, 8
test eax, eax
je 0x100c764d
push eax
call dword [0x101eb6cc]
add esp, 4
jmp 0x100c764d
push ebx
call dword [0x101eb698]
add esp, 4
jmp 0x100c764d
push edx
call fcn.10120f40
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x114]
jl 0x100c7660
xor ebx, ebx
cmp dword [ebp - 0x100], ebx
jle 0x100c8878
mov edx, dword [ebp + ebx*4 - 0x38]
test edx, edx
je 0x100c886f
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100c8866
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100c886f
push edx
call fcn.10120f40
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x100]
jl 0x100c8816
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe8]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.10158d02
mov esp, ebp
pop ebp
ret