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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x1011d004]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
xor eax, eax
push ebx
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x20], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ecx], eax
setne al
mov dword [esp + 0x24], eax
push edi
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], ebx
test eax, eax
je 0x10039411
push eax
call dword [0x1011d148]
add esp, 4
push 0
push 0x20
mov ecx, esi
call fcn.10005060
mov edi, eax
add esp, 8
mov dword [esp + 0xc], edi
test edi, edi
je 0x10039433
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
push 0x10c
lea eax, [esp + 0x4c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x100399b0
mov dword [esp + 0x48], esi
test ebx, ebx
je 0x10039502
cmp dword [esi + 0x210], 0
je 0x10039472
mov edx, ebx
mov ecx, esi
call fcn.10004c70
jmp 0x10039502
cmp ebx, dword [esi + 0x164]
jae 0x100394aa
cmp ebx, dword [esi + 0x15c]
jb 0x10039492
mov eax, dword [esi + 0x158]
mov dword [ebx], eax
mov dword [esi + 0x158], ebx
jmp 0x10039502
cmp ebx, dword [esi + 0x160]
jb 0x100394aa
mov eax, dword [esi + 0x150]
mov dword [ebx], eax
mov dword [esi + 0x150], ebx
jmp 0x10039502
cmp dword [0x1011d0f8], 0
je 0x100394f8
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100394c6
push eax
call dword [0x1011d148]
add esp, 4
push ebx
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push ebx
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x10039502
push eax
call dword [0x1011d150]
jmp 0x100394ff
push ebx
call dword [0x1011d11c]
add esp, 4
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
cmp byte [esi + 0x5b], al
jne 0x10039518
mov ecx, esi
call fcn.1001a370
push dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
lea ecx, [esp + 0x4c]
push ebx
xor edx, edx
call fcn.100527a0
mov edi, eax
add esp, 8
mov dword [esp + 0x20], edi
test edi, edi
je 0x1003999e
mov al, byte [edi + 0x2b]
cmp al, 1
je 0x1003998b
test byte [edi + 0x1c], 0x80
jne 0x10039983
cmp al, 2
je 0x1003997b
mov ebx, dword [esp + 0xc]
mov ecx, 0xffff8000
mov dword [ebx + 0x1c], edi
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x10039588
mov eax, dword [esi + 0x10]
xor ecx, ecx
add eax, 0xc
cmp dword [eax], edx
je 0x10039588
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x10039580
mov eax, dword [esi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8]
mov dword [ebx + 0x18], eax
xor ebx, ebx
movsx eax, word [edi + 0x22]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x100395d3
mov edi, dword [edi + 4]
mov esi, dword [esp + 0x38]
mov edx, dword [edi]
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x100396f7
test ecx, ecx
jne 0x10039709
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x2c], ebx
cmp ebx, eax
je 0x10039953
cmp dword [ebp + 0x20], 0
je 0x10039687
mov eax, dword [esi + 0x20]
xor edi, edi
and eax, 0x4000
or eax, edi
je 0x1003962b
mov esi, dword [esp + 0x20]
mov esi, dword [esi + 0x30]
test esi, esi
je 0x1003962b
nop
mov edx, dword [esi + 0x14]
test edx, edx
jle 0x10039624
lea ecx, [esi + 0x24]
nop word [eax + eax]
cmp dword [ecx], ebx
lea ecx, [ecx + 8]
mov eax, str.foreign_key
cmovne eax, edi
mov edi, eax
sub edx, 1
jne 0x10039610
mov esi, dword [esi + 4]
test esi, esi
jne 0x10039600
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1003967f
nop word [eax + eax]
movzx esi, word [ebx + 0x32]
xor eax, eax
test esi, esi
je 0x10039674
mov ecx, dword [ebx + 4]
mov ebx, ecx
mov dword [esp + 0x24], ecx
movzx edx, word [ebx + eax*2]
movsx ecx, dx
cmp ecx, dword [esp + 0x2c]
je 0x10039666
cmp dx, 0xfffe
jne 0x1003966b
mov edi, str.indexed
inc eax
cmp eax, esi
jl 0x10039653
mov ebx, dword [esp + 0x1c]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x10039640
test edi, edi
jne 0x100398d5
lea ecx, [esp + 0x48]
call fcn.10028fb0
mov edi, dword [esp + 0xc]
mov esi, eax
mov dword [edi + 0x10], esi
test esi, esi
je 0x1003986d
mov eax, dword [esp + 0x20]
mov edi, 0xffff8000
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x100396c9
mov eax, dword [esp + 0x10]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x100396c9
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x100396c1
mov edx, dword [esi + 0x74]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
cmp dword [esi + 0x78], edx
jg 0x10039724
push ebx
push dword [esp + 0x2c]
mov edx, 2
mov ecx, esi
push edi
call fcn.10029250
add esp, 0xc
mov edx, eax
jmp 0x10039753
movzx eax, byte [eax + 0x10114750]
movzx ecx, byte [ecx + 0x10114750]
sub ecx, eax
jne 0x1003970f
inc edx
jmp 0x100395b0
mov eax, dword [esp + 0x1c]
inc ebx
add edi, 0x10
cmp ebx, eax
jl 0x100395a8
jmp 0x100395cb
mov ebx, dword [esp + 0x28]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], 2
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
jne 0x1003976e
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x1c]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x10039785
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
push ecx
push 0x10113040
mov edx, 6
mov ecx, esi
call fcn.10029ea0
mov ebx, eax
add esp, 8
mov eax, dword [esi + 0xa4]
bts eax, edi
mov dword [esi + 0xa4], eax
cmp edi, 1
je 0x100397d2
mov eax, dword [esi]
mov ecx, edi
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x100397d2
mov eax, dword [esi + 0xa8]
bts eax, edi
mov dword [esi + 0xa8], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
cmp byte [ecx + 0x53], 0
jne 0x10039869
mov dword [ebx + 4], edi
mov eax, dword [edx + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xc], eax
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
jne 0x10039818
push 0
push dword [edx]
mov edx, dword [esi + 0x70]
mov ecx, esi
add edx, 0x28
call fcn.1002a2c0
mov ecx, dword [esp + 0x18]
add esp, 8
mov edx, dword [esp + 0x20]
cmp byte [ecx + 0x53], 0
jne 0x10039869
cmp dword [ebp + 0x20], 0
je 0x10039828
mov byte [ebx + 0x14], 0x65
mov eax, dword [edx + 0x14]
mov ecx, esi
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edi
mov byte [ebx + 0x15], 0xfd
movsx eax, word [edx + 0x22]
inc eax
mov dword [ebx + 0x24], eax
movsx eax, word [edx + 0x22]
lea edx, [esp + 0x48]
mov dword [ebx + 0x44], eax
xor eax, eax
mov word [esp + 0x110], ax
mov dword [esp + 0x74], 1
mov dword [esp + 0x70], 1
call fcn.1002af70
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov word [edi + 8], ax
mov dword [edi + 0x14], esi
cmp byte [esi + 0x5b], 0
jne 0x10039889
mov ecx, esi
call fcn.1001a3c0
cmp byte [esi + 0x53], 0
jne 0x100399b0
push dword [ebp + 0x1c]
lea edx, [esp + 0x34]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.10039190
mov ebx, eax
add esp, 8
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], eax
cmp eax, 0x32
jge 0x10039949
cmp ebx, 0x11
jne 0x10039949
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
jmp 0x10039433
mov ebx, dword [esp + 0x10]
push edi
push str.cannot_open__s_column_for_writing
push ebx
call fcn.10007ea0
add esp, 0xc
mov dword [esp + 0x14], eax
cmp byte [ebx + 0x5b], 0
mov dword [esp + 0x18], 1
jne 0x10039901
mov ecx, ebx
call fcn.1001a3c0
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10039aa1
mov eax, dword [esi + 0x14]
cmp eax, 0x2df20da3
je 0x10039921
cmp eax, 0x319c2973
jne 0x10039928
mov ecx, esi
call fcn.1002ccc0
mov edi, dword [esi]
mov edx, esi
mov ecx, edi
call fcn.1002cf00
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x100399d5
mov dword [ecx + 8], eax
jmp 0x100399d8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
jmp 0x100399b4
push dword [esp + 0x38]
push str.no_such_column:___s_
push esi
call fcn.10007ea0
add esp, 0xc
mov dword [esp + 0x14], eax
cmp byte [esi + 0x5b], 0
mov dword [esp + 0x18], 1
jne 0x10039901
mov ecx, esi
jmp 0x100398fc
push ebx
push str.cannot_open_view:__s
jmp 0x10039991
push ebx
push str.cannot_open_table_without_rowid:__s
jmp 0x10039991
push ebx
push str.cannot_open_virtual_table:__s
lea eax, [esp + 0x50]
push eax
call fcn.10008be0
add esp, 0xc
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10039969
mov dword [esp + 0x4c], 0
jmp 0x10039965
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x100399c8
cmp byte [esi + 0x53], bl
jne 0x100399c8
mov eax, dword [esp + 0x44]
mov dword [eax], edi
jmp 0x10039b4c
test edi, edi
je 0x10039b4c
jmp 0x10039905
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100399e5
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov dword [esi + 0x14], 0x5606c3c8
mov dword [esi], 0
test edi, edi
je 0x10039a45
cmp dword [edi + 0x210], 0
je 0x10039a0d
mov edx, esi
mov ecx, edi
call fcn.10004c70
jmp 0x10039a9d
cmp esi, dword [edi + 0x164]
jae 0x10039a45
cmp esi, dword [edi + 0x15c]
jb 0x10039a2d
mov eax, dword [edi + 0x158]
mov dword [esi], eax
mov dword [edi + 0x158], esi
jmp 0x10039a9d
cmp esi, dword [edi + 0x160]
jb 0x10039a45
mov eax, dword [edi + 0x150]
mov dword [esi], eax
mov dword [edi + 0x150], esi
jmp 0x10039a9d
cmp dword [0x1011d0f8], 0
je 0x10039a93
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x10039a61
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x10039a9d
push eax
call dword [0x1011d150]
jmp 0x10039a9a
push esi
call dword [0x1011d11c]
add esp, 4
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x210], 0
je 0x10039abc
mov edx, edi
mov ecx, esi
call fcn.10004c70
jmp 0x10039b4c
cmp edi, dword [esi + 0x164]
jae 0x10039af4
cmp edi, dword [esi + 0x15c]
jb 0x10039adc
mov eax, dword [esi + 0x158]
mov dword [edi], eax
mov dword [esi + 0x158], edi
jmp 0x10039b4c
cmp edi, dword [esi + 0x160]
jb 0x10039af4
mov eax, dword [esi + 0x150]
mov dword [edi], eax
mov dword [esi + 0x150], edi
jmp 0x10039b4c
cmp dword [0x1011d0f8], 0
je 0x10039b42
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x10039b10
push eax
call dword [0x1011d148]
add esp, 4
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x10039b4c
push eax
call dword [0x1011d150]
jmp 0x10039b49
push edi
call dword [0x1011d11c]
add esp, 4
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov edi, dword [esp + 0x18]
test ebx, ebx
push ebx
mov eax, 0x101084e8
cmove eax, ecx
push eax
push edi
push esi
call fcn.10008af0
add esp, 0x10
test ebx, ebx
je 0x10039c1b
cmp dword [esi + 0x210], 0
je 0x10039b8b
mov edx, ebx
mov ecx, esi
call fcn.10004c70
jmp 0x10039c1b
cmp ebx, dword [esi + 0x164]
jae 0x10039bc3
cmp ebx, dword [esi + 0x15c]
jb 0x10039bab
mov eax, dword [esi + 0x158]
mov dword [ebx], eax
mov dword [esi + 0x158], ebx
jmp 0x10039c1b
cmp ebx, dword [esi + 0x160]
jb 0x10039bc3
mov eax, dword [esi + 0x150]
mov dword [ebx], eax
mov dword [esi + 0x150], ebx
jmp 0x10039c1b
cmp dword [0x1011d0f8], 0
je 0x10039c11
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x10039bdf
push eax
call dword [0x1011d148]
add esp, 4
push ebx
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push ebx
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x10039c1b
push eax
call dword [0x1011d150]
jmp 0x10039c18
push ebx
call dword [0x1011d11c]
add esp, 4
lea ecx, [esp + 0x48]
call fcn.100718a0
cmp byte [esi + 0x53], 0
jne 0x10039c32
test edi, edi
jne 0x10039c32
xor esi, esi
jmp 0x10039c3d
mov edx, edi
mov ecx, esi
call fcn.10005460
mov esi, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10039c52
push eax
call dword [0x1011d150]
add esp, 4
mov ecx, dword [esp + 0x15c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret