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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
cmp byte [esi + 0x49], 1
push edi
jne 0x10073ffd
mov dl, byte [esi + 0x48]
test dl, 2
je 0x10073ffd
mov eax, dword [esi + 0x78]
cmp byte [eax + 2], 0
je 0x10073ffd
mov eax, dword [esi + 0x18]
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0x1c]
cmp eax, edi
jne 0x10073fd8
cmp ecx, dword [esp + 0x3c]
jne 0x10073fd8
mov ecx, dword [esp + 0x44]
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test dl, 8
je 0x10073ffd
cmp ecx, dword [esp + 0x3c]
jg 0x10073ffd
jl 0x10073fe9
cmp eax, edi
jae 0x10073ffd
mov edx, dword [esp + 0x44]
mov dword [edx], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10074016
mov eax, edi
call fcn.10069570
mov dword [esp + 0x18], eax
mov byte [edi + 7], 0
jmp 0x1007401e
mov dword [esp + 0x18], 0
mov eax, esi
call fcn.10071cd0
test eax, eax
jne 0x100743a3
cmp byte [esi + 0x49], al
jne 0x10074046
mov eax, dword [esp + 0x44]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, 1
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
movsx eax, word [esi + 0x4c]
mov ebx, dword [esi + eax*4 + 0x78]
movzx ebp, word [ebx + 0x12]
dec ebp
mov dword [esp + 0x1c], ebp
sar ebp, cl
cmp dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov word [esi + eax*2 + 0x4e], bp
jne 0x10074180
mov edi, edi
mov ecx, dword [ebx + 0x40]
movzx eax, byte [ecx + ebp*2 + 1]
movzx ecx, byte [ecx + ebp*2]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x38]
movzx ecx, byte [ebx + 7]
add eax, ecx
cmp byte [ebx + 3], 0
je 0x100740bf
cmp byte [eax], 0x80
jb 0x100740be
mov ecx, dword [ebx + 0x3c]
mov edi, edi
inc eax
cmp eax, ecx
jae 0x100742fc
cmp byte [eax], 0x80
jae 0x100740b0
inc eax
lea edi, [esp + 0x28]
call fcn.10016420
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
cmp eax, edx
mov ecx, dword [esp + 0x28]
jg 0x1007412b
jl 0x100740e0
cmp ecx, dword [esp + 0x38]
jae 0x1007411f
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jle 0x10074138
mov dword [esp + 0x14], 0xffffffff
cmp byte [ebx + 5], 0
jne 0x1007434b
movzx eax, word [ebx + 0x12]
mov edx, dword [esp + 0x10]
cmp edx, eax
jl 0x1007429f
movzx ecx, byte [ebx + 6]
mov eax, dword [ebx + 0x38]
lea eax, [ecx + eax + 8]
jmp 0x100742bb
cmp eax, edx
jl 0x10074154
jg 0x1007412b
cmp ecx, dword [esp + 0x38]
jbe 0x10074154
lea eax, [ebp - 1]
cmp dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
jg 0x1007414a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea ebp, [edx + eax]
sar ebp, 1
jmp 0x10074080
mov dword [esp + 0x14], 1
jmp 0x100740f5
or byte [esi + 0x48], 2
mov dword [esi + 0x18], ecx
movsx ecx, word [esi + 0x4c]
mov dword [esi + 0x1c], eax
mov word [esi + ecx*2 + 0x4e], bp
cmp byte [ebx + 5], 0
jne 0x10074322
mov dword [esp + 0x10], ebp
jmp 0x100740ff
mov edx, dword [ebx + 0x40]
movzx eax, byte [edx + ebp*2 + 1]
lea ecx, [edx + ebp*2]
movzx ecx, byte [ecx]
movzx edx, byte [ebx + 7]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
movzx ecx, byte [ebx + 8]
add eax, edx
add eax, dword [ebx + 0x38]
movzx edi, byte [eax]
cmp edi, ecx
jg 0x100741c5
mov edx, dword [esp + 0x34]
push edx
inc eax
push eax
push edi
call dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x10074265
mov cl, byte [eax + 1]
test cl, cl
js 0x100741f6
and edi, 0x7f
movzx ecx, cl
shl edi, 7
add edi, ecx
movzx ecx, word [ebx + 0xa]
cmp edi, ecx
jg 0x100741f6
mov edx, dword [esp + 0x34]
push edx
add eax, 2
push eax
push edi
call dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x10074265
sub eax, edx
push eax
lea edi, [esi + 0x18]
push ebx
mov eax, edi
call fcn.10021450
mov eax, dword [edi]
mov dword [esp + 0x28], eax
cdq
push edx
push eax
call fcn.10026040
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10074336
mov ecx, dword [esp + 0x20]
movsx eax, word [esi + 0x4c]
push 2
push edi
push ecx
push 0
mov word [esi + eax*2 + 0x4e], bp
call fcn.1006fba0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10074340
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push edx
push edi
push eax
call dword [esp + 0x24]
add esp, 0xc
push edi
mov dword [esp + 0x18], eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jge 0x10074276
lea ecx, [ebp + 1]
mov dword [esp + 0x10], ecx
jmp 0x10074283
jle 0x10074368
lea edx, [ebp - 1]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jg 0x100740f5
mov ecx, dword [esp + 0x10]
lea ebp, [eax + ecx]
sar ebp, 1
jmp 0x10074180
mov ecx, dword [ebx + 0x40]
movzx eax, byte [ecx + edx*2 + 1]
lea ecx, [ecx + edx*2]
movzx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x38]
movzx edi, byte [eax]
movzx ecx, byte [eax + 1]
shl edi, 8
or edi, ecx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edi, 8
or edi, ecx
movsx ecx, word [esi + 0x4c]
shl edi, 8
or edi, eax
mov word [esi + ecx*2 + 0x4e], dx
call fcn.1006fb00
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10074395
mov ecx, dword [esp + 0x24]
jmp 0x10074053
push 0x100b88d4
push 0xe09e
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x44]
mov dword [edx], 0
mov dword [esp + 0x14], 0
jmp 0x10074395
mov dword [esp + 0x14], 7
jmp 0x10074395
push edi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
jmp 0x10074395
movsx eax, word [esi + 0x4c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov word [esi + eax*2 + 0x4e], bp
mov dword [ecx], edx
mov dword [esp + 0x14], 0
jmp 0x10074395
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov dword [eax], 0
movsx ecx, word [esi + 0x4c]
mov word [esi + ecx*2 + 0x4e], bp
cmp byte [edx + 7], 0
mov dword [esp + 0x14], 0
je 0x10074395
mov dword [esp + 0x14], 0xb
xor eax, eax
and byte [esi + 0x48], 0xf9
mov word [esi + 0x2c], ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret