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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov edi, edx
mov esi, ecx
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [esp + 0x90], eax
cmp dword [ecx + 0x18], 0
jle 0x10013692
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
xor ebx, ebx
test eax, eax
je 0x10013692
mov ecx, esi
mov edx, edi
call fcn.10014060
test eax, eax
jne 0x100136b4
cmp dword [esi + 0x34], 0x2de218
jne 0x10013a72
cmp byte [esi + 0x32], 0
jne 0x10013a4e
mov ecx, dword [esp + 0x90]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x58]
mov ecx, esi
xor edx, edx
push eax
call fcn.10014190
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10013ab0
cmp dword [esp + 0x58], 0
jne 0x10013656
cmp byte [esi + 0x32], 0
jne 0x100136c4
test byte [esi + 0x2e], 2
jne 0x10013ad8
mov dword [esp + 0x28], edi
mov al, byte [esi + 0x2c]
mov byte [esp + 0x13], al
test al, al
jne 0x100136fb
cmp byte [esi + 0x2b], 0
jne 0x100136fb
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 0
push edi
call ecx
add esp, 0x10
test eax, eax
jne 0x10013aec
mov byte [esi + 0x2c], 1
cmp dword [esi + 0x18], 0
mov edi, dword [esp + 0x28]
jle 0x10013716
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
test eax, eax
jne 0x1001372f
lea eax, [esp + 0x58]
mov ecx, esi
xor edx, edx
push eax
call fcn.10014190
add esp, 4
test eax, eax
jne 0x10013af3
mov ecx, esi
mov edx, edi
call fcn.10014060
test eax, eax
je 0x10013acf
movzx edi, byte [esi + 0x2d]
mov eax, 2
sub eax, edi
mov dword [esp + 0x3c], eax
inc edi
cmp byte [esi + 0x2b], 0
jne 0x10013779
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push dword [esp + 0x40]
push edi
push ebx
call ecx
add esp, 0x10
test eax, eax
jne 0x10013afa
mov dword [esp + 0x54], edi
xorps xmm0, xmm0
movups xmmword [esi + 0x54], xmm0
movups xmmword [esi + 0x44], xmm0
movups xmmword [esi + 0x34], xmm0
mov edi, dword [esi + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
call dword [section..00cfg]
lea eax, [esp + 0x68]
push eax
push edi
call ecx
add esp, 8
test eax, eax
jne 0x10013b01
xor edi, edi
cmp dword [esp + 0x68], 0x21
mov eax, dword [esp + 0x6c]
sbb eax, 0
mov eax, 0
jge 0x10013b08
mov dword [esp + 8], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x38]
mov edx, dword [eax]
mov byte [esi + 0x40], 1
mov eax, 0x2de218
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x40]
add eax, ecx
mov ebx, dword [esi + 0x3c]
add ecx, ebx
add ecx, 0x5bc430
add eax, ecx
add ecx, dword [esi + 0x44]
mov ebx, 0x2de218
add eax, ebx
add ecx, eax
add eax, dword [esi + 0x48]
add eax, ecx
add ecx, edi
add ecx, eax
add eax, dword [esp + 8]
add eax, ecx
add ecx, dword [esi + 0x54]
add ecx, eax
add eax, dword [esi + 0x58]
add eax, ecx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
lea ebx, [esi + 0x34]
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [edx + 0x50], xmm0
movups xmm0, xmmword [ebx]
movups xmm1, xmmword [ebx + 0x10]
movups xmmword [edx + 0x40], xmm1
mov dword [esp + 8], edx
movups xmmword [edx + 0x30], xmm0
cmp byte [esi + 0x2b], 2
je 0x10013859
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
movups xmm0, xmmword [ebx + 0x20]
mov eax, dword [esp + 8]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebx]
movups xmm1, xmmword [ebx + 0x10]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
mov eax, dword [esi + 0x20]
mov edi, dword [eax]
mov dword [edi + 0x60], 0
mov eax, dword [esi + 0x44]
mov dword [edi + 0x80], eax
mov dword [edi + 0x64], 0
cmp byte [esi + 0x2b], 0
jne 0x100138b7
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 4
push ebx
call ecx
add esp, 0x10
test eax, eax
jne 0x10013bea
mov eax, dword [esi + 0x44]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
or ecx, eax
mov dword [edi + 0x68], ecx
cmp byte [esi + 0x2b], 0
jne 0x1001390e
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 4
push ebx
call ecx
add esp, 0x10
cmp byte [esi + 0x2b], 0
jne 0x1001390e
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 5
push ebx
call ecx
add esp, 0x10
test eax, eax
jne 0x10013bfa
mov dword [edi + 0x6c], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x1001395d
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 5
push ebx
call ecx
add esp, 0x10
cmp byte [esi + 0x2b], 0
jne 0x1001395d
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 6
push ebx
call ecx
add esp, 0x10
test eax, eax
jne 0x10013c0a
mov dword [edi + 0x70], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x100139ac
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 6
push ebx
call ecx
add esp, 0x10
cmp byte [esi + 0x2b], 0
jne 0x100139ac
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 7
push ebx
call ecx
add esp, 0x10
test eax, eax
jne 0x10013c1a
mov dword [edi + 0x74], 0xffffffff
xor ebx, ebx
cmp byte [esi + 0x2b], 0
jne 0x100139d5
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 7
push edi
call ecx
add esp, 0x10
cmp dword [esi + 0x48], 0
jne 0x10013c2a
cmp byte [esi + 0x2b], 0
jne 0x10013a03
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push dword [esp + 0x40]
push dword [esp + 0x5c]
push edi
call ecx
add esp, 0x10
mov eax, dword [esp + 0x28]
mov dword [eax], 1
xor eax, eax
mov dword [esp + 0x28], eax
cmp byte [esp + 0x13], 0
jne 0x10013a3e
mov byte [esi + 0x2c], 0
cmp byte [esi + 0x2b], 0
jne 0x10013a3e
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 0
push edi
call ecx
add esp, 0x10
cmp byte [esp + 0x28], 0
je 0x10013670
jmp 0x10013663
test ebx, ebx
je 0x10013aac
mov ecx, esi
call fcn.10163d00
mov byte [esi + 0x32], 0
xor eax, eax
dec eax
cmp ebx, 0x20a
cmove ebx, eax
mov byte [esi + 0x2b], 0
jmp 0x1001367a
push 0x101cff9b
push 0x10096
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov ebx, 0xe
cmp byte [esi + 0x32], 0
je 0x1001367a
mov ecx, esi
call fcn.10163d00
mov byte [esi + 0x32], 0
jmp 0x10013a69
xor ebx, ebx
jmp 0x10013a69
cmp ebx, 0x508
jne 0x1001367a
mov byte [esi + 0x32], 1
mov byte [esi + 0x2b], 2
mov dword [edi], 1
jmp 0x100136ad
mov al, 1
xor ebx, ebx
jmp 0x10013a0f
cmp byte [esi + 0x2b], 0
je 0x10013c47
mov ebx, 0x108
jmp 0x10013670
mov ebx, eax
jmp 0x10013670
mov ebx, eax
jmp 0x10013a0d
mov ebx, eax
jmp 0x10013a03
mov ebx, eax
jmp 0x100139df
mov edi, dword [esi + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
xor edx, edx
lea eax, [esp + 0x70]
push edx
mov dword [esp + 4], 0
push edx
push 0x20
push eax
push edi
call ecx
add esp, 0x14
mov ebx, eax
test eax, eax
jne 0x100139df
mov eax, dword [esp + 0x70]
mov ebx, eax
bswap ebx
mov ecx, ebx
and ecx, 0xfffffffe
cmp ecx, 0x377f0682
jne 0x10014012
mov edx, dword [esp + 0x78]
lea ecx, [edx - 1]
test edx, ecx
jne 0x10014012
mov ecx, edx
bswap ecx
mov dword [esp + 0x1c], ecx
add ecx, 0xfffeffff
cmp ecx, 0xffff01ff
jb 0x10014012
mov ecx, ebx
and cl, 1
mov byte [esi + 0x41], cl
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x24], ecx
bswap ecx
mov dword [esi + 0x70], ecx
mov edi, dword [esp + 0x80]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0xc], edi
mov dword [esi + 0x58], edi
mov edi, dword [esp + 8]
mov dword [esi + 0x54], edi
mov edi, dword [esp + 0x74]
mov dword [esp + 4], edi
jne 0x10013c94
add edx, eax
mov ecx, dword [esp + 4]
add eax, ecx
mov edi, dword [esp + 0x24]
add edi, eax
add edx, eax
add edi, edx
add edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
add ecx, edi
add edx, edi
add ecx, edx
jmp 0x10013cbc
mov ebx, eax
cmp eax, 5
je 0x100138e6
jmp 0x100139df
mov ebx, eax
cmp eax, 5
je 0x10013935
jmp 0x100139df
mov ebx, eax
cmp eax, 5
je 0x10013984
jmp 0x100139df
mov ebx, eax
cmp eax, 5
je 0x100139d5
jmp 0x100139df
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call sym.nss3.dll_sqlite3_log
add esp, 0x10
jmp 0x100139df
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 6
push 1
push 0
push edi
call ecx
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x10013670
cmp byte [esi + 0x2b], 0
jne 0x10013ae2
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 5
push 1
push 0
push edi
call ecx
add esp, 0x10
jmp 0x10013ae2
mov eax, dword [esp + 4]
bswap eax
add eax, ebx
add ecx, eax
add ebx, dword [esp + 0x1c]
add ebx, eax
add ecx, ebx
mov edx, dword [esp + 8]
bswap edx
add edx, ebx
mov eax, dword [esp + 0xc]
bswap eax
add eax, ecx
add edx, ecx
add eax, edx
mov ecx, eax
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], ecx
mov eax, dword [esp + 0x88]
bswap eax
cmp edx, eax
jne 0x10014012
mov eax, dword [esp + 0x8c]
bswap eax
cmp ecx, eax
jne 0x10014012
cmp dword [esp + 4], 0x18e22d00
jne 0x10013fed
call sym.nss3.dll_sqlite3_initialize
mov ebx, 7
test eax, eax
jne 0x100139df
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x8018]
xor edi, edi
xor edx, edx
call fcn.10143580
mov dword [esp + 0x14], eax
test eax, eax
je 0x100139df
mov eax, dword [esp + 0x1c]
lea edx, [eax + 0x18]
mov ecx, dword [esp + 0x14]
add eax, ecx
add eax, 0x18
mov dword [esp + 0x38], eax
add ecx, 0x18
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
add eax, 0xffffffe0
adc ecx, 0xffffffff
push 0
mov dword [esp + 0x24], edx
push edx
push ecx
push eax
call fcn.10157210
mov dword [esp + 0x50], eax
add eax, 0x21
shr eax, 0xc
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], 0xfde
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
mov edx, eax
cmovb edx, ecx
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 4]
mov edx, ecx
shl edx, 0xc
mov ebx, edx
add edx, 0xfde
cmp edx, eax
cmovae edx, eax
mov dword [esp + 0x30], edx
cmp dword [esi + 0x18], ecx
jle 0x10013dcf
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 4]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x64], ecx
mov dword [esp], 0
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x10013df8
mov ecx, esi
mov edx, dword [esp + 4]
lea eax, [esp + 0x64]
push eax
call fcn.10014190
add esp, 4
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10014032
mov eax, dword [esi + 0x20]
add ebx, 0xffffffdf
mov edx, dword [esp + 4]
test edx, edx
mov ecx, 1
cmove ebx, ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + edx*4], ecx
mov al, 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x30]
jbe 0x10013e84
mov ecx, dword [esp + 4]
test ecx, ecx
mov eax, dword [esi + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], ebx
mov eax, 0
mov ecx, 0x88
cmove eax, ecx
add ebx, eax
mov ecx, 0x8000
sub ecx, eax
mov edx, dword [esp + 0x38]
add eax, edx
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test byte [esp + 0xc], 1
je 0x10014032
mov ecx, dword [esp + 4]
lea eax, [ecx + 1]
add dword [esp + 0x34], 0x1000
cmp ecx, dword [esp + 0x48]
mov dword [esp + 4], eax
jne 0x10013d80
jmp 0x10014032
mov eax, dword [esp + 0x18]
dec eax
mul dword [esp + 0x20]
mov ebx, edx
add eax, 0x20
mov dword [esp], eax
adc ebx, 0
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [eax]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
push dword [esp + 4]
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0x1c]
call ecx
add esp, 0x14
mov dword [esp], 0
test eax, eax
je 0x10013edb
mov dword [esp + 0xc], 0
mov dword [esp], eax
jmp 0x10013e20
mov ecx, esi
lea edx, [esp + 0x60]
push dword [esp + 0x14]
push dword [esp + 0x30]
lea eax, [esp + 0x64]
push eax
call fcn.10163d60
add esp, 0xc
test eax, eax
je 0x10014040
mov ecx, dword [esp + 0x1c]
mov eax, ecx
and eax, 0xff00
shr ecx, 0x10
or ecx, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc], 0
mov ecx, esi
mov edx, dword [esp + 0x18]
push dword [esp + 0x60]
call fcn.10011b50
add esp, 4
mov dword [esp], eax
test eax, eax
jne 0x10013e20
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x10013f5b
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x40]
mov word [esi + 0x42], ax
mov edi, dword [esi + 0x4c]
mov eax, dword [esi + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
setae cl
mov dword [esp + 0xc], ecx
cmp dword [esp + 0x4c], eax
je 0x1001404d
mov eax, dword [esp + 0x18]
mul dword [esp + 0x20]
mov ebx, edx
add eax, 0x20
mov dword [esp], eax
adc ebx, 0
mov eax, dword [esi + 8]
mov dword [esp + 0x44], eax
mov eax, dword [eax]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
push dword [esp + 4]
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0x54]
call ecx
add esp, 0x14
mov dword [esp], eax
test eax, eax
jne 0x10013e20
inc dword [esp + 0x18]
mov ecx, esi
lea edx, [esp + 0x60]
push dword [esp + 0x14]
push dword [esp + 0x30]
lea eax, [esp + 0x64]
push eax
call fcn.10163d60
add esp, 0xc
mov dword [esp], 0
test eax, eax
jne 0x10013f1a
jmp 0x10013e20
push 0x101cff9b
push 0xfc0b
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov dword [esp], 0xe
mov dword [esp + 8], 0
xor edi, edi
mov eax, dword [esp]
mov ebx, eax
test eax, eax
mov eax, dword [esp + 8]
je 0x100137c6
jmp 0x100139df
push dword [esp + 0x14]
call sym.nss3.dll_sqlite3_free
add esp, 4
jmp 0x1001401c
mov dword [esp + 0xc], 0
jmp 0x10013e20
mov dword [esp], 0
jmp 0x10013e20