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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + 0x3c]
test esi, esi
je 0x1005a801
mov eax, dword [0x1024512c]
test eax, eax
jne 0x1005a7e0
push 0x6c13
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3GlobalConfig.mutex.xMutexHeld
call fcn.101aa953
mov eax, dword [0x1024512c]
add esp, 0xc
push esi
call eax
add esp, 4
test eax, eax
jne 0x1005a801
push 0x106e3
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.cursorHoldsMutex_p_
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x14]
mov eax, dword [eax]
cmp eax, dword [ecx + 4]
je 0x1005a825
push 0x11b96
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.cursorOwnsBtShared_pCur_
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x1005a877
mov eax, dword [0x1024512c]
test eax, eax
jne 0x1005a856
push 0x6c13
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.p0__sqlite3GlobalConfig.mutex.xMutexHeld
call fcn.101aa953
mov eax, dword [0x1024512c]
add esp, 0xc
push esi
call eax
add esp, 4
test eax, eax
jne 0x1005a877
push 0x11b97
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.sqlite3_mutex_held_pCur__pBtree__db__mutex_
call fcn.101aa953
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1005a895
push 0x11b98
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pRes
call fcn.101aa953
add esp, 0xc
cmp dword [ebx + 0x70], 0
jne 0x1005a8b2
push 0x11b99
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pCur__pKeyInfo_0
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebx + 8]
mov esi, dword [ebp - 0xc]
add dword [eax + 0x20], 1
adc dword [eax + 0x24], 0
mov eax, dword [esi]
cmp word [eax + 8], 0xd
ja 0x1005a982
mov eax, dword [eax + 0x10]
mov edx, dword [esi + 4]
mov al, byte [eax]
movzx ecx, word [edx + 0x10]
test al, al
je 0x1005a8eb
test al, 2
jne 0x1005a982
or al, 0xff
mov ah, 1
jmp 0x1005a8f0
mov al, 1
or ah, 0xff
mov byte [esi + 0x18], ah
mov byte [esi + 0x19], al
test cl, 4
je 0x1005a90f
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [ebp - 0x10], 0x100721c0
jmp 0x1005a989
mov eax, dword [0x102549bc]
test cl, 8
je 0x1005a923
add eax, 0x14e39
mov dword [0x102549bc], eax
test cl, 1
je 0x1005a932
add eax, 0x14e3a
mov dword [0x102549bc], eax
test cl, 0x10
je 0x1005a941
add eax, 0x14e3b
mov dword [0x102549bc], eax
test cl, 0x39
jne 0x1005a982
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
jne 0x1005a982
test cl, 2
jne 0x1005a96a
push 0x14e3f
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.flags__MEM_Str
call fcn.101aa953
add esp, 0xc
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], 0x10072510
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x10], eax
jmp 0x1005a989
mov dword [ebp - 0x10], 0x100721a0
mov al, byte [esi + 0x16]
mov byte [esi + 0x17], 0
cmp al, 1
je 0x1005a9b3
test al, al
je 0x1005a9b3
cmp al, 0xff
je 0x1005a9b3
push 0x11ba4
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pIdxKey__default_rc1__pIdxKey__default_rc0__pIdxKey__default_rc_1
call fcn.101aa953
add esp, 0xc
cmp byte [ebx], 0
jne 0x1005aaaf
mov eax, dword [ebx + 0x74]
cmp byte [eax + 8], 0
je 0x1005aaaf
mov al, byte [ebx + 0x44]
xor edx, edx
mov byte [ebp - 1], al
test al, al
jle 0x1005aa01
lea esi, [ebx + 0x48]
lea edi, [ebx + 0x78]
nop dword [eax + eax]
mov ecx, dword [edi]
mov ax, word [esi]
cmp ax, word [ecx + 0x18]
jb 0x1005aaa9
movsx eax, byte [ebp - 1]
inc edx
add edi, 4
add esi, 2
cmp edx, eax
jl 0x1005a9e0
mov esi, dword [ebp - 0xc]
mov eax, dword [ebx + 0x74]
movzx edx, word [ebx + 0x46]
mov edi, dword [ebp - 0x10]
movzx eax, word [eax + 0x18]
dec eax
cmp edx, eax
jne 0x1005aa38
push edi
push esi
mov ecx, ebx
call fcn.1005a700
add esp, 8
test eax, eax
jg 0x1005aa38
cmp byte [esi + 0x17], 0
jne 0x1005aa38
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x44], 0
jle 0x1005aaa3
push edi
push esi
xor edx, edx
mov ecx, ebx
call fcn.1005a700
add esp, 8
test eax, eax
jg 0x1005aaa3
cmp byte [esi + 0x17], 0
jne 0x1005aaa3
mov eax, dword [ebx + 0x74]
and byte [ebx + 1], 0xfb
cmp byte [eax], 0
jne 0x1005aaf9
cmp dword [0x102451bc], 0
je 0x1005aa79
add dword [0x102549bc], 0x2a8d5
push 0x101f8cf4
push 0x11bc4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10033a50
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x17], 0
jmp 0x1005aaac
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
call fcn.10059850
test eax, eax
je 0x1005aaf9
cmp eax, 0x10
jne 0x1005afaa
cmp dword [ebx + 0x40], 0
je 0x1005aaea
mov eax, dword [ebx + 0x74]
cmp word [eax + 0x18], 0
je 0x1005aaea
push 0x11bce
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pCur__pgnoRoot0__pCur__pPage__nCell0
call fcn.101aa953
add esp, 0xc
mov dword [edi], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x74], 0
jne 0x1005ab16
push 0x11bd6
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pCur__pPage
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebx + 0x74]
cmp byte [eax], 0
jne 0x1005ab35
push 0x11bd7
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pCur__pPage__isInit
call fcn.101aa953
add esp, 0xc
cmp byte [ebx], 0
je 0x1005ab51
push 0x11bd8
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pCur__eStateCURSOR_VALID
call fcn.101aa953
add esp, 0xc
mov eax, dword [ebx + 0x74]
cmp word [eax + 0x18], 0
ja 0x1005ab72
push 0x11bd9
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pCur__pPage__nCell___0
call fcn.101aa953
add esp, 0xc
cmp byte [ebx + 0x45], 0
je 0x1005ab90
push 0x11bda
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pCur__curIntKey0
call fcn.101aa953
add esp, 0xc
nop
mov edi, dword [ebx + 0x74]
cmp word [edi + 0x18], 0
ja 0x1005abb1
push 0x11be8
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pPage__nCell_0
call fcn.101aa953
add esp, 0xc
cmp byte [edi + 1], 0
je 0x1005abce
push 0x11be9
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pPage__intKey0
call fcn.101aa953
add esp, 0xc
movzx ebx, word [edi + 0x18]
dec ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], ebx
mov eax, dword [edi + 0x40]
sar ebx, 1
mov dword [ebp - 0x14], ebx
mov ax, word [eax + ebx*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, word [edi + 0x1a]
and eax, ecx
movzx ecx, byte [edi + 0xb]
add eax, dword [edi + 0x44]
movzx edx, byte [eax]
cmp edx, ecx
ja 0x1005ac26
lea ecx, [eax + 1]
add ecx, edx
cmp ecx, dword [edi + 0x3c]
jne 0x1005ac18
add dword [0x102549bc], 0x11bfe
push esi
inc eax
push eax
push edx
call dword [ebp - 0x10]
mov esi, eax
jmp 0x1005ad28
mov cl, byte [eax + 1]
test cl, cl
js 0x1005ac64
and edx, 0x7f
movzx ecx, cl
shl edx, 7
add edx, ecx
movzx ecx, word [edi + 0xe]
cmp edx, ecx
ja 0x1005ac64
lea ecx, [eax + 2]
add ecx, edx
cmp ecx, dword [edi + 0x3c]
jne 0x1005ac54
add dword [0x102549bc], 0x11c05
push esi
add eax, 2
push eax
push edx
call dword [ebp - 0x10]
mov esi, eax
jmp 0x1005ad28
mov ebx, dword [ebp - 8]
movzx ecx, byte [edi + 0xa]
sub eax, ecx
lea esi, [ebx + 0x20]
push esi
push eax
mov eax, dword [edi + 0x50]
push edi
call eax
mov esi, dword [esi]
add esp, 0xc
test esi, esi
js 0x1005af69
je 0x1005af4f
cmp esi, 1
je 0x1005af35
cmp esi, 2
jne 0x1005aca5
add dword [0x102549bc], 0x11c19
jmp 0x1005acab
jl 0x1005af73
mov ecx, dword [ebx + 0x14]
xor edx, edx
mov eax, esi
div dword [ecx + 0x28]
cmp eax, dword [ecx + 0x30]
ja 0x1005af73
lea eax, [esi + 0x12]
cdq
push edx
push eax
call fcn.100302f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1005aefa
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 0x14]
push 0
push ebx
push esi
mov word [ecx + 0x46], ax
call fcn.10058aa0
mov ecx, eax
xorps xmm0, xmm0
mov eax, dword [ebp - 8]
add esp, 0xc
movups xmmword [ebx + esi], xmm0
mov word [ebx + esi + 0x10], 0
mov dword [ebp - 0x20], ecx
and byte [eax + 1], 0xfb
test ecx, ecx
jne 0x1005aee6
push ecx
push dword [ebp - 0xc]
mov edx, ebx
mov ecx, esi
call fcn.100717a0
push ebx
mov esi, eax
call fcn.10030700
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov al, byte [ecx + 0x17]
cmp al, 0xb
jne 0x1005ad92
test esi, esi
jne 0x1005ada4
mov edx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebp - 8]
mov dword [edx], 0
mov word [eax + 0x46], bx
cmp byte [ecx + 0x17], 0
je 0x1005af83
cmp dword [0x102451bc], esi
je 0x1005ad67
add dword [0x102549bc], 0x2a8d5
push 0x101f8cf4
push 0x11c3b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10033a50
mov ebx, dword [ebp - 8]
add esp, 0x14
mov esi, 0xb
jmp 0x1005af85
cmp al, 7
jne 0x1005adbe
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
jne 0x1005adbe
push 0x11c31
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str._pIdxKey__errCode_SQLITE_CORRUPT__c0____pIdxKey__errCode_SQLITE_NOMEM__pCur__pBtree__db__mallocFailed_
call fcn.101aa953
mov ecx, dword [ebp - 0xc]
add esp, 0xc
test esi, esi
jns 0x1005adcd
mov eax, dword [ebp - 0x1c]
lea ecx, [ebx + 1]
mov dword [ebp - 0x18], ecx
jmp 0x1005addc
jle 0x1005ad39
mov ecx, dword [ebp - 0x18]
lea eax, [ebx - 1]
mov dword [ebp - 0x1c], eax
cmp ecx, eax
jg 0x1005ae06
lea ebx, [eax + ecx]
test ebx, ebx
jns 0x1005adfe
push 0x11c3f
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.lwrupr_0
call fcn.101aa953
add esp, 0xc
mov esi, dword [ebp - 0xc]
jmp 0x1005abdd
inc eax
cmp ecx, eax
je 0x1005ae2e
cmp byte [edi + 1], 0
je 0x1005ae17
cmp byte [edi + 8], 0
je 0x1005ae2e
push 0x11c42
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.lwrupr1___pPage__intKey___pPage__leaf_
call fcn.101aa953
add esp, 0xc
cmp byte [edi], 0
jne 0x1005ae4a
push 0x11c43
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pPage__isInit
call fcn.101aa953
add esp, 0xc
cmp byte [edi + 8], 0
jne 0x1005aea4
movzx eax, word [edi + 0x18]
mov esi, dword [ebp - 0x18]
cmp esi, eax
jl 0x1005ae68
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x1005ae82
mov eax, dword [edi + 0x40]
mov ax, word [eax + esi*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov edx, dword [ecx + eax]
mov ebx, dword [ebp - 8]
mov ecx, ebx
bswap edx
mov word [ebx + 0x46], si
call fcn.10059510
mov esi, eax
test esi, esi
jne 0x1005af85
mov esi, dword [ebp - 0xc]
jmp 0x1005ab90
mov edi, dword [ebp - 8]
mov ecx, dword [edi + 0x74]
mov ax, word [edi + 0x46]
cmp ax, word [ecx + 0x18]
jb 0x1005aed4
cmp dword [0x102450e0], 0
je 0x1005aed4
push 0x11c45
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pCur__ix_pCur__pPage__nCell__CORRUPT_DB
call fcn.101aa953
add esp, 0xc
mov edx, dword [ebp + 8]
mov word [edi + 0x46], bx
mov ebx, edi
mov dword [edx], esi
xor esi, esi
jmp 0x1005af85
push ebx
call fcn.10030700
mov ebx, dword [ebp - 8]
add esp, 4
mov esi, dword [ebp - 0x20]
jmp 0x1005af85
cmp dword [0x102451bc], 0
je 0x1005af0d
add dword [0x102549bc], 0x2a8ea
push 0x101f8cf4
push 0x11c20
push 0x10236394
push str._s_at_line__d_of___.10s_
push 7
call fcn.10033a50
mov ebx, dword [ebp - 8]
add esp, 0x14
mov esi, 7
jmp 0x1005af85
add dword [0x102549bc], 0x11c18
mov edx, edi
mov ecx, 0x11c1b
call fcn.100508e0
mov esi, eax
jmp 0x1005af85
add dword [0x102549bc], 0x11c17
mov edx, edi
mov ecx, 0x11c1b
call fcn.100508e0
mov esi, eax
jmp 0x1005af85
add dword [0x102549bc], 0x11c16
mov edx, edi
mov ecx, 0x11c1b
call fcn.100508e0
mov esi, eax
jmp 0x1005af85
mov ebx, eax
xor eax, eax
test byte [ebx + 1], 4
mov word [ebx + 0x32], ax
je 0x1005afa8
push 0x11c56
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str._pCur__curFlags__BTCF_ValidOvfl_0
call fcn.101aa953
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret