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

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
mov edi, dword [ebx]
push edi
mov dword [esp + 0x18], edi
call fcn.005067f0
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebx + 0xc], eax
je 0x51d72f
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x28]
mov dword [ebx + 0x48], 2
push eax
push ecx
push edx
push ebx
call fcn.00515900
mov ebp, eax
add esp, 0x10
test ebp, ebp
jl 0x51d72f
mov ecx, dword [edi + 8]
lea eax, [ebp + ebp*2]
cmp ebp, 1
lea edx, [ecx + eax*8]
mov dword [esp + 0x10], edx
jne 0x51bf34
push ebx
call fcn.005082a0
add esp, 4
test eax, eax
jne 0x51d72f
mov eax, dword [esp + 0x28]
push eax
push edi
call fcn.005158a0
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x51d72f
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x51bf6b
mov ecx, dword [esp + 0x48]
push ecx
push 0x5efadc
push edi
call fcn.004fa820
add esp, 0xc
jmp 0x51bf79
mov edx, dword [esp + 0x48]
push edx
push edi
call fcn.005158a0
add esp, 8
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
test dword [eax + 4], 0xfffffffe
jbe 0x51bf96
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x4c], edx
jmp 0x51bf9e
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
push 0x13
push ebx
call fcn.00515430
add esp, 0x14
test eax, eax
jne 0x51d716
mov eax, dword [esp + 0x40]
push str.default_cache_size
push eax
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c0d5
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
push ebp
push esi
call fcn.00506a50
mov eax, dword [esp + 0x50]
add esp, 8
test eax, eax
jne 0x51c04d
push 1
push esi
call fcn.0050b420
push 0
push str.cache_size
push 0
push 0
push esi
call fcn.0050b490
mov edx, dword [ebx + 0x48]
push 0x5bc880
add edx, 2
push 7
push esi
mov dword [ebx + 0x48], edx
call fcn.00506840
mov edi, eax
push ebp
push edi
push esi
call fcn.00506960
add edi, 5
push 0x7d0
push edi
push esi
call fcn.00506960
add esp, 0x40
jmp 0x51d6dc
push eax
call fcn.0056fbc8
mov edi, eax
add esp, 4
test edi, edi
jge 0x51c05e
neg edi
push ebp
push 0
push ebx
call fcn.00518af0
push 1
push edi
push 0x31
push esi
call fcn.005107e0
push 2
push 2
push ebp
push 0x70
push esi
call fcn.0050fb50
push 0
push 2
push 0x7f
push esi
call fcn.005107e0
add esp, 0x40
mov ecx, edi
neg ecx
push 1
push ecx
push 0x31
push esi
mov ebx, eax
call fcn.005107e0
push ebx
push esi
call fcn.00510ca0
push 1
push 2
push ebp
push 4
push esi
call fcn.0050fb50
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 0x14]
mov dword [edx + 0x4c], edi
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 4]
mov edx, dword [ecx + 0x4c]
push edx
push eax
call fcn.0050ac60
add esp, 0x34
jmp 0x51d6dc
mov ecx, dword [esp + 0x40]
push str.page_size
push ecx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c158
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
test eax, eax
mov ebp, dword [edx + 4]
jne 0x51c131
test ebp, ebp
je 0x51c11b
push ebp
call fcn.004f4b60
add esp, 4
push eax
push str.page_size
push ebx
call fcn.0051dbc0
add esp, 0xc
jmp 0x51d6dc
xor eax, eax
push eax
push str.page_size
push ebx
call fcn.0051dbc0
add esp, 0xc
jmp 0x51d6dc
push eax
call fcn.0056fbc8
push 0xffffffffffffffff
push eax
push ebp
mov dword [edi + 0x24], eax
call fcn.0050c1c0
add esp, 0x10
cmp eax, 7
jne 0x51d6dc
mov byte [edi + 0x1e], 1
jmp 0x51d6dc
mov eax, dword [esp + 0x40]
push str.max_page_count
push eax
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c1a8
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 4]
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x51c186
push ecx
call fcn.0056fbc8
add esp, 4
test edi, edi
je 0x51c194
push eax
push edi
call fcn.0051d850
add esp, 8
push eax
push str.max_page_count
push ebx
call fcn.0051dbc0
add esp, 0xc
jmp 0x51d6dc
mov edx, dword [esp + 0x40]
push str.page_count
push edx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c215
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
push ebp
push ebx
call fcn.00518b50
mov edx, dword [ebx + 0x48]
inc edx
mov dword [ebx + 0x48], edx
mov ebx, edx
push ebx
push ebp
push 0x11
push esi
call fcn.005107e0
push 1
push ebx
push 0x5b
push esi
call fcn.005107e0
push 1
push esi
call fcn.0050b420
push 0
push str.page_count
push 0
push 0
push esi
call fcn.0050b490
add esp, 0x44
jmp 0x51d6dc
mov eax, dword [esp + 0x40]
push str.locking_mode
push eax
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c30a
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x4c], str.normal
push ecx
call fcn.0051da10
mov edx, dword [esp + 0x48]
mov ebx, eax
add esp, 4
mov dword [esp + 0x3c], ebx
mov eax, dword [edx + 4]
and eax, 0xfffffffe
jne 0x51c262
cmp ebx, 0xffffffff
jne 0x51c262
xor eax, eax
mov al, byte [edi + 0x1f]
jmp 0x51c2bb
test eax, eax
jne 0x51c2a4
mov eax, dword [edi + 4]
mov ebp, 2
cmp eax, ebp
jle 0x51c2a1
mov ebx, 0x30
mov eax, dword [edi + 8]
mov ecx, dword [eax + ebx + 4]
push ecx
call fcn.004f1640
mov edx, dword [esp + 0x40]
push edx
push eax
call fcn.005073a0
mov eax, dword [edi + 4]
add esp, 0xc
inc ebp
add ebx, 0x18
cmp ebp, eax
jl 0x51c277
mov ebx, dword [esp + 0x3c]
mov byte [edi + 0x1f], bl
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
push ecx
call fcn.004f1640
push ebx
push eax
call fcn.005073a0
add esp, 0xc
cmp eax, 1
jne 0x51c2c8
mov dword [esp + 0x4c], str.exclusive
push 1
push esi
call fcn.0050b420
push 0
push str.locking_mode
push 0
push 0
push esi
call fcn.0050b490
mov edx, dword [esp + 0x68]
push 0
push edx
push 0
push 1
push 0
push 0x5d
push esi
call fcn.0050fb10
push 1
push 1
push 0x5b
push esi
call fcn.005107e0
add esp, 0x48
jmp 0x51d6dc
mov eax, dword [esp + 0x40]
push str.journal_mode
push eax
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c414
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x51c331
or ebx, 0xffffffff
jmp 0x51c372
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004ef7c0
add esp, 4
mov dword [esp + 0x3c], eax
mov ebx, 4
mov ebp, 0x5bc8ac
mov edx, dword [esp + 0x3c]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
call fcn.00507750
add esp, 0xc
test eax, eax
je 0x51c372
sub ebp, 4
dec ebx
cmp ebp, 0x5bc89c
jge 0x51c34c
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
and eax, 0xfffffffe
jne 0x51c38a
cmp ebx, 0xffffffff
jne 0x51c38a
xor eax, eax
mov al, byte [edi + 0x20]
jmp 0x51c3eb
test eax, eax
jne 0x51c3d4
mov ecx, dword [edi + 4]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x3c], eax
jle 0x51c3d1
mov ebp, 0x18
mov ecx, dword [edi + 8]
mov eax, dword [ecx + ebp + 4]
test eax, eax
je 0x51c3be
push eax
call fcn.004f1640
push ebx
push eax
call fcn.005073c0
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
inc eax
add ebp, 0x18
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x51c3a3
mov byte [edi + 0x20], bl
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.004f1640
push ebx
push eax
call fcn.005073c0
add esp, 0xc
push 1
push esi
mov edi, eax
call fcn.0050b420
push 0
push str.journal_mode
push 0
push 0
push esi
call fcn.0050b490
mov ecx, dword [edi*4 + 0x5bc89c]
push 0xfffffffffffffffe
jmp 0x51c74b
mov edx, dword [esp + 0x40]
push str.journal_size_limit
push edx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c47e
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
push ecx
call fcn.004f1640
mov ecx, dword [esp + 0x4c]
add esp, 4
or edx, 0xffffffff
mov edi, eax
test ecx, ecx
mov eax, 0xfffffffe
je 0x51c45e
push ecx
call fcn.0056fbc8
add esp, 4
cmp eax, 0xffffffff
jge 0x51c45d
or eax, 0xffffffff
cdq
push edx
push eax
push edi
call fcn.0051d780
push eax
push str.journal_size_limit
push ebx
mov dword [esp + 0x4c], edx
call fcn.0051dbc0
add esp, 0x18
jmp 0x51d6dc
mov edx, dword [esp + 0x40]
push str.auto_vacuum
push edx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c590
mov eax, dword [esp + 0x10]
push ebx
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x51c4f9
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x51c4e3
mov edx, eax
push edx
call fcn.0050c2f0
add esp, 4
push eax
push str.auto_vacuum
push ebx
call fcn.0051dbc0
add esp, 0xc
jmp 0x51d6dc
xor eax, eax
push eax
push str.auto_vacuum
push ebx
call fcn.0051dbc0
add esp, 0xc
jmp 0x51d6dc
mov eax, dword [esp + 0x48]
push eax
call fcn.0051da50
mov ebx, eax
add esp, 4
test ebx, ebx
mov byte [edi + 0x21], bl
jl 0x51d6dc
mov ecx, dword [esp + 0x3c]
push ebx
push ecx
call fcn.0050c290
add esp, 8
test eax, eax
jne 0x51d6dc
cmp ebx, 1
je 0x51c537
cmp ebx, 2
jne 0x51d6dc
push 0x5bc8b0
push 6
push esi
call fcn.00506840
mov edi, eax
push ebp
push edi
push esi
call fcn.00506960
lea edx, [edi + 1]
push ebp
push edx
push esi
call fcn.00506960
lea eax, [edi + 4]
push eax
lea eax, [edi + 2]
push eax
push esi
call fcn.00506990
dec ebx
lea eax, [edi + 4]
push ebx
push eax
push esi
call fcn.00506960
add edi, 5
push ebp
push edi
push esi
call fcn.00506960
add esp, 0x48
push ebp
push esi
call fcn.00506a50
add esp, 8
jmp 0x51d6dc
mov ecx, dword [esp + 0x40]
push str.incremental_vacuum
push ecx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c63b
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
mov eax, dword [esp + 0x48]
test eax, eax
je 0x51c5dd
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.00512b70
add esp, 8
test eax, eax
je 0x51c5dd
mov eax, dword [esp + 0x3c]
test eax, eax
jg 0x51c5e5
mov dword [esp + 0x3c], closesocket
push ebp
push 0
push ebx
call fcn.00518af0
mov eax, dword [esp + 0x48]
push 1
push eax
push 0x31
push esi
call fcn.005107e0
push ebp
push 0x39
push esi
call fcn.00510bf0
push 1
push 0x5b
push esi
mov edi, eax
call fcn.00510bf0
push 0xffffffffffffffff
push 1
push 0x2b
push esi
call fcn.005107e0
add esp, 0x44
push edi
push 1
push 0x7f
push esi
call fcn.005107e0
push edi
push esi
call fcn.00510ca0
add esp, 0x18
jmp 0x51d6dc
mov ecx, dword [esp + 0x40]
push str.cache_size
push ecx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c6b9
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x51c688
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
push str.cache_size
push ebx
call fcn.0051dbc0
add esp, 0xc
jmp 0x51d6dc
push eax
call fcn.0056fbc8
add esp, 4
test eax, eax
jge 0x51c697
neg eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x14]
mov dword [edx + 0x4c], eax
mov eax, dword [ecx + 0x14]
mov edx, dword [eax + 0x4c]
mov eax, dword [ecx + 4]
push edx
push eax
call fcn.0050ac60
add esp, 8
jmp 0x51d6dc
mov ecx, dword [esp + 0x40]
push str.temp_store
push ecx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c6ff
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x51c6f0
xor edx, edx
mov dl, byte [edi + 0x1d]
push edx
push str.temp_store
push ebx
call fcn.0051dbc0
add esp, 0xc
jmp 0x51d6dc
push eax
push ebx
call fcn.0051db30
add esp, 8
jmp 0x51d6dc
mov eax, dword [esp + 0x40]
push str.temp_store_directory
push eax
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c7ef
mov ebp, dword [esp + 0x48]
test ebp, ebp
jne 0x51c76e
mov eax, dword [0x6225a0]
test eax, eax
je 0x51d6dc
push 1
push esi
call fcn.0050b420
push ebp
push str.temp_store_directory
push ebp
push ebp
push esi
call fcn.0050b490
mov ecx, dword [0x6225a0]
push ebp
push ecx
push 0
push 1
push 0
push 0x5d
push esi
call fcn.0050fb10
push 1
push 1
push 0x5b
push esi
call fcn.005107e0
add esp, 0x48
jmp 0x51d6dc
cmp byte [ebp], 0
je 0x51c7a6
mov eax, dword [edi]
lea edx, [esp + 0x3c]
push edx
push 1
push ebp
push eax
call fcn.004f2750
add esp, 0x10
test eax, eax
jne 0x51c793
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x51c7a6
push str.not_a_writable_directory
push ebx
call fcn.00506650
add esp, 8
jmp 0x51d716
cmp byte [edi + 0x1d], 1
ja 0x51c7b5
push ebx
call fcn.0051dac0
add esp, 4
mov ecx, dword [0x6225a0]
push ecx
call fcn.004ee300
mov al, byte [ebp]
add esp, 4
test al, al
je 0x51c7e0
push ebp
push 0
call fcn.004fb710
add esp, 8
mov dword [0x6225a0], eax
jmp 0x51d6dc
mov dword [0x6225a0], 0
jmp 0x51d6dc
mov edx, dword [esp + 0x40]
push str.synchronous
push edx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51c86b
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x51c83a
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 9]
dec eax
push eax
push str.synchronous
push ebx
call fcn.0051dbc0
add esp, 0xc
jmp 0x51d6dc
mov cl, byte [edi + 0x1c]
test cl, cl
jne 0x51c854
push str.Safety_level_may_not_be_changed_inside_a_transaction
push ebx
call fcn.00506650
add esp, 8
jmp 0x51d6dc
push eax
call fcn.0051d980
mov edx, dword [esp + 0x14]
add esp, 4
inc al
mov byte [edx + 9], al
jmp 0x51d6dc
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push ebx
call fcn.0051dc20
add esp, 0xc
test eax, eax
jne 0x51d6dc
mov edx, dword [esp + 0x40]
push str.table_info
push edx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51ca37
mov eax, dword [esp + 0x48]
test eax, eax
je 0x51ca37
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
push edi
call fcn.00507570
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x51d6dc
xor edi, edi
push 6
push esi
mov dword [esp + 0x44], edi
call fcn.0050b420
push edi
push 0x5ef998
push edi
push edi
push esi
mov dword [ebx + 0x48], 6
call fcn.0050b490
push edi
push str.name
push edi
push 1
push esi
call fcn.0050b490
push edi
push str.type
push edi
push 2
push esi
call fcn.0050b490
add esp, 0x44
push edi
push str.notnull
push edi
push 3
push esi
call fcn.0050b490
push edi
push str.dflt_value
push edi
push 4
push esi
call fcn.0050b490
push edi
push 0x5ef970
push edi
push 5
push esi
call fcn.0050b490
push ebp
push ebx
call fcn.00516ef0
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add esp, 0x44
test eax, eax
jle 0x51d6dc
mov al, byte [ebx + 0x13]
test al, al
je 0x51c973
inc dword [esp + 0x3c]
jmp 0x51ca23
mov eax, dword [esp + 0x3c]
mov edx, edi
sub edx, eax
push 1
push edx
push 0x31
push esi
call fcn.005107e0
mov eax, dword [ebx]
push 0
push eax
push 0
push 2
push 0
push 0x5d
push esi
call fcn.0050fb10
mov eax, dword [ebx + 8]
add esp, 0x2c
test eax, eax
jne 0x51c9a8
mov eax, 0x6225a4
push 0
push eax
push 0
push 3
push 0
push 0x5d
push esi
call fcn.0050fb10
mov al, byte [ebx + 0x10]
xor ecx, ecx
test al, al
setne cl
push 4
push ecx
push 0x31
push esi
call fcn.005107e0
mov eax, dword [ebx + 4]
add esp, 0x2c
test eax, eax
je 0x51c9f5
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
shr edx, 1
push edx
push eax
push 0
push 5
push 0
push 0x5d
push esi
call fcn.0050fb10
add esp, 0x1c
jmp 0x51ca04
push 5
push 0
push 0x75
push esi
call fcn.005107e0
add esp, 0x10
xor ecx, ecx
push 6
mov cl, byte [ebx + 0x11]
push ecx
push 0x31
push esi
call fcn.005107e0
push 6
push 1
push 0x5b
push esi
call fcn.005107e0
add esp, 0x20
mov eax, dword [ebp + 0xc]
inc edi
add ebx, 0x14
cmp edi, eax
jl 0x51c963
jmp 0x51d6dc
mov edx, dword [esp + 0x40]
push str.index_info
push edx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51cb3f
mov eax, dword [esp + 0x48]
test eax, eax
je 0x51cb3f
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.00507840
mov edi, eax
add esp, 0xc
test edi, edi
je 0x51d6dc
mov eax, dword [edi + 0x10]
push 3
push esi
mov dword [esp + 0x44], eax
call fcn.0050b420
push 0
push str.seqno
push 0
push 0
push esi
mov dword [ebx + 0x48], 3
call fcn.0050b490
push 0
push 0x5ef998
push 0
push 1
push esi
call fcn.0050b490
push 0
push str.name
push 0
push 2
push esi
call fcn.0050b490
mov eax, dword [edi + 4]
add esp, 0x44
xor ebx, ebx
test eax, eax
jle 0x51d6dc
mov ecx, dword [edi + 8]
push 1
push ebx
push 0x31
mov ebp, dword [ecx + ebx*4]
push esi
call fcn.005107e0
push 2
push ebp
push 0x31
push esi
call fcn.005107e0
mov eax, dword [esp + 0x5c]
lea edx, [ebp + ebp*4]
push 0
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + edx*4]
push edx
push 0
push 3
push 0
push 0x5d
push esi
call fcn.0050fb10
push 3
push 1
push 0x5b
push esi
call fcn.005107e0
mov eax, dword [edi + 4]
add esp, 0x4c
inc ebx
cmp ebx, eax
jl 0x51cae8
jmp 0x51d6dc
mov eax, dword [esp + 0x40]
push str.index_list
push eax
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51cc39
mov eax, dword [esp + 0x48]
test eax, eax
je 0x51cc39
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
push edi
call fcn.00507570
mov edi, eax
add esp, 0xc
test edi, edi
je 0x51d6dc
push ebx
call fcn.0051e480
mov ebp, dword [edi + 0x14]
add esp, 4
test ebp, ebp
mov esi, eax
je 0x51d6dc
push 3
push esi
xor edi, edi
call fcn.0050b420
push edi
push 0x5ef94c
push edi
push edi
push esi
mov dword [ebx + 0x48], 3
call fcn.0050b490
push edi
push str.name
push edi
push 1
push esi
call fcn.0050b490
push edi
push str.unique
push edi
push 2
push esi
call fcn.0050b490
add esp, 0x44
push 1
push edi
push 0x31
push esi
call fcn.005107e0
mov eax, dword [ebp]
push 0
push eax
push 0
push 2
push 0
push 0x5d
push esi
call fcn.0050fb10
mov bl, byte [ebp + 0x18]
xor ecx, ecx
test bl, bl
setne cl
push 3
push ecx
push 0x31
push esi
call fcn.005107e0
push 3
push 1
push 0x5b
push esi
call fcn.005107e0
mov ebp, dword [ebp + 0x20]
add esp, 0x4c
inc edi
test ebp, ebp
jne 0x51cbe9
jmp 0x51d6dc
mov edx, dword [esp + 0x40]
push str.database_list
push edx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51cd28
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
push 3
push esi
call fcn.0050b420
push 0
push 0x5ef94c
push 0
push 0
push esi
mov dword [ebx + 0x48], 3
call fcn.0050b490
push 0
push str.name
push 0
push 1
push esi
call fcn.0050b490
push 0
push str.file
push 0
push 2
push esi
call fcn.0050b490
mov eax, dword [edi + 4]
add esp, 0x44
xor ebp, ebp
test eax, eax
jle 0x51d6dc
xor ebx, ebx
mov eax, dword [edi + 8]
mov ecx, dword [ebx + eax + 4]
test ecx, ecx
je 0x51cd18
push 1
push ebp
push 0x31
push esi
call fcn.005107e0
mov ecx, dword [edi + 8]
push 0
mov edx, dword [ebx + ecx]
push edx
push 0
push 2
push 0
push 0x5d
push esi
call fcn.0050fb10
mov eax, dword [edi + 8]
add esp, 0x2c
mov ecx, dword [ebx + eax + 4]
push 0
push ecx
call fcn.004fa880
add esp, 4
push eax
push 0
push 3
push 0
push 0x5d
push esi
call fcn.0050fb10
push 3
push 1
push 0x5b
push esi
call fcn.005107e0
add esp, 0x2c
mov eax, dword [edi + 4]
inc ebp
add ebx, 0x18
cmp ebp, eax
jl 0x51ccb8
jmp 0x51d6dc
mov edx, dword [esp + 0x40]
push str.collation_list
push edx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51cdbb
push 2
push esi
xor ebp, ebp
call fcn.0050b420
push ebp
push 0x5ef94c
push ebp
push ebp
push esi
mov dword [ebx + 0x48], 2
call fcn.0050b490
push ebp
push str.name
push ebp
push 1
push esi
call fcn.0050b490
mov ebx, dword [edi + 0x18c]
add esp, 0x30
test ebx, ebx
je 0x51d6dc
mov edi, dword [ebx + 8]
mov eax, ebp
push 1
push eax
push 0x31
push esi
inc ebp
call fcn.005107e0
mov eax, dword [edi]
push 0
push eax
push 0
push 2
push 0
push 0x5d
push esi
call fcn.0050fb10
push 2
push 1
push 0x5b
push esi
call fcn.005107e0
mov ebx, dword [ebx]
add esp, 0x3c
test ebx, ebx
jne 0x51cd7d
jmp 0x51d6dc
mov ecx, dword [esp + 0x40]
push str.foreign_key_list
push ecx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51cfea
mov eax, dword [esp + 0x48]
test eax, eax
je 0x51cfea
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
push edi
call fcn.00507570
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x44], edi
je 0x51d6dc
push ebx
call fcn.0051e480
mov ebp, dword [edi + 0x28]
add esp, 4
test ebp, ebp
mov esi, eax
je 0x51d6dc
push 8
push esi
mov dword [esp + 0x44], 0
call fcn.0050b420
push 0
push 0x5ef904
push 0
push 0
push esi
mov dword [ebx + 0x48], 8
call fcn.0050b490
push 0
push 0x5ef94c
push 0
push 1
push esi
call fcn.0050b490
push 0
push str.table
push 0
push 2
push esi
call fcn.0050b490
add esp, 0x44
push 0
push str.from
push 0
push 3
push esi
call fcn.0050b490
push 0
push 0x5ef900
push 0
push 4
push esi
call fcn.0050b490
push 0
push str.on_update
push 0
push 5
push esi
call fcn.0050b490
push 0
push str.on_delete
push 0
push 6
push esi
call fcn.0050b490
add esp, 0x50
push 0
push str.match
push 0
push 7
push esi
call fcn.0050b490
add esp, 0x14
mov eax, dword [ebp + 0x10]
xor ebx, ebx
test eax, eax
jle 0x51cfd1
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp + 0x19]
push edx
mov edi, dword [ecx + ebx*8 + 4]
call fcn.0051dcd0
mov dword [esp + 0x50], eax
mov al, byte [ebp + 0x1a]
push eax
call fcn.0051dcd0
mov ecx, dword [esp + 0x44]
push 1
push ecx
push 0x31
push esi
mov dword [esp + 0x3c], eax
call fcn.005107e0
push 2
push ebx
push 0x31
push esi
call fcn.005107e0
mov edx, dword [ebp + 8]
push 0
push edx
push 0
push 3
push 0
push 0x5d
push esi
call fcn.0050fb10
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x88]
add esp, 0x44
mov eax, dword [eax + ebx*8]
push 0
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ecx*4]
push ecx
push 0
push 4
push 0
push 0x5d
push esi
call fcn.0050fb10
push 0
push edi
neg edi
sbb edi, edi
push 0
and edi, 0xffffffe8
push 5
add edi, 0x75
push 0
push edi
push esi
call fcn.0050fb10
mov edx, dword [esp + 0x84]
push 0
push edx
push 0
push 6
push 0
push 0x5d
push esi
call fcn.0050fb10
mov eax, dword [esp + 0x78]
add esp, 0x54
push 0
push eax
push 0
push 7
push 0
push 0x5d
push esi
call fcn.0050fb10
push 0
push str.NONE
push 0
push 8
push 0
push 0x5d
push esi
call fcn.0050fb10
push 8
push 1
push 0x5b
push esi
call fcn.005107e0
mov eax, dword [ebp + 0x10]
add esp, 0x48
inc ebx
cmp ebx, eax
jl 0x51cede
mov ecx, dword [esp + 0x3c]
mov ebp, dword [ebp + 4]
inc ecx
test ebp, ebp
mov dword [esp + 0x3c], ecx
jne 0x51ced1
jmp 0x51d6dc
mov ecx, dword [esp + 0x40]
push str.case_sensitive_like
push ecx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51d026
mov eax, dword [esp + 0x48]
test eax, eax
je 0x51d6dc
push eax
call fcn.0051d9f0
and eax, 0xff
push eax
push edi
call fcn.0051d8b0
add esp, 0xc
jmp 0x51d6dc
mov edx, dword [esp + 0x40]
push str.integrity_check
push edx
call fcn.004ef7e0
add esp, 8
test eax, eax
je 0x51d270
mov eax, dword [esp + 0x40]
push str.quick_check
push eax
call fcn.004ef7e0
add esp, 8
test eax, eax
je 0x51d270
mov ecx, dword [esp + 0x40]
push str.encoding
push ecx
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51d164
mov ebp, dword [esp + 0x48]
test ebp, ebp
jne 0x51d0e1
push ebx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
push 1
push esi
call fcn.0050b420
push ebp
push str.encoding
push ebp
push ebp
push esi
call fcn.0050b490
push 1
push ebp
push 0x5d
push esi
call fcn.005107e0
mov edx, dword [ebx]
push 0xfffffffffffffffe
mov eax, dword [edx + 8]
xor edx, edx
mov ecx, dword [eax + 0x14]
mov dl, byte [ecx + 0x49]
mov eax, dword [edx*8 + 0x5bc930]
push eax
push 0xffffffffffffffff
push esi
call fcn.0050fbc0
push 1
push 1
push 0x5b
push esi
call fcn.005107e0
add esp, 0x4c
jmp 0x51d6dc
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x14]
mov ax, word [edx + 0x4a]
mov cl, al
and cl, 1
cmp cl, 1
jne 0x51d0ff
and al, 4
cmp al, 4
jne 0x51d6dc
mov eax, dword [str.UTF8]
mov edi, 0x5bc930
test eax, eax
je 0x51d147
mov edx, dword [edi]
push edx
push ebp
call fcn.004ef7e0
add esp, 8
test eax, eax
je 0x51d129
mov eax, dword [edi + 8]
add edi, 8
test eax, eax
jne 0x51d10d
jmp 0x51d147
mov al, byte [edi + 4]
test al, al
je 0x51d137
and eax, 0xff
jmp 0x51d13c
mov eax, 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0x14]
mov byte [ecx + 0x49], al
cmp dword [edi], 0
jne 0x51d6dc
push ebp
push str.unsupported_encoding:__s
push ebx
call fcn.00506650
add esp, 0xc
jmp 0x51d6dc
mov edi, dword [esp + 0x40]
push str.schema_version
push edi
call fcn.004ef7e0
add esp, 8
test eax, eax
je 0x51d1a2
push str.user_version
push edi
call fcn.004ef7e0
add esp, 8
test eax, eax
je 0x51d1a2
push str.freelist_count
push edi
call fcn.004ef7e0
add esp, 8
test eax, eax
jne 0x51d6dc
push ebp
push esi
call fcn.00506a50
movsx eax, byte [edi]
add eax, 0xffffffba
add esp, 8
cmp eax, 0x2d
ja case.0x51d1bf.72
xor edx, edx
mov dl, byte [eax + 0x51d744]
jmp dword [edx*4 + 0x51d738]
xor ebx, ebx
jmp 0x51d1dd
or eax, 0xffffffff
mov ebx, 1
sub eax, ebp
mov ebp, eax
jmp 0x51d1dd
mov ebx, 5
mov eax, dword [esp + 0x48]
test eax, eax
je 0x51d230
test ebp, ebp
jl 0x51d230
push 0x5bc978
push 3
push esi
call fcn.00506840
mov edi, eax
push ebp
push edi
push esi
call fcn.00506960
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0056fbc8
lea edx, [edi + 1]
push eax
push edx
push esi
call fcn.00506960
add edi, 2
push ebp
push edi
push esi
call fcn.00506960
push ebx
push edi
push esi
call fcn.00506990
add esp, 0x40
jmp 0x51d6dc
push 0x5bc984
push 2
push esi
call fcn.00506840
mov edi, eax
push ebp
push edi
push esi
call fcn.00506960
push ebx
push edi
push esi
call fcn.005069c0
push 1
push esi
call fcn.0050b420
mov eax, dword [esp + 0x6c]
push 0xffffffffffffffff
push eax
push 0
push 0
push esi
call fcn.0050b490
add esp, 0x40
jmp 0x51d6dc
mov edx, dword [esp + 0x40]
xor ecx, ecx
push ebx
cmp byte [edx], 0x71
sete cl
mov dword [esp + 0x30], ecx
call fcn.0050ade0
add esp, 4
test eax, eax
jne 0x51d716
push 1
push esi
mov dword [ebx + 0x48], 6
call fcn.0050b420
push 0
push str.integrity_check
push 0
push 0
push esi
call fcn.0050b490
mov eax, dword [esp + 0x64]
add esp, 0x1c
mov ebp, 0x64
test eax, eax
mov dword [esp + 0x24], ebp
je 0x51d2e1
push eax
call fcn.0056fbc8
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], ebp
jg 0x51d2e1
mov ebp, 0x64
mov dword [esp + 0x24], ebp
push 1
push ebp
push 0x31
push esi
call fcn.005107e0
mov eax, dword [edi + 4]
add esp, 0x10
test eax, eax
mov dword [esp + 0x18], 0
jle 0x51d6a5
mov dword [esp + 0x1c], 0
jmp 0x51d310
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
xor ebp, ebp
push eax
push ebx
call fcn.00518b50
push 1
push 0x7f
push esi
call fcn.00510bf0
push ebp
push ebp
push 0x28
push esi
mov edi, eax
call fcn.005107e0
push edi
push esi
call fcn.00510ca0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add esp, 0x2c
mov edx, dword [ecx + 8]
mov eax, dword [eax + edx + 0x14]
add eax, 4
mov dword [esp + 0x4c], eax
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x44], eax
je 0x51d67e
mov edi, eax
mov ebx, dword [edi + 8]
lea ecx, [ebp + 2]
push ecx
mov edx, dword [ebx + 0x18]
push edx
push 0x31
push esi
call fcn.005107e0
mov ebx, dword [ebx + 0x14]
add esp, 0x10
inc ebp
test ebx, ebx
je 0x51d3a2
lea edi, [ebp + 2]
mov eax, dword [ebx + 0x14]
push edi
push eax
push 0x31
push esi
call fcn.005107e0
mov ebx, dword [ebx + 0x20]
add esp, 0x10
inc ebp
inc edi
test ebx, ebx
jne 0x51d385
mov edi, dword [esp + 0x44]
mov edi, dword [edi]
test edi, edi
mov dword [esp + 0x44], edi
jne 0x51d364
test ebp, ebp
je 0x51d67e
mov ecx, dword [esp + 0x3c]
lea eax, [ebp + 4]
cmp dword [ecx + 0x48], eax
jge 0x51d3c3
mov dword [ecx + 0x48], eax
push 1
push ebp
push 2
push 0x12
push esi
call fcn.0050fb50
mov ecx, dword [esp + 0x2c]
push ecx
push esi
call fcn.00510800
push 2
push 0x46
push esi
call fcn.00510bf0
mov ecx, dword [esp + 0x44]
mov edi, eax
mov eax, dword [esp + 0x3c]
add esp, 0x28
mov edx, dword [eax + 8]
push 0xffffffffffffffff
mov edx, dword [ecx + edx]
push edx
push str._in_database__s__n
push eax
call fcn.004fa820
add esp, 0xc
push eax
push 0
push 3
push 0
push 0x5d
push esi
call fcn.0050fb10
push 1
push 4
push 2
push 0x76
push esi
call fcn.0050fb50
push 2
push 3
push 4
push 0x58
push esi
call fcn.0050fb50
add esp, 0x44
push 1
push 2
push 0x5b
push esi
call fcn.005107e0
push edi
push esi
call fcn.00510ca0
mov eax, dword [esp + 0x64]
add esp, 0x18
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x44], eax
je 0x51d67e
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x51d67e
mov ebx, dword [eax + 8]
mov dword [esp + 0x30], ebx
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x51d66c
push 1
push 0x7f
push esi
call fcn.00510bf0
push 0
push 0
push 0x28
push esi
mov edi, eax
call fcn.005107e0
push edi
push esi
call fcn.00510ca0
mov ecx, dword [esp + 0x60]
push 0xe
push 1
push ebx
push ecx
call fcn.0051b7b0
push 2
push 0
push 0x31
push esi
call fcn.005107e0
add esp, 0x44
push 0
push 1
push 0x78
push esi
call fcn.005107e0
push 1
push 2
mov ebp, eax
push 0x2b
push esi
mov dword [esp + 0x40], ebp
call fcn.005107e0
mov edi, dword [ebx + 0x14]
add esp, 0x20
test edi, edi
je 0x51d580
mov ebx, 2
mov edx, dword [esp + 0x3c]
push 1
push 3
push 1
push edi
push edx
call fcn.00519d00
push 3
push 0
push ebx
push 0x7e
push esi
call fcn.0050fb50
push 0x5bc8d8
push 0xb
push esi
mov dword [esp + 0x80], eax
call fcn.00506840
mov ebp, eax
push 0xfffffffffffffffe
push 0x5ef830
lea eax, [ebp + 1]
push eax
push esi
call fcn.0050fbc0
add esp, 0x44
lea ecx, [ebp + 3]
push 0xfffffffffffffffe
push str._missing_from_index
push ecx
push esi
call fcn.0050fbc0
mov edx, dword [edi]
push 0xfffffffffffffffe
lea eax, [ebp + 4]
push edx
push eax
push esi
call fcn.0050fbc0
add ebp, 9
push ebp
push esi
call fcn.00510ca0
mov ecx, dword [esp + 0x74]
push ecx
push esi
call fcn.00510ca0
mov edi, dword [edi + 0x20]
add esp, 0x30
inc ebx
test edi, edi
jne 0x51d4ec
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x30]
lea edx, [ebp + 1]
push edx
push 1
push 0x6b
push esi
call fcn.005107e0
push ebp
push esi
call fcn.00510ca0
mov eax, dword [ebx + 0x14]
add esp, 0x18
test eax, eax
mov dword [esp + 0x20], eax
je 0x51d66c
mov dword [esp + 0x4c], 2
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x51d654
push 1
push 0x7f
push esi
call fcn.00510bf0
push 0
push 0
push 0x28
push esi
mov edi, eax
call fcn.005107e0
push edi
push esi
call fcn.00510ca0
push 0x5bc904
push 0xa
push esi
call fcn.00506840
mov edi, eax
mov eax, dword [esp + 0x7c]
push eax
lea ebp, [edi + 1]
push ebp
push esi
call fcn.00506960
lea ebx, [edi + 4]
push ebx
push ebp
push esi
call fcn.00506990
mov ecx, dword [esp + 0x94]
add esp, 0x48
lea ebp, [edi + 3]
push ecx
push ebp
push esi
call fcn.00506960
lea edx, [edi + 2]
push edx
push ebp
push esi
call fcn.00506990
push ebx
push esi
call fcn.00510ca0
push 0xfffffffffffffffe
lea eax, [edi + 6]
push str.wrong__of_entries_in_index
push eax
push esi
call fcn.0050fbc0
mov ecx, dword [esp + 0x50]
push 0xfffffffffffffffe
add edi, 7
mov edx, dword [ecx]
push edx
push edi
push esi
call fcn.0050fbc0
mov eax, dword [esp + 0x60]
add esp, 0x40
mov edx, dword [esp + 0x4c]
mov eax, dword [eax + 0x20]
inc edx
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x4c], edx
jne 0x51d5af
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x44], eax
jne 0x51d460
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
inc eax
mov edx, dword [ecx + 4]
add edi, 0x18
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
jl 0x51d30c
mov ebp, dword [esp + 0x24]
push 0x5bc8c8
push 4
push esi
call fcn.00506840
neg ebp
mov edi, eax
push ebp
push edi
push esi
call fcn.00506990
lea edx, [edi + 1]
push edx
push esi
call fcn.00510ca0
push 0xfffffffffffffffe
add edi, 2
push 0x5ef7f4
push edi
push esi
call fcn.0050fbc0
add esp, 0x30
push 0
push 1
push 0xf
push esi
call fcn.005107e0
mov edi, dword [esp + 0x24]
add esp, 0x10
mov al, byte [edi + 0x1c]
test al, al
je 0x51d716
mov eax, dword [edi + 0xc]
xor ecx, ecx
shr eax, 0x10
and eax, 1
push eax
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 9]
mov edx, dword [eax + 4]
push ecx
push edx
call fcn.0051d7d0
add esp, 0xc
mov eax, dword [esp + 0x40]
push eax
push edi
call fcn.004ee360
mov ecx, dword [esp + 0x50]
push ecx
push edi
call fcn.004ee360
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret