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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x10244540]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x30], 0
push edi
mov dword [esp + 0x38], 0
mov al, byte [esi + 0x2d]
cmp al, 1
je 0x1004c4cb
test al, al
je 0x1004c4cb
push 0xf567
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pWal__ckptLock1__pWal__ckptLock0
call fcn.101aa953
add esp, 0xc
cmp byte [esi + 0x2c], 0
jne 0x1004c4e8
push 0xf56a
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pWal__writeLock
call fcn.101aa953
add esp, 0xc
movzx ebx, byte [esi + 0x2d]
inc ebx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x14], ebx
jne 0x1004c53a
mov ecx, dword [esi + 4]
mov eax, 3
push 0xa
sub eax, ebx
push eax
mov edx, dword [ecx]
push ebx
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
test eax, eax
je 0x1004c52e
cmp al, 5
je 0x1004c52e
mov byte [esi + 0x74], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1018e7c9
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x74], 0
test eax, eax
jne 0x1004ca91
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.10190ee0
mov eax, dword [esi + 8]
lea edx, [esp + 0x64]
add esp, 0xc
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x1004ca70
cmp dword [esp + 0x5c], eax
jl 0x1004c958
jg 0x1004c57e
cmp dword [esp + 0x58], 0x20
jbe 0x1004c958
mov eax, dword [esi + 8]
lea edx, [esp + 0x64]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1004ca70
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x6c]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap ebx
mov dword [esp + 0x4c], ebx
cmp eax, 0x377f0682
jne 0x1004c958
lea eax, [ebx - 1]
test ebx, eax
jne 0x1004c958
cmp ebx, 0x10000
jg 0x1004c958
cmp ebx, 0x200
jl 0x1004c958
mov eax, dword [esp + 0x70]
and cl, 1
bswap eax
mov byte [esi + 0x41], cl
mov edx, edi
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x58], ecx
lea ecx, [esp + 0x64]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x54], eax
jne 0x1004c630
nop dword [eax]
mov eax, dword [ecx]
add eax, edi
add edx, eax
mov eax, dword [ecx + 4]
add eax, edx
add ecx, 8
add edi, eax
lea eax, [esp + 0x7c]
cmp ecx, eax
jb 0x1004c610
jmp 0x1004c64c
mov eax, dword [ecx]
bswap eax
add eax, edi
add edx, eax
mov eax, dword [ecx + 4]
bswap eax
add eax, edx
add ecx, 8
add edi, eax
lea eax, [esp + 0x7c]
cmp ecx, eax
jb 0x1004c630
mov eax, dword [esp + 0x7c]
bswap eax
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edi
cmp edx, eax
jne 0x1004c958
mov eax, dword [esp + 0x80]
bswap eax
cmp edi, eax
jne 0x1004c958
mov eax, dword [esp + 0x68]
bswap eax
cmp eax, 0x2de218
je 0x1004c6b9
cmp dword [0x102451bc], 0
je 0x1004c691
add dword [0x102549bc], 0x2a8dd
push 0x101f8cf4
push 0xf5ae
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call fcn.10033a50
add esp, 0x14
mov edi, 0xe
jmp 0x1004ca6c
lea edi, [ebx + 0x18]
mov dword [esp + 0x24], edi
call fcn.10108160
test eax, eax
jne 0x1004c9dd
lea eax, [edi + 0x8000]
push 0
push eax
call fcn.100302f0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1004c9dd
mov edi, dword [esp + 0x58]
add eax, 0x18
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
add eax, ebx
mov dword [esp + 0x2c], eax
sub edi, 0x20
lea eax, [ebx + 0x18]
cdq
sbb ecx, 0
push edx
push eax
push ecx
push edi
call fcn.1018f6d0
xor edi, edi
mov dword [esp + 0x30], eax
mov ecx, eax
mov dword [esp + 0x10], edi
call fcn.1004c130
mov dword [esp + 0x54], 0x7f78
nop dword [eax + eax]
mov ebx, edi
shl ebx, 0xc
lea edx, [ebx + 0xfde]
cmp dword [esp + 0x30], edx
cmovb edx, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
test edi, edi
jne 0x1004c756
mov dword [esp + 0xc], 1
jmp 0x1004c75d
add ebx, 0xffffffdf
mov dword [esp + 0xc], ebx
cmp dword [esi + 0x18], edi
jle 0x1004c778
mov eax, dword [esi + 0x20]
mov eax, dword [eax + edi*4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
test eax, eax
je 0x1004c778
xor edi, edi
jmp 0x1004c797
lea eax, [esp + 0x20]
mov edx, edi
push eax
mov ecx, esi
call fcn.1004ba60
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x1004c92d
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
mov dword [eax + ecx*4], ebx
mov ebx, dword [esp + 0xc]
cmp ebx, edx
ja 0x1004c8cc
mov eax, dword [esp + 0x24]
cdq
mov dword [esp + 0x3c], eax
mov eax, edx
mov dword [esp + 0x50], eax
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0xc]
push eax
push dword [esp + 0x40]
mov ebx, dword [edi]
dec ecx
push 0
push ecx
call fcn.1018f860
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x2c]
mov eax, dword [ebx + 8]
push dword [esp + 0x24]
push edi
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1004c8c4
push dword [esp + 0x18]
lea eax, [esp + 0x4c]
mov ecx, esi
push dword [esp + 0x44]
lea edx, [esp + 0x4c]
push eax
call fcn.1004bf80
mov ebx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x1004c8c8
push dword [esp + 0x44]
mov edx, ebx
mov ecx, esi
call fcn.1004c320
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004c8ab
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1004c897
mov edx, dword [esp + 0x4c]
mov ecx, edx
mov dword [esi + 0x48], eax
mov eax, edx
sar ecx, 0x10
and eax, 0xff00
or ecx, eax
mov dword [esi + 0x44], ebx
mov word [esi + 0x42], cx
cmp edx, 0x8000
jg 0x1004c877
add dword [0x102549bc], 0xf5db
jmp 0x1004c889
cmp edx, 0x10000
jl 0x1004c889
add dword [0x102549bc], 0xf5dc
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x38], eax
inc ebx
mov dword [esp + 0xc], ebx
cmp ebx, dword [esp + 0x1c]
ja 0x1004c8c8
mov eax, dword [esp + 0x50]
jmp 0x1004c7c8
push 0xf5d4
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push 0x101f935c
call fcn.101aa953
add esp, 0xc
jmp 0x1004c8c8
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], edx
xor ecx, ecx
cmp dword [esp + 0x10], ecx
mov eax, 0x88
cmove ecx, eax
mov eax, 0x8000
cmove eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x30]
add eax, ecx
push eax
lea eax, [ecx + edx]
push eax
call fcn.10190960
add esp, 0xc
cmp ebx, dword [esp + 0x1c]
jbe 0x1004c9c4
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc ebx
mov dword [esp + 0x10], ebx
call fcn.1004c130
cmp ebx, eax
ja 0x1004c9c4
mov edi, ebx
jmp 0x1004c730
test edi, edi
jne 0x1004c9c4
push 0xf5c5
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.aShare_0__rc_SQLITE_OK
call fcn.101aa953
add esp, 0xc
push dword [esp + 0x18]
call fcn.10030700
add esp, 4
mov eax, dword [esp + 0x34]
mov ecx, esi
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x50], eax
call fcn.1004bdd0
cmp dword [esi + 0x18], 0
jle 0x1004c97b
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
jne 0x1004c992
push 0xf34c
push str.L:DevGetDouYinCookieClientDll_srcLibrary_sqlite_sqlite3.c
push str.pWal__nWiData_0__pWal__apWiData_0_
call fcn.101aa953
add esp, 0xc
mov eax, dword [esi + 0x20]
mov edi, 1
mov ebx, dword [eax]
mov dword [ebx + 0x60], 0
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x64], 0
cmp byte [esi + 0x2b], 0
je 0x1004ca15
xor ecx, ecx
mov dword [esp + 0xc], ecx
jmp 0x1004cab2
push dword [esp + 0x18]
call fcn.10030700
add esp, 4
test edi, edi
jne 0x1004ca6c
jmp 0x1004c958
cmp dword [0x102451bc], 0
je 0x1004c9f0
add dword [0x102549bc], 0x2a8ea
push 0x101f8cf4
push 0xf5b6
push 0x10236394
push str._s_at_line__d_of___.10s_
push 7
call fcn.10033a50
add esp, 0x14
mov edi, 7
jmp 0x1004ca6c
mov ecx, dword [esi + 4]
lea eax, [edi + 3]
push 0xa
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
je 0x1004caa6
cmp al, 5
je 0x1004caa6
mov byte [esi + 0x74], 1
cmp eax, 5
jne 0x1004ca68
inc edi
cmp edi, 5
jl 0x1004c9b3
cmp dword [esi + 0x48], 0
je 0x1004ca68
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.10033a50
add esp, 0x10
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x2b], 0
jne 0x1004ca8f
mov eax, dword [esi + 4]
mov edx, 3
push 9
sub edx, ebx
push edx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov eax, edi
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1018e7c9
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x74], 0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1004ca3b
cmp edi, 1
jne 0x1004cac5
cmp dword [esi + 0x44], 0
je 0x1004cac5
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x68], eax
jmp 0x1004cacd
mov dword [ebx + edi*4 + 0x64], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x1004ca40
mov ecx, dword [esi + 4]
lea eax, [edi + 3]
push 9
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
jmp 0x1004ca40