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

Disassembly:
sub esp, 0x138
mov eax, dword [0x8bb040]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x148]
lea eax, [esp + 0x7c]
push edi
xor ebp, ebp
mov dword [esp + 0x68], esi
push 0x40
mov edi, edx
mov dword [esp + 0x20], 0
mov ebx, ecx
mov dword [esp + 0x64], edi
push ebp
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x148], ebp
mov byte [esp + 0x14c], 0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x673253
lea eax, [esi + 7]
jmp 0x67451b
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x673267
xor edi, edi
jmp 0x67328c
test edi, edi
je 0x67327e
cmp edi, esi
jne 0x67327d
mov eax, dword [esp + 0x154]
lea edi, [eax - 2]
add edi, esi
jmp 0x673285
dec edi
mov eax, dword [esp + 0x154]
mov esi, 2
sub esi, eax
mov dword [esp + 0x4c], edi
lea eax, [esi + 1]
sub edi, ecx
mov dword [esp + 0x18], eax
lea ecx, [edi + esi]
cmp ecx, edx
jne 0x6732a9
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x6732bd
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x40], ecx
mov edx, dword [ecx]
bswap edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], edx
lea edi, [esi*4]
test ebp, ebp
jne 0x6744d7
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xc4]
add eax, edi
push ebp
push eax
call fcn.0066c5f0
mov ebp, eax
add esp, 8
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x6744d7
lea ebx, [esp + 0xc4]
mov ecx, dword [ebx + edi]
cmp dword [ecx + 0x14], eax
jge 0x67332e
call fcn.0066c1d0
mov ebp, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x673447
mov eax, dword [ebx + edi]
mov ebx, dword [esp + 0x1c]
add ebx, 4
movzx eax, word [eax + 0x18]
add ebx, eax
mov eax, esi
dec esi
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x673461
mov ebx, dword [esp + 0x50]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x67339a
mov eax, dword [esp + 0x4c]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x67339a
mov eax, dword [ebx + 0x24]
push eax
mov dword [esp + esi*4 + 0x7c], eax
push ebx
mov ecx, dword [eax]
mov eax, dword [ebx + 0x4c]
bswap ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], ecx
call eax
mov edx, dword [esp + 0x3c]
add esp, 8
movzx eax, ax
mov dword [esp + esi*4 + 0xe4], eax
mov byte [ebx + 0xc], 0
jmp 0x6732d0
mov ecx, dword [esp + 0x4c]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebx + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [ebx + 0x38]
push edi
push ebx
mov dword [esp + esi*4 + 0x80], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x4c]
call eax
mov edx, dword [esp + 0x44]
add esp, 8
mov ebp, dword [esp + 0x50]
movzx ebx, ax
mov dword [esp + esi*4 + 0xe4], ebx
test byte [edx + 0x18], 0xc
je 0x67341a
mov ecx, edi
sub ecx, dword [ebp + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x67341a
mov eax, dword [esp + 0x68]
push ebx
add eax, ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
sub edi, dword [ebp + 0x38]
add esp, 0xc
add edi, dword [esp + 0x68]
mov dword [esp + esi*4 + 0x78], edi
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x28]
push eax
movzx eax, byte [ebp + 0xc]
mov ecx, ebp
sub edx, eax
push ebx
add edx, esi
call fcn.00672030
mov ebp, dword [esp + 0x30]
add esp, 8
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], ebp
jmp 0x6732d0
push edi
lea eax, [esp + 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edi, edi
jmp 0x673de9
mov eax, dword [esp + 0x3c]
lea esi, [ebx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x24]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
push edx
push eax
call fcn.00654640
mov ebx, dword [esp + 0x20]
mov edi, eax
add esp, 8
mov dword [esp + 0x88], edi
test edi, edi
jne 0x673498
lea ebp, [eax + 7]
jmp 0x673ded
mov ecx, dword [esp + 0xc4]
lea eax, [edi + esi*4]
mov dword [esp + 0x8c], eax
xor edx, edx
lea eax, [eax + esi*2]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x58], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x17], al
movzx eax, al
mov dword [esp + 0x6c], eax
mov dword [esp + 0x38], edx
test ebx, ebx
jle 0x67371b
mov ebx, dword [esp + 0x80]
lea esp, [esp]
mov edi, dword [esp + edx*4 + 0xc4]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x54], edi
movzx eax, word [edi + 0x18]
mov ebp, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x1c], eax
add esi, ebp
movzx eax, word [edi + 0x1a]
mov edx, eax
mov dword [esp + 0x5c], eax
mov al, byte [ebp]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], edx
mov dword [esp + 0x48], esi
cmp al, byte [ecx]
jne 0x673907
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x1c]
add eax, eax
push eax
mov eax, dword [esp + 0x90]
push 0
lea eax, [eax + ebx*2]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x6735d5
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x1c], edx
jb 0x6736ed
test edx, edx
je 0x6735a3
mov edi, dword [esp + 0x70]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x88]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x673570
mov edi, dword [esp + 0x54]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x48], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x6735d5
mov esi, dword [esp + 0x88]
lea ecx, [edi + 0x24]
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 0x6735b4
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x80], ebx
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add eax, ebp
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x67361e
mov edi, dword [esp + 0x5c]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x88]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edx
jb 0x6735f0
mov edi, dword [esp + 0x54]
mov dword [esp + 0x80], ebx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + edx*4 + 0x10c], ebx
cmp edx, eax
jge 0x6736d6
cmp byte [esp + 0x17], 0
jne 0x6736d6
movzx eax, word [esp + edx*4 + 0xe4]
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
push eax
push dword [esp + edx*4 + 0x7c]
add esi, ebp
mov word [ecx + ebx*2], ax
add ebp, eax
push esi
mov dword [esp + 0x3c], ebp
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x64]
add esp, 0xc
mov edx, dword [esp + 0x8c]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x88]
mov dword [esi + ebx*4], eax
mov ax, word [edx + ebx*2]
sub ax, cx
mov word [edx + ebx*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x6736ad
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x6736ca
cmp ecx, 4
jae 0x6736ca
mov eax, dword [esp + 0x2c]
mov byte [eax + ebp], 0
inc ebp
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x6736b6
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x80], ebx
inc edx
mov dword [esp + 0x38], edx
cmp edx, dword [esp + 0x18]
jge 0x673717
mov ecx, dword [esp + 0xc4]
jmp 0x6734f0
push 0x88c2c4
push 0x12ff9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x673de9
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
xor edx, edx
movzx ebp, ax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add ebp, eax
xor eax, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x2c], eax
test ebx, ebx
jle 0x673827
mov ecx, ebx
lea esi, [esp + 0x10c]
lea edi, [esp + 0xf8]
rep movsd dword es:[edi], dword [esi]
jmp 0x673760
lea ebx, [eax*4]
mov esi, dword [esp + ebx + 0xc4]
mov ecx, dword [esp + ebx + 0x10c]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0x90], eax
mov dword [esp + edx*4 + 0xa8], ecx
test edx, edx
je 0x673798
cmp ecx, dword [esp + edx*4 + 0xa4]
jne 0x673798
dec edx
mov dword [esp + 0x38], edx
cmp byte [esp + 0x17], 0
jne 0x6737bc
mov eax, dword [esp + 0x50]
inc edx
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + edx*4 + 0x90], eax
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0xa8], eax
lea eax, [esp + 0xe4]
mov edi, ebp
sub edi, dword [esi + 0x14]
add eax, ebx
xor ebp, ebp
mov dword [esp + 0x5c], eax
cmp byte [esi + 0xc], 0
mov dword [eax], edi
jbe 0x673809
lea ebx, [esi + 0x24]
jmp 0x6737e0
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 0x6737e0
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x38]
mov dword [eax], edi
mov eax, dword [esp + 0x2c]
inc edx
mov ebx, dword [esp + 0x18]
inc eax
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], edx
cmp eax, ebx
jl 0x673760
mov ecx, ebx
mov dword [esp + 0x1c], 0
test ebx, ebx
mov dword [esp + 0x38], ecx
mov ebx, dword [esp + 0x80]
jle 0x673a55
mov eax, 1
xor edi, edi
mov dword [esp + 0x30], eax
nop
mov ebp, dword [esp + edi + 0xe4]
mov edx, dword [esp + 0x48]
cmp ebp, edx
jle 0x673965
mov esi, dword [esp + 0x80]
lea edx, [esp + 0xe8]
add edx, edi
cmp eax, ecx
jl 0x673894
lea ecx, [eax + 1]
mov dword [esp + 0x38], ecx
cmp ecx, 5
jg 0x673b6b
mov dword [edx], 0
mov dword [esp + edi + 0xfc], esi
mov ebx, dword [esp + edi + 0xf8]
mov eax, dword [esp + 0x8c]
lea edx, [ebx - 1]
movzx eax, word [eax + edx*2]
test ax, ax
jne 0x6738bd
lea ecx, [esp + 0x80]
call fcn.006726d0
movzx eax, ax
mov ebp, dword [esp + edi + 0xe4]
movzx ecx, ax
add ecx, 2
sub ebp, ecx
cmp byte [esp + 0x17], 0
mov dword [esp + edi + 0xe4], ebp
jne 0x673933
cmp ebx, esi
jge 0x673931
mov eax, dword [esp + 0x8c]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x6738ff
mov edx, ebx
lea ecx, [esp + 0x80]
call fcn.006726d0
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x673933
push 0x88c2c4
push 0x12fe1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x673de9
xor ecx, ecx
lea edx, [esp + 0xe8]
add edx, edi
lea eax, [ebx - 1]
mov dword [esp + edi + 0xf8], eax
mov eax, dword [esp + 0x30]
add dword [edx], ecx
mov ecx, dword [esp + 0x38]
cmp ebp, dword [esp + 0x48]
jg 0x673873
mov ebx, dword [esp + 0x80]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + edi + 0xf8]
cmp esi, ebx
jge 0x673a0d
mov ecx, dword [esp + 0x8c]
jmp 0x673980
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x6739a5
mov edx, esi
lea ecx, [esp + 0x80]
call fcn.006726d0
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x48]
movzx eax, ax
movzx eax, ax
add eax, 2
add ebp, eax
cmp ebp, edx
jg 0x673a09
inc esi
mov dword [esp + edi + 0xe4], ebp
cmp byte [esp + 0x17], 0
mov dword [esp + edi + 0xf8], esi
jne 0x6739fa
cmp esi, ebx
jge 0x6739f8
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x6739f0
mov edx, esi
lea ecx, [esp + 0x80]
call fcn.006726d0
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x48]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x6739fa
xor eax, eax
sub dword [esp + edi + 0xe8], eax
cmp esi, ebx
jl 0x673980
cmp esi, ebx
jl 0x673a1d
mov eax, dword [esp + 0x30]
mov ecx, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
jmp 0x673a40
mov edx, dword [esp + 0x1c]
test edx, edx
jle 0x673a2e
mov eax, dword [esp + edi + 0xf4]
jmp 0x673a30
xor eax, eax
cmp esi, eax
jle 0x673b95
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
inc edx
inc eax
add edi, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
cmp edx, ecx
jl 0x673850
lea eax, [ecx - 1]
mov edx, 1
mov dword [esp + 0x30], eax
test eax, eax
jle 0x673c4d
lea ecx, [esp + 0xe4]
sub ecx, 4
lea edx, [esp + 0xf8]
sub edx, 4
mov dword [esp + 0x54], ecx
lea edi, [esp + 0xe4]
mov dword [esp + 0x1c], edx
lea esp, [esp]
mov esi, dword [edx + eax*4]
mov ecx, dword [ecx + eax*4]
dec esi
mov edi, dword [edi + eax*4]
mov edx, esi
sub edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x8c]
inc edx
cmp word [eax + edx*2], 0
mov dword [esp + 0x24], ecx
lea ebp, [eax + edx*2]
mov dword [esp + 0x2c], ebp
jne 0x673acd
lea ecx, [esp + 0x80]
call fcn.006726d0
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x30]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x673aeb
mov edx, esi
lea ecx, [esp + 0x80]
call fcn.006726d0
movzx eax, ax
movzx ebp, word [ebp]
movzx edx, ax
mov dword [esp + 0x5c], edx
test edi, edi
je 0x673b31
cmp dword [esp + 0x154], 0
jne 0x673bbf
mov ecx, dword [esp + 0x38]
mov eax, 2
dec ecx
cmp ebx, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x24]
sub ecx, eax
lea eax, [ebp + 2]
sub ecx, edx
add eax, edi
cmp eax, ecx
jg 0x673bbf
mov ecx, dword [esp + 0x24]
add ebp, 2
mov eax, 0xfffffffe
add edi, ebp
mov ebp, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x8c]
sub ebp, 2
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebp
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x673ad1
jmp 0x673bc7
push 0x88c2c4
push 0x1305e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x673de9
push 0x88c2c4
push 0x1307f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x673de9
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0xe4]
mov esi, dword [esp + 0x54]
mov dword [ebx + eax*4], edi
mov ebx, dword [esp + 0x80]
mov dword [esi + eax*4], ecx
cmp eax, 1
jle 0x673bee
mov ecx, dword [edx + eax*4 - 4]
jmp 0x673bf0
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x673c23
dec eax
lea edi, [esp + 0xe4]
mov dword [esp + 0x30], eax
mov ecx, esi
test eax, eax
jg 0x673a90
mov eax, dword [esp + 0xc4]
xor esi, esi
mov eax, dword [eax + 0x38]
lea edx, [esi + 1]
movzx eax, byte [eax]
mov dword [esp + 0x30], eax
jmp 0x673c70
push 0x88c2c4
push 0x130ab
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x673de9
mov eax, dword [esp + 0xc4]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x30], eax
test ecx, ecx
jle 0x673e36
jmp 0x673c70
cmp esi, dword [esp + 0x18]
jge 0x673d1c
mov edi, dword [esp + esi*4 + 0xc4]
mov dword [esp + esi*4 + 0xd0], edi
mov dword [esp + esi*4 + 0xc4], 0
mov dword [esp + 0x2c], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x673cbc
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x673cbc
cmp dword [edx + 0x68], 0
je 0x673cb8
call fcn.00664b50
jmp 0x673ce1
xor ebp, ebp
jmp 0x673ce3
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x673ce7
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x673cdc
call fcn.00666590
jmp 0x673ce1
call fcn.00666500
mov ebp, eax
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x60]
xor ecx, ecx
sub eax, dword [esp + 0x4c]
inc dword [esp + 0x20]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x28], ebp
inc ecx
cmp dword [eax + 0x20], ecx
je 0x673d0f
test ebp, ebp
je 0x673dc2
test ebp, ebp
jne 0x673de5
jmp 0x673dad
cmp dword [esp + 0x154], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
cmovne eax, edx
push 0
push eax
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x38]
call fcn.00670b00
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x673de5
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x30]
call fcn.0066c510
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x20]
mov dword [esp + esi*4 + 0xd0], edi
mov dword [esp + esi*4 + 0x10c], ebx
cmp byte [ecx + 0x11], 0
je 0x673da5
mov edx, dword [edi + 4]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x54]
push dword [eax + 4]
push 5
call fcn.0066ad10
mov ebp, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x673de5
mov edx, dword [esp + 0x44]
mov dword [esp + 0x34], edx
inc esi
cmp esi, dword [esp + 0x38]
jge 0x673e36
mov edx, 1
jmp 0x673c70
push 0x88c2c4
push 0x130cc
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov ebp, 0xb
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x88]
test eax, eax
je 0x673e01
mov edx, eax
xor ecx, ecx
call fcn.00654910
xor esi, esi
test ebx, ebx
jle 0x6744ee
jmp 0x673e10
mov ecx, dword [esp + esi*4 + 0xc4]
test ecx, ecx
je 0x6744e5
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x6744e0
call fcn.00664480
jmp 0x6744e5
mov edi, dword [esp + 0x20]
xor ecx, ecx
test edi, edi
jle 0x673e56
mov eax, dword [esp + ecx*4 + 0xd0]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x120], eax
inc ecx
cmp ecx, edi
jl 0x673e40
lea ebx, [edi - 1]
xor ebp, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebp
test ebx, ebx
jle 0x673f49
mov eax, ebx
lea ecx, [ecx]
lea esi, [ebp + 1]
mov ebx, ebp
cmp esi, edi
jge 0x673f3c
lea ecx, [ecx]
mov eax, dword [esp + esi*4 + 0xd0]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xd0]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, edi
jl 0x673e80
mov dword [esp + 0x2c], ebx
cmp ebx, ebp
je 0x673f38
mov esi, dword [esp + 0x3c]
xor edx, edx
mov eax, dword [0x8c2aa4]
mov edi, dword [esp + ebx*4 + 0xd0]
mov ecx, dword [esp + ebp*4 + 0xd0]
div dword [esi + 0x24]
mov ebp, dword [ecx + 4]
mov ecx, dword [ecx + 0x48]
mov ebx, dword [edi + 4]
lea edx, [eax + 1]
mov eax, dword [edi + 0x48]
movzx esi, word [ecx + 0x1c]
movzx edi, word [eax + 0x1c]
mov word [ecx + 0x1c], di
call fcn.00660970
mov ecx, dword [esp + 0x2c]
mov edx, ebp
mov eax, dword [esp + ecx*4 + 0xd0]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], si
call fcn.00660970
mov esi, dword [esp + 0x44]
mov edx, ebx
mov eax, dword [esp + esi*4 + 0xd0]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], di
call fcn.00660970
mov eax, dword [esp + esi*4 + 0xd0]
mov edi, dword [esp + 0x20]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + eax*4 + 0xd0]
mov dword [eax + 4], ebp
mov ebp, esi
mov eax, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x44], ebp
cmp ebp, eax
jl 0x673e70
test byte [esp + 0x30], 8
mov eax, dword [esp + edi*4 + 0xcc]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x673f92
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x673f92
lea edx, [esp + 0xc4]
lea eax, [esp + 0xd0]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + edi*4 + 0xcc]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x80]
cmp byte [eax + 0x11], 0
je 0x674133
mov edi, dword [esp + 0xd0]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x1c], ebp
movzx edx, word [edi + 0x18]
movzx eax, byte [edi + 0xc]
add edx, eax
mov dword [esp + 0x44], edx
test esi, esi
jle 0x67412f
mov eax, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], eax
mov edi, edi
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx + ebp*4]
mov dword [esp + 0x54], ecx
cmp ebp, edx
jne 0x674038
mov esi, dword [esp + 0x20]
xor eax, eax
cmp byte [esp + 0x17], al
sete al
mov dword [esp + 0x60], eax
inc ebx
cmp ebx, esi
jge 0x674011
mov edi, dword [esp + ebx*4 + 0xd0]
jmp 0x674018
mov edi, dword [esp + ebx*4 + 0xc4]
movzx eax, word [edi + 0x18]
add eax, dword [esp + 0x60]
movzx ecx, byte [edi + 0xc]
add ecx, eax
add edx, ecx
cmp ebp, edx
je 0x674003
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], edx
mov esi, dword [esp + 0x2c]
cmp ebp, dword [esp + esi + 0xf8]
mov esi, dword [esp + 0x80]
jne 0x674072
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
shl eax, 2
cmp byte [esp + 0x17], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + eax + 0xd0]
mov dword [esp + 0x34], eax
je 0x674122
cmp ebx, dword [esp + 0x20]
jge 0x674096
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x120]
mov eax, dword [esp + 0x34]
jne 0x674096
cmp ecx, dword [edi + 0x38]
jb 0x674096
cmp ecx, dword [edi + 0x3c]
jb 0x674122
cmp word [esp + 0x58], 0
jne 0x6740c2
lea edx, [esp + 0x28]
push edx
push dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x44]
push 5
bswap edx
call fcn.0066ad10
mov ebp, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x24], ebp
jmp 0x6740c6
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x8c]
movzx eax, word [eax + edx*2]
test ax, ax
jne 0x6740e9
lea ecx, [esp + 0x80]
call fcn.006726d0
movzx eax, ax
mov ecx, dword [esp + 0x34]
cmp ax, word [ecx + 0x10]
jbe 0x67410e
lea eax, [esp + 0x28]
mov edx, edi
push eax
push dword [esp + 0x58]
call fcn.0066b520
mov ebp, dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x673de5
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
inc ebp
mov dword [esp + 0x1c], ebp
cmp ebp, esi
jl 0x673fe0
mov edi, dword [esp + 0x20]
xor ebx, ebx
lea eax, [edi - 1]
mov dword [esp + 0x40], ebx
test eax, eax
jle 0x6742f8
mov eax, dword [esp + 0x58]
movzx ecx, ax
mov dword [esp + 0x6c], ecx
nop
mov edi, dword [esp + ebx*4 + 0xf8]
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + ebx*4 + 0xd0]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x60], ebp
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0x8c]
movzx eax, word [eax + edi*2]
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x68]
add ecx, dword [esp + 0x64]
cmp byte [ebp + 8], 0
mov dword [esp + 0x1c], ecx
jne 0x6741a0
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x674273
cmp byte [esp + 0x17], 0
je 0x67425a
lea eax, [esp + 0x120]
dec edi
push eax
mov eax, dword [esp + 0x8c]
push dword [eax + edi*4]
mov eax, dword [ebp + 0x50]
push ebp
call eax
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x124]
mov ebx, eax
mov ecx, dword [esp + 0x120]
lea ebp, [eax + 4]
test edx, edx
ja 0x67423d
jb 0x6741e9
cmp ecx, 0x7f
ja 0x674208
mov eax, 1
mov dword [esp + 0x1c], 0
and cl, 0x7f
mov byte [ebp], cl
mov ebp, dword [esp + 0x60]
lea edx, [eax + 4]
jmp 0x674273
test edx, edx
ja 0x67423d
jb 0x674216
cmp ecx, 0x3fff
ja 0x67423d
mov eax, ecx
mov dword [esp + 0x1c], 0
shrd eax, edx, 7
or al, 0x80
and cl, 0x7f
mov byte [ebp], al
mov eax, 2
mov byte [ebp + 1], cl
mov ebp, dword [esp + 0x60]
lea edx, [eax + 4]
jmp 0x674273
push edx
push ecx
mov ecx, ebp
call fcn.00659db0
mov ebp, dword [esp + 0x68]
add esp, 8
mov dword [esp + 0x1c], 0
lea edx, [eax + 4]
jmp 0x674273
sub ebx, 4
cmp eax, 4
jne 0x674273
mov eax, dword [esp + 0x50]
push ebx
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x64], edx
xor eax, eax
lea esp, [esp]
cmp dword [esp + eax*4 + 0xa8], edi
jg 0x67428f
inc eax
cmp eax, 6
jl 0x674280
mov ecx, dword [esp + eax*4 + 0x90]
cmp ebx, ecx
jae 0x6742a1
lea eax, [edx + ebx]
cmp eax, ecx
ja 0x6742e9
push dword [ebp + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
push eax
push edx
mov edx, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x50]
lea edx, [edx + ebx]
call fcn.00672150
mov edi, dword [esp + 0x30]
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x673de9
inc ebx
lea eax, [edi - 1]
mov dword [esp + 0x40], ebx
cmp ebx, eax
jge 0x6742fc
mov ecx, dword [esp + 0x6c]
jmp 0x674150
push 0x88c2c4
push 0x13194
jmp 0x673dcc
mov ebp, dword [esp + 0x24]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x40], ecx
cmp ecx, edi
jge 0x6743e3
nop
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
cmp byte [esp + edi + 0x13c], 0
jne 0x6743d2
lea ebx, [edi*4]
test ecx, ecx
jns 0x674346
mov eax, dword [esp + ebx + 0x108]
cmp eax, dword [esp + ebx + 0xf4]
jl 0x6743d2
test edi, edi
jne 0x674357
mov ecx, dword [esp + 0xf8]
xor edx, edx
xor eax, eax
jmp 0x67438a
cmp edi, dword [esp + 0x18]
jge 0x67436f
xor edx, edx
cmp byte [esp + 0x17], dl
sete dl
add edx, dword [esp + ebx + 0x108]
jmp 0x674371
mov edx, esi
mov ecx, dword [esp + ebx + 0xf8]
xor eax, eax
cmp byte [esp + 0x17], al
sete al
add eax, dword [esp + ebx + 0xf4]
sub ecx, eax
lea ebp, [esp + 0x80]
push ebp
push ecx
mov ecx, dword [esp + ebx + 0xd8]
push eax
call fcn.00672bc0
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x673de5
mov eax, dword [esp + ebx + 0xd0]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + ebx + 0xe4]
mov byte [esp + edi + 0x13c], 1
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x40], ecx
cmp ecx, edi
jl 0x674310
cmp dword [esp + 0x150], 0
je 0x67444d
mov ebx, dword [esp + 0x50]
cmp word [ebx + 0x18], 0
jne 0x67444d
mov ecx, dword [esp + 0xd0]
movzx eax, byte [ebx + 9]
cmp eax, dword [ecx + 0x14]
jg 0x67444d
or edx, 0xffffffff
call fcn.0066b750
mov ecx, dword [esp + 0xd0]
mov edx, ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.00673100
mov ebp, dword [esp + 0x2c]
add esp, 4
test ebp, ebp
jne 0x67449e
mov ecx, dword [esp + 0xd0]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.00671550
add esp, 4
mov ebp, eax
jmp 0x67449e
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x67449e
cmp word [esp + 0x58], 0
jne 0x67449e
xor esi, esi
test edi, edi
jle 0x67449e
jmp 0x674470
mov eax, dword [esp + esi*4 + 0xd0]
lea edx, [esp + 0x28]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.0066ad10
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x674470
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov esi, edi
cmp edi, ebx
jge 0x673ded
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0xc4]
test ebp, ebp
jne 0x6744cd
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.00671550
add esp, 4
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x6744b0
jmp 0x673ded
lea eax, [edi + 4]
push eax
jmp 0x673448
call fcn.00660770
inc esi
cmp esi, ebx
jl 0x673e10
xor esi, esi
test edi, edi
jle 0x674519
mov ecx, dword [esp + esi*4 + 0xd0]
test ecx, ecx
je 0x674514
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x67450f
call fcn.00664480
jmp 0x674514
call fcn.00660770
inc esi
cmp esi, edi
jl 0x6744f4
mov eax, ebp
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0073297b
add esp, 0x138
ret