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

Disassembly:
sub esp, 0x148
mov eax, dword [0x100955e4]
xor eax, esp
mov dword [esp + 0x144], eax
mov ecx, dword [esp + 0x154]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x130], 0
mov byte [esp + 0x134], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], 0
push esi
mov esi, dword [esp + 0x150]
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0x34]
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x10014a2a
lea eax, [ecx + 7]
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.100843e0
add esp, 0x148
ret
movzx ecx, word [esi + 0x18]
movzx edx, byte [esi + 0xc]
push ebx
push ebp
push edi
lea edi, [edx + ecx]
cmp edi, 2
jae 0x10014a41
xor ebx, ebx
jmp 0x10014a73
mov eax, dword [esp + 0x160]
test eax, eax
jne 0x10014a50
xor ebx, ebx
jmp 0x10014a65
cmp eax, edi
jne 0x10014a62
mov eax, dword [esp + 0x16c]
lea ebx, [eax - 2]
add ebx, edi
jmp 0x10014a6c
lea ebx, [eax - 1]
mov eax, dword [esp + 0x16c]
mov edi, 2
sub edi, eax
lea eax, [edi + 1]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], eax
mov eax, ebx
sub eax, edx
mov dword [esp + 0x54], edi
lea edx, [eax + edi]
cmp edx, ecx
jne 0x10014a96
movzx ecx, byte [esi + 9]
add ecx, 8
jmp 0x10014aaa
mov eax, dword [esi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [esi + 0x38]
lea ebx, [edi*4]
mov dword [esp + 0x50], ecx
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x48], eax
mov ebp, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x28]
cmp ebp, dword [eax + 0x2c]
jbe 0x10014afb
push 0x10091874
push 0xff8c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebp
jmp 0x10014b80
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push 0
push ecx
push ebp
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10014b7c
mov ecx, dword [esp + 0x40]
mov esi, dword [ecx + 8]
mov dword [esp + ebx + 0xb4], esi
cmp byte [esi], al
jne 0x10014b74
cmp ebp, dword [esi + 4]
je 0x10014b50
mov eax, dword [ecx + 4]
cmp ebp, 1
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x34], eax
setne al
dec al
mov dword [esi + 0x48], ecx
and al, 0x64
mov dword [esi + 4], ebp
mov byte [esi + 9], al
push esi
call fcn.10016ee0
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x10014b74
test esi, esi
je 0x10014b80
push dword [esi + 0x48]
call fcn.1004f580
add esp, 4
jmp 0x10014b80
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x10014b80
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x10015d26
mov eax, dword [esp + ebx + 0xb4]
cmp dword [eax + 0x14], ebp
jge 0x10014bb3
push eax
call fcn.100165b0
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x10014cd3
mov ecx, edi
sub ebx, 4
dec edi
test ecx, ecx
je 0x10014d1e
mov ebp, dword [esp + 0x30]
mov dl, byte [ebp + 0xc]
test dl, dl
je 0x10014c0f
mov eax, dword [esp + 0x44]
movzx ecx, word [ebp + 0x1c]
add eax, edi
cmp eax, ecx
jne 0x10014c0f
mov eax, dword [ebp + 0x24]
push eax
mov dword [esp + ebx + 0x14c], eax
push ebp
mov esi, dword [eax]
mov eax, dword [ebp + 0x4c]
bswap esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x68], esi
call eax
movzx eax, ax
add esp, 8
mov byte [ebp + 0xc], 0
mov ebp, esi
mov dword [esp + ebx + 0xc0], eax
jmp 0x10014ac6
mov ecx, dword [esp + 0x44]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebp + 0x40]
add ecx, edi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebp + 0x1a]
movzx esi, cx
and esi, eax
add esi, dword [ebp + 0x38]
push esi
mov dword [esp + ebx + 0x14c], esi
mov eax, dword [esi]
bswap eax
mov dword [esp + 0x4c], eax
mov ebp, eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
mov dword [esp + ebx + 0xc0], edx
test byte [eax + 0x16], 0xc
je 0x10014cae
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
mov edx, dword [esp + 0x28]
cmp eax, dword [edx + 0x24]
mov edx, dword [esp + 0x2c]
jg 0x10014cdf
mov eax, dword [esp + 0x68]
push edx
add eax, ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
sub eax, dword [ecx + 0x38]
add eax, esi
mov dword [esp + ebx + 0x148], eax
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x44]
push eax
push edx
movzx eax, byte [esi + 0xc]
sub ecx, eax
add ecx, edi
push ecx
push esi
call fcn.1001dad0
add esp, 0x10
jmp 0x10014ac6
lea eax, [edi*4]
jmp 0x10015d29
push 0x10091874
push 0x114ba
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
lea eax, [ebx + 4]
mov ebp, 0xb
push eax
lea eax, [esp + 0xcc]
mov dword [esp + 0x2c], ebp
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x20
jmp 0x10015d3c
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
mov esi, dword [eax + 0x20]
mov eax, 0xaaaaaaab
lea ecx, [esi - 8]
mul ecx
mov edi, edx
shr edi, 2
add edi, 4
imul edi, ebp
add edi, 3
and edi, 0xfffffffc
lea ebx, [edi + edi*2]
add ebx, ebx
lea eax, [ebx + esi]
cdq
push edx
push eax
call fcn.1004d0c0
add esp, 8
mov dword [esp + 0x7c], eax
test eax, eax
jne 0x10014d6d
mov ebp, 7
mov dword [esp + 0x14], ebp
jmp 0x10015d3c
mov ecx, dword [esp + 0xb4]
lea edx, [eax + edi*4]
add eax, ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x78], ecx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x4c], eax
mov al, byte [ecx + 3]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x34], eax
test ebp, ebp
jle 0x1001500c
jmp 0x10014dc0
shl eax, 2
mov dword [esp + 0x6c], eax
mov edi, dword [esp + eax + 0xb4]
mov dword [esp + 0x20], edi
movzx eax, word [edi + 0x1a]
mov ebp, dword [edi + 0x38]
mov ecx, eax
movzx esi, word [edi + 0x12]
movzx ebx, word [edi + 0x18]
add esi, ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x2c], esi
mov ecx, dword [eax + 0x38]
mov al, byte [ebp]
cmp al, byte [ecx]
jne 0x10014fe0
movzx eax, byte [edi + 0xc]
add eax, ebx
add eax, eax
push eax
mov eax, dword [esp + 0x78]
push 0
lea eax, [edx + eax*2]
push eax
call sub.VCRUNTIME140.dll_memset
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x10014ea3
movzx edx, word [edi + 0x1c]
cmp ebx, edx
jb 0x10014fc8
test edx, edx
je 0x10014e74
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x74]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bx
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x7c]
add ecx, ebp
mov dword [eax + edi*4], ecx
inc edi
sub edx, 1
jne 0x10014e44
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov al, byte [edi + 0xc]
xor edx, edx
test al, al
je 0x10014ea3
mov ebx, dword [esp + 0x74]
lea ecx, [edi + 0x24]
mov esi, dword [esp + 0x7c]
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 0x10014e85
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x74], ebx
movzx eax, word [edi + 0x12]
xor edx, edx
movzx ecx, word [edi + 0x18]
add eax, ebp
lea eax, [eax + ecx*2]
mov ecx, eax
sub ecx, esi
inc ecx
shr ecx, 1
cmp eax, esi
sbb ebx, ebx
not ebx
and ebx, ecx
jbe 0x10014ef8
mov edi, dword [esp + 0x38]
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
movzx eax, di
mov edi, dword [esp + 0x7c]
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x74]
add ecx, ebp
mov dword [edi + eax*4], ecx
inc eax
mov edi, dword [esp + 0x38]
mov dword [esp + 0x74], eax
cmp edx, ebx
jb 0x10014ec7
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
mov dword [esp + ecx + 0x114], edx
cmp eax, dword [esp + 0x54]
jge 0x10014faf
cmp byte [esp + 0x13], 0
jne 0x10014faf
movzx eax, word [esp + ecx + 0xc0]
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x58]
push eax
push dword [esp + ecx + 0x14c]
mov word [esi + edx*2], ax
lea esi, [ebx + ebp]
add ebx, eax
push esi
mov dword [esp + 0x24], ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
movzx eax, ax
add eax, esi
mov esi, dword [esp + 0x80]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x4c]
sub word [esi + edx*2], ax
cmp byte [edi + 8], 0
jne 0x10014f8b
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x10014fa6
cmp word [esi + edx*2], 4
jae 0x10014fa6
mov byte [ebx + ebp], 0
inc ebx
inc word [esi + edx*2]
cmp word [esi + edx*2], 4
jb 0x10014f92
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x34]
inc edx
mov dword [esp + 0x74], edx
mov ebp, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x34], eax
cmp eax, ebp
jge 0x1001500c
mov edx, dword [esp + 0x80]
jmp 0x10014dc0
push 0x11515
call fcn.1003c810
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
jmp 0x10015962
push 0x10091874
push 0x114fd
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebp
jmp 0x10015962
mov eax, dword [esp + 0x4c]
xor ecx, ecx
movzx edi, ax
xor ebx, ebx
mov eax, dword [esp + 0x28]
add edi, 0xfffffff4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 0x24]
add edi, eax
mov dword [esp + 0x34], edi
test ebp, ebp
jle 0x10015109
jmp 0x10015040
mov esi, dword [esp + ebx*4 + 0xb4]
mov edx, dword [esp + ebx*4 + 0x114]
mov dword [esp + 0x54], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + ecx*4 + 0x84], eax
mov dword [esp + ecx*4 + 0x9c], edx
test ecx, ecx
je 0x10015075
cmp edx, dword [esp + ecx*4 + 0x98]
jne 0x10015075
dec ecx
mov dword [esp + 0x18], ecx
cmp byte [esp + 0x13], 0
jne 0x10015099
mov eax, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x3c]
mov dword [esp + ecx*4 + 0x84], eax
lea eax, [edx + 1]
mov dword [esp + ecx*4 + 0x9c], eax
sub edi, dword [esi + 0x14]
lea eax, [esp + 0xc0]
lea eax, [eax + ebx*4]
xor ebp, ebp
mov dword [eax], edi
cmp byte [esi + 0xc], 0
mov dword [esp + 0x58], eax
jbe 0x100150e8
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
movzx eax, ax
lea ebx, [ebx + 4]
add eax, 2
inc ebp
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ebp, eax
jl 0x100150b7
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x2c]
mov dword [eax], edi
mov ebp, dword [esp + 0x3c]
inc ecx
mov edi, dword [esp + 0x34]
mov dword [esp + ebx*4 + 0xe8], edx
inc ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
cmp ebx, ebp
jl 0x10015040
mov dword [esp + 0x18], 0
mov edx, ebp
mov dword [esp + 0x20], edx
test ebp, ebp
jle 0x1001534f
mov ecx, dword [esp + 0x74]
mov ebx, 1
mov dword [esp + 0x38], ebx
xor ebp, ebp
mov edi, edi
mov esi, dword [esp + ebp + 0xc0]
cmp esi, edi
jle 0x10015203
nop
cmp ebx, edx
jl 0x1001516d
lea edx, [ebx + 1]
mov dword [esp + 0x20], edx
cmp edx, 5
jg 0x100152f7
mov dword [esp + ebp + 0xc4], 0
mov esi, dword [esp + ebp + 0xc0]
mov dword [esp + ebp + 0xec], ecx
mov edi, dword [esp + ebp + 0xe8]
mov ecx, dword [esp + 0x80]
lea ebx, [edi - 1]
movzx eax, word [ecx + ebx*2]
test ax, ax
jne 0x1001519f
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.1001aa90
mov ecx, dword [esp + 0x88]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [esp + 0x13], 0
mov dword [esp + ebp + 0xc0], esi
jne 0x100151df
cmp edi, dword [esp + 0x74]
jge 0x100151dd
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x100151d5
lea eax, [esp + 0x74]
push edi
push eax
call fcn.1001aa90
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x100151df
xor eax, eax
add dword [esp + ebp + 0xc4], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x20]
mov dword [esp + ebp + 0xe8], ebx
mov ebx, dword [esp + 0x38]
cmp esi, dword [esp + 0x34]
jg 0x10015140
mov edi, dword [esp + ebp + 0xe8]
cmp edi, ecx
jge 0x100152af
mov edx, dword [esp + 0x80]
lea esp, [esp]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x10015245
lea eax, [esp + 0x74]
push edi
push eax
call fcn.1001aa90
mov ecx, dword [esp + 0x7c]
add esp, 8
mov edx, dword [esp + 0x80]
movzx eax, ax
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [esp + 0x34]
jg 0x100152d7
inc edi
mov dword [esp + ebp + 0xc0], esi
cmp byte [esp + 0x13], 0
mov dword [esp + ebp + 0xe8], edi
jne 0x100152a0
cmp edi, ecx
jge 0x1001529e
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x10015296
lea eax, [esp + 0x74]
push edi
push eax
call fcn.1001aa90
mov ecx, dword [esp + 0x7c]
add esp, 8
mov edx, dword [esp + 0x80]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x100152a0
xor eax, eax
sub dword [esp + ebp + 0xc4], eax
cmp edi, ecx
jl 0x10015220
mov edx, ebx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x18]
inc ebx
inc eax
mov dword [esp + 0x38], ebx
add ebp, 4
mov dword [esp + 0x18], eax
cmp eax, edx
jge 0x1001534f
mov edi, dword [esp + 0x34]
jmp 0x10015130
cmp edi, ecx
jge 0x100152af
cmp dword [esp + 0x18], 0
jle 0x100152eb
mov eax, dword [esp + ebp + 0xe4]
jmp 0x100152ed
xor eax, eax
cmp edi, eax
jle 0x10015323
mov edx, dword [esp + 0x20]
jmp 0x100152b5
push 0x10091874
push 0x1157a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebp
jmp 0x10015962
push 0x10091874
push 0x1159b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebp
jmp 0x10015962
lea eax, [edx - 1]
mov ecx, eax
mov dword [esp + 0x2c], eax
test ecx, ecx
jle 0x100154b0
shl ecx, 2
mov dword [esp + 0x38], ecx
mov eax, dword [esp + ecx + 0xbc]
mov edi, dword [esp + ecx + 0xc0]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xe8]
sub eax, 4
mov dword [esp + 0x40], eax
mov ebx, dword [eax + ecx]
mov ecx, dword [esp + 0x80]
lea esi, [ebx - 1]
mov eax, esi
sub eax, dword [esp + 0x5c]
inc eax
cmp word [ecx + eax*2], 0
lea ebp, [ecx + eax*2]
jne 0x100153c7
push eax
lea eax, [esp + 0x78]
push eax
call fcn.1001aa90
add esp, 8
jmp 0x100153c0
mov ecx, dword [esp + 0x80]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
jne 0x100153e4
lea eax, [esp + 0x74]
push esi
push eax
call fcn.1001aa90
add esp, 8
test edi, edi
je 0x10015428
cmp dword [esp + 0x16c], 0
mov edx, ebx
jne 0x1001546c
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
dec ecx
mov ebx, dword [esp + 0x18]
sub eax, ecx
neg eax
mov ecx, ebx
sbb eax, eax
and eax, 2
sub ecx, eax
mov eax, dword [esp + 0x80]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebp]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x10015470
movzx eax, word [ebp]
mov ecx, 0xfffffffe
mov ebx, dword [esp + 0x58]
add eax, 2
mov edx, dword [esp + 0x54]
add edi, eax
mov eax, dword [esp + 0x80]
sub ebp, 2
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x40]
mov dword [ecx + eax], esi
sub esi, 1
jns 0x100153c0
mov ebx, dword [esp + 0x18]
jmp 0x10015474
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov dword [esp + eax + 0xc0], edi
mov dword [esp + eax + 0xbc], ebx
cmp ecx, 1
jle 0x10015495
mov esi, dword [esp + 0x40]
mov eax, dword [eax + esi - 4]
jmp 0x10015497
xor eax, eax
cmp edx, eax
jle 0x10015519
dec ecx
mov dword [esp + 0x2c], ecx
test ecx, ecx
jg 0x10015360
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xb4]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx ebx, byte [eax]
mov dword [esp + 0x5c], ebx
test edx, edx
jle 0x1001562e
mov edi, dword [esp + 0x48]
nop
cmp esi, dword [esp + 0x3c]
jge 0x1001558d
mov eax, dword [esp + esi*4 + 0xb4]
mov dword [esp + esi*4 + 0xd4], eax
mov dword [esp + 0x40], eax
mov dword [esp + esi*4 + 0xb4], 0
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x10015549
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x10015549
cmp dword [edx + 0x60], 0
je 0x10015545
push ecx
call fcn.10070eb0
jmp 0x1001556f
push 0x10091874
push 0x115c5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebp
jmp 0x10015962
xor ebp, ebp
jmp 0x10015574
mov ebp, dword [edx + 0x28]
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x10015578
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x1001556a
call fcn.1002bf80
jmp 0x1001556f
call fcn.1002d120
add esp, 4
mov ebp, eax
mov dword [esp + 0x14], ebp
inc dword [esp + 0x24]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x10015962
jmp 0x10015623
cmp dword [esp + 0x16c], 0
je 0x1001559c
mov edi, 1
push 0
push edi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x38]
call fcn.100127a0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x10015962
mov edi, dword [esp + 0x40]
push ebx
push edi
call fcn.10084110
mov ecx, dword [esp + 0x30]
add esp, 8
inc dword [esp + 0x24]
mov eax, dword [esp + 0x74]
mov dword [esp + esi*4 + 0xd4], edi
cmp byte [ecx + 0x11], 0
mov dword [esp + esi*4 + 0x114], eax
je 0x1001561f
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x34]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.1002ee30
mov ebp, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x10015962
mov edi, dword [esp + 0x60]
inc esi
cmp esi, dword [esp + 0x20]
jl 0x100154d0
mov ebp, dword [esp + 0x24]
xor ecx, ecx
test ebp, ebp
jle 0x10015687
jmp 0x10015640
mov eax, dword [esp + ecx*4 + 0xd4]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0x128], edx
mov dword [esp + ecx*4 + 0xfc], edx
mov ax, word [eax + 0x1c]
mov word [esp + ecx*2 + 0x148], ax
xor eax, eax
test ecx, ecx
jle 0x10015682
lea ecx, [ecx]
cmp dword [esp + eax*4 + 0x128], edx
je 0x100157d8
inc eax
cmp eax, ecx
jl 0x10015670
inc ecx
cmp ecx, ebp
jl 0x10015640
xor ebx, ebx
test ebp, ebp
jle 0x1001572c
xor edi, edi
lea ecx, [edi + 1]
cmp ebp, ecx
jle 0x100156c0
xor esi, esi
lea esp, [esp]
lea edx, [ecx*4]
mov eax, dword [esp + edx + 0xfc]
cmp eax, dword [esp + esi + 0xfc]
jae 0x100156bb
mov edi, ecx
mov esi, edx
inc ecx
cmp ecx, ebp
jl 0x100156a0
mov ebp, dword [esp + edi*4 + 0xfc]
mov dword [esp + edi*4 + 0xfc], 0xffffffff
cmp edi, ebx
je 0x1001571f
jle 0x100156fc
mov eax, dword [esp + 0x28]
xor edx, edx
mov ecx, dword [eax + 0x2c]
mov eax, dword [esp + edi*4 + 0xd4]
inc ecx
add ecx, edi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.100501e0
add esp, 8
mov esi, dword [esp + ebx*4 + 0xd4]
mov ax, word [esp + edi*2 + 0x148]
push ebp
mov ecx, dword [esi + 0x48]
push ecx
mov word [ecx + 0x1c], ax
call fcn.100501e0
add esp, 8
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x24]
inc ebx
cmp ebx, ebp
jl 0x10015691
test byte [esp + 0x5c], 8
mov ecx, dword [esp + ebp*4 + 0xd0]
mov edx, dword [esp + 0x50]
mov eax, dword [ecx + 4]
bswap eax
mov dword [edx], eax
jne 0x1001576d
mov edx, dword [esp + 0x3c]
cmp edx, ebp
je 0x1001576d
lea eax, [esp + 0xd4]
jl 0x1001575d
lea eax, [esp + 0xb4]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x11], 0
je 0x100159de
mov eax, dword [esp + 0xd4]
xor ebx, ebx
mov esi, eax
mov dword [esp + 0x50], 0
xor edi, edi
movzx ebp, word [eax + 0x18]
movzx eax, byte [eax + 0xc]
add ebp, eax
cmp dword [esp + 0x74], ebx
jle 0x100159da
xor eax, eax
mov edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x7c]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x48], ecx
cmp ebx, ebp
jne 0x10015829
xor edx, edx
cmp byte [esp + 0x13], dl
sete dl
inc edi
cmp edi, dword [esp + 0x24]
jge 0x10015804
mov esi, dword [esp + edi*4 + 0xd4]
jmp 0x1001580b
push 0x10091874
push 0x1160f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebp
jmp 0x10015962
mov esi, dword [esp + edi*4 + 0xb4]
movzx eax, word [esi + 0x18]
movzx ecx, byte [esi + 0xc]
add eax, edx
add ecx, eax
add ebp, ecx
cmp ebx, ebp
je 0x100157c8
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
cmp ebx, dword [esp + eax + 0xe8]
jne 0x10015858
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x50], eax
shl eax, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
mov edx, dword [esp + eax + 0xd4]
mov dword [esp + 0x20], edx
je 0x100159cf
cmp edi, dword [esp + 0x24]
jge 0x10015878
mov eax, dword [edx + 4]
cmp eax, dword [esp + edi*4 + 0x128]
jne 0x10015878
cmp ecx, dword [esi + 0x38]
jb 0x10015878
cmp ecx, dword [esi + 0x3c]
jb 0x100159cb
cmp word [esp + 0x4c], 0
jne 0x100158a7
lea eax, [esp + 0x1c]
push eax
push dword [edx + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [esp + 0x38]
call fcn.1002ee30
mov eax, dword [esp + 0x30]
add esp, 0x14
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x100158cc
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.1001aa90
mov edx, dword [esp + 0x28]
add esp, 8
movzx eax, ax
cmp ax, word [edx + 0x10]
jbe 0x10015956
cmp dword [esp + 0x14], 0
jne 0x1001595e
lea eax, [esp + 0xfc]
push eax
push dword [esp + 0x4c]
mov eax, dword [edx + 0x50]
push edx
call eax
movzx eax, word [esp + 0x118]
add esp, 0xc
cmp eax, dword [esp + 0x108]
jae 0x100159c7
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x48]
cmp edx, ecx
jb 0x10015920
add eax, ecx
cmp edx, eax
jb 0x10015a36
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
movzx eax, word [esp + 0x112]
push dword [edx + 4]
mov eax, dword [eax + ecx - 4]
push 3
bswap eax
push eax
push dword [edx + 0x34]
call fcn.1002ee30
mov eax, dword [esp + 0x30]
add esp, 0x14
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x1001595a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100159cb
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x7c]
test ebx, ebx
je 0x10015d3c
cmp dword [0x10094018], 0
je 0x10015d1a
mov eax, dword [0x100956d0]
test eax, eax
je 0x1001598e
push eax
call dword [0x10094074]
add esp, 4
push ebx
call dword [0x10094050]
sub dword [0x10095670], eax
dec dword [0x10095694]
push ebx
call dword [0x10094048]
mov eax, dword [0x100956d0]
add esp, 8
test eax, eax
je 0x10015d3c
push eax
call dword [0x1009407c]
add esp, 4
jmp 0x10015d3c
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [esp + 0x74]
jl 0x100157b0
mov ebp, dword [esp + 0x24]
lea eax, [ebp - 1]
xor edi, edi
test eax, eax
jle 0x10015b47
jmp 0x100159f0
mov eax, dword [esp + edi*4 + 0xe8]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
lea ecx, [ecx + eax*4]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x68]
add ebx, dword [esp + 0x64]
movzx eax, word [edx + eax*2]
mov esi, dword [ecx]
movzx edx, bp
mov ebp, dword [esp + edi*4 + 0xd4]
add edx, eax
cmp byte [ebp + 8], 0
jne 0x10015a62
mov ecx, dword [ebp + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x10015b05
push 0x10091874
push 0xfc7a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10010e10
mov ebp, 0xb
add esp, 0x14
mov dword [esp + 0x14], ebp
jmp 0x10015962
cmp byte [esp + 0x13], 0
je 0x10015aec
lea eax, [esp + 0x128]
push eax
push dword [ecx - 4]
mov eax, dword [ebp + 0x50]
push ebp
call eax
mov edx, dword [esp + 0x138]
mov esi, ebx
mov ecx, dword [esp + 0x134]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x10015ada
jb 0x10015a9f
cmp ecx, 0x7f
ja 0x10015ab0
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x10015b05
test edx, edx
ja 0x10015ada
jb 0x10015abe
cmp ecx, 0x3fff
ja 0x10015ada
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x10015b05
push edx
push ecx
push ebx
call fcn.1002f4e0
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x10015b05
sub esi, 4
cmp eax, 4
jne 0x10015b05
mov eax, dword [esp + 0x30]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x64], edx
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 4]
mov eax, dword [esp + 0x4c]
push ebx
push edx
push esi
add eax, edi
push eax
push dword [esp + 0x48]
call fcn.10025f10
mov ebp, dword [esp + 0x38]
add esp, 0x1c
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x10015962
mov ebp, dword [esp + 0x24]
inc edi
lea eax, [ebp - 1]
cmp edi, eax
jl 0x100159f0
mov esi, 1
sub esi, ebp
cmp esi, ebp
jge 0x10015c24
mov eax, esi
cdq
mov ecx, eax
lea eax, [esp + 0x140]
xor ecx, edx
sub ecx, edx
add eax, ecx
mov dword [esp + 0x5c], eax
cmp byte [eax], 0
jne 0x10015c1b
test esi, esi
jns 0x10015b8d
mov eax, dword [esp + ecx*4 + 0x110]
cmp eax, dword [esp + ecx*4 + 0xe4]
jl 0x10015c1b
test ecx, ecx
jne 0x10015b9e
mov edi, dword [esp + 0xe8]
xor eax, eax
xor edx, edx
jmp 0x10015bd3
cmp ecx, dword [esp + 0x3c]
jge 0x10015bb6
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ecx*4 + 0x110]
jmp 0x10015bba
mov eax, dword [esp + 0x74]
mov edi, dword [esp + ecx*4 + 0xe8]
xor edx, edx
cmp byte [esp + 0x13], dl
sete dl
add edx, dword [esp + ecx*4 + 0xe4]
sub edi, edx
lea ebx, [ecx*4]
mov ebp, dword [esp + ebx + 0xd4]
lea ecx, [esp + 0x74]
push ecx
push edi
push edx
push eax
push ebp
call fcn.1001dcb0
add esp, 0x14
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1001595e
mov eax, dword [esp + 0x5c]
mov byte [eax], 1
mov eax, dword [esp + 0x34]
sub eax, dword [esp + ebx + 0xc0]
mov dword [ebp + 0x14], eax
mov ebp, dword [esp + 0x24]
inc esi
cmp esi, ebp
jl 0x10015b56
cmp dword [esp + 0x168], 0
je 0x10015c87
mov esi, dword [esp + 0x30]
cmp word [esi + 0x18], 0
jne 0x10015c87
mov ebx, dword [esp + 0xd4]
movzx eax, byte [esi + 9]
cmp eax, dword [ebx + 0x14]
jg 0x10015c87
push 0xffffffffffffffff
push ebx
call fcn.1001ce40
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push esi
push ebx
call fcn.1001c2f0
mov ebp, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x10015cda
push dword [ebx + 4]
push ebx
push dword [ebx + 0x34]
call fcn.10023140
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x14], ebp
jmp 0x10015cda
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 0x11], 0
je 0x10015cd6
cmp word [esp + 0x4c], 0
jne 0x10015cd6
xor esi, esi
test ebp, ebp
jle 0x10015cd6
nop
mov eax, dword [esp + esi*4 + 0xd4]
lea edx, [esp + 0x1c]
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.1002ee30
mov ecx, dword [esp + 0x3c]
inc esi
add esp, 0x14
cmp esi, ebp
jl 0x10015ca0
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], ebp
jmp 0x10015cda
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
cmp esi, ebx
jge 0x10015962
lea ebx, [ebx]
mov eax, dword [esp + esi*4 + 0xb4]
test ebp, ebp
jne 0x10015d0c
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.10023140
add esp, 0xc
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x10015cf0
mov dword [esp + 0x14], ebp
jmp 0x10015962
push ebx
call dword [0x10094048]
add esp, 4
jmp 0x10015d3c
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xb8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
cmp dword [esp + 0x3c], ebx
jle 0x10015db5
mov ebp, dword [esp + 0x3c]
jmp 0x10015d50
mov edx, dword [esp + ebx*4 + 0xb4]
test edx, edx
je 0x10015dac
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10015da3
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.10084590
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10015dac
push edx
call fcn.10050280
add esp, 4
inc ebx
cmp ebx, ebp
jl 0x10015d50
mov ebp, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x10015e26
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + ebx*4 + 0xd4]
test edx, edx
je 0x10015e1d
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10015e14
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.10084590
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10015e1d
push edx
call fcn.10050280
add esp, 4
inc ebx
cmp ebx, ebp
jl 0x10015dc1
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x154]
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.100843e0
add esp, 0x148
ret