Function at 0x10015370
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 [0x101db014]
xor eax, ebp
mov dword [esp + 0x90], eax
cmp dword [ecx + 0x18], 0
jle 0x100153e2
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
xor ebx, ebx
test eax, eax
je 0x100153e2
mov ecx, esi
mov edx, edi
call fcn.10015e50
test eax, eax
jne 0x10015404
cmp dword [esi + 0x34], 0x2de218
jne 0x100157f2
cmp byte [esi + 0x32], 0
jne 0x100157ce
mov ecx, dword [esp + 0x90]
xor ecx, ebp
call fcn.1014dc80
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.10015f70
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10015835
cmp dword [esp + 0x58], 0
jne 0x100153a6
cmp byte [esi + 0x32], 0
jne 0x10015414
test byte [esi + 0x2e], 2
jne 0x10015854
mov dword [esp + 0x3c], edi
mov al, byte [esi + 0x2c]
mov byte [esp + 0x1b], al
test al, al
jne 0x1001544b
cmp byte [esi + 0x2b], 0
jne 0x1001544b
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 0x10015871
mov byte [esi + 0x2c], 1
cmp dword [esi + 0x18], 0
mov edi, dword [esp + 0x3c]
jle 0x10015466
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
test eax, eax
jne 0x1001547f
lea eax, [esp + 0x58]
mov ecx, esi
xor edx, edx
push eax
call fcn.10015f70
add esp, 4
test eax, eax
jne 0x10015878
mov ecx, esi
mov edx, edi
call fcn.10015e50
test eax, eax
je 0x10015868
movzx edi, byte [esi + 0x2d]
mov eax, 2
sub eax, edi
mov dword [esp + 0x38], eax
inc edi
cmp byte [esi + 0x2b], 0
jne 0x100154c9
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push dword [esp + 0x3c]
push edi
push ebx
call ecx
add esp, 0x10
test eax, eax
jne 0x1001587f
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 0x10015886
xor edi, edi
cmp dword [esp + 0x68], 0x21
mov eax, dword [esp + 0x6c]
sbb eax, 0
mov eax, 0
jge 0x1001588d
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
lea ebx, [esi + 0x34]
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x38]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov byte [esi + 0x40], 1
mov ecx, 0x2de218
mov dword [esi + 0x34], ecx
lea eax, [esi + 0x5c]
mov dword [esp + 0x10], eax
lea edi, [ebx + 8]
mov dword [esp + 0x28], edx
lea eax, [edx + ecx]
cmp edi, dword [esp + 0x10]
jae 0x1001558a
mov ecx, dword [ebx + 8]
add eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
add ecx, edx
add ecx, 0x5bc430
add eax, ecx
add ecx, dword [ebx + 0x10]
add ecx, eax
add eax, dword [ebx + 0x14]
add eax, ecx
add ecx, dword [esp + 8]
add ecx, eax
add eax, dword [esp + 0xc]
add eax, ecx
add ecx, dword [ebx + 0x20]
add ecx, eax
add eax, dword [ebx + 0x24]
add eax, ecx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
movups xmm0, xmmword [ebx + 0x20]
mov eax, dword [esp + 4]
movups xmmword [eax + 0x50], xmm0
movups xmm0, xmmword [ebx]
movups xmm1, xmmword [ebx + 0x10]
movups xmmword [eax + 0x40], xmm1
movups xmmword [eax + 0x30], xmm0
cmp byte [esi + 0x2b], 2
je 0x100155c5
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 + 4]
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 ecx, dword [eax]
mov dword [ecx + 0x60], 0
mov eax, dword [esi + 0x44]
mov dword [ecx + 0x80], eax
mov dword [esp + 4], ecx
mov dword [ecx + 0x64], 0
cmp byte [esi + 0x2b], 0
jne 0x10015627
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 4
push edi
call ecx
add esp, 0x10
test eax, eax
jne 0x100159b2
mov eax, dword [esi + 0x44]
xor ecx, ecx
cmp eax, 1
sbb ecx, ecx
or ecx, eax
mov eax, dword [esp + 4]
mov dword [eax + 0x68], ecx
cmp byte [esi + 0x2b], 0
jne 0x10015682
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 4
push edi
call ecx
add esp, 0x10
cmp byte [esi + 0x2b], 0
jne 0x10015682
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 5
push edi
call ecx
add esp, 0x10
test eax, eax
jne 0x100159c2
mov eax, dword [esp + 4]
mov dword [eax + 0x6c], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x100156d5
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 5
push edi
call ecx
add esp, 0x10
cmp byte [esi + 0x2b], 0
jne 0x100156d5
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 6
push edi
call ecx
add esp, 0x10
test eax, eax
jne 0x100159d2
mov eax, dword [esp + 4]
mov dword [eax + 0x70], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x10015728
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 6
push edi
call ecx
add esp, 0x10
cmp byte [esi + 0x2b], 0
jne 0x10015728
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 7
push edi
call ecx
add esp, 0x10
test eax, eax
jne 0x100159e2
mov eax, dword [esp + 4]
mov dword [eax + 0x74], 0xffffffff
xor ebx, ebx
cmp byte [esi + 0x2b], 0
jne 0x10015755
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 0x100159f2
cmp byte [esi + 0x2b], 0
jne 0x10015783
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push dword [esp + 0x3c]
push dword [esp + 0x5c]
push edi
call ecx
add esp, 0x10
mov eax, dword [esp + 0x3c]
mov dword [eax], 1
xor eax, eax
mov dword [esp + 4], eax
cmp byte [esp + 0x1b], 0
jne 0x100157be
mov byte [esi + 0x2c], 0
cmp byte [esi + 0x2b], 0
jne 0x100157be
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 + 4], 0
je 0x100153c0
jmp 0x100153b3
test ebx, ebx
je 0x10015831
mov ecx, esi
call fcn.10159e70
mov byte [esi + 0x32], 0
xor eax, eax
dec eax
cmp ebx, 0x20a
cmove ebx, eax
mov byte [esi + 0x2b], 0
jmp 0x100153ca
push 0x101c47ed
push 0xf500
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 0x100153ca
mov ecx, esi
call fcn.10159e70
mov byte [esi + 0x32], 0
mov ebx, 0xe
jmp 0x100157e9
xor ebx, ebx
jmp 0x100157e9
cmp ebx, 0x508
jne 0x100153ca
mov byte [esi + 0x32], 1
mov byte [esi + 0x2b], 2
mov dword [edi], 1
jmp 0x100153fd
cmp byte [esi + 0x2b], 0
je 0x10015a0f
mov ebx, 0x108
jmp 0x100153c0
mov al, 1
xor ebx, ebx
jmp 0x1001578f
mov ebx, eax
jmp 0x100153c0
mov ebx, eax
jmp 0x1001578d
mov ebx, eax
jmp 0x10015783
mov ebx, eax
jmp 0x1001575f
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 + 8], 0
push edx
push 0x20
push eax
push edi
call ecx
add esp, 0x14
mov ebx, eax
test eax, eax
jne 0x1001575f
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov edi, eax
mov ebx, dword [esp + 0x78]
push ebx
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
and edi, 0xfffffffe
cmp edi, 0x377f0682
jne 0x10015dfa
mov eax, dword [esp + 0x10]
add eax, 0xfffffe00
cmp eax, 0xfe00
ja 0x10015dfa
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 1
and eax, 0x55555555
sub ecx, eax
mov eax, 0x33333333
mov edx, ecx
and edx, eax
shr ecx, 2
and ecx, eax
add ecx, edx
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
cmp eax, 1
ja 0x10015dfa
mov eax, dword [esp + 0xc]
and al, 1
mov byte [esi + 0x41], al
mov eax, dword [esp + 0x10]
mov dword [esi + 0x24], eax
mov edi, dword [esp + 0x7c]
push edi
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi + 0x70], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov dword [esi + 0x58], eax
mov edx, ecx
mov dword [esi + 0x54], ecx
mov eax, dword [esp + 0xc]
and al, 1
jne 0x10015a5c
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 8]
add ebx, eax
mov dword [esp + 0xc], ecx
add eax, ecx
add ebx, eax
add edi, eax
add edi, ebx
add ebx, edx
add ebx, edi
add edi, dword [esp + 0x84]
mov eax, ebx
mov ebx, edi
jmp 0x10015a8d
mov ebx, eax
cmp eax, 5
je 0x1001565a
jmp 0x1001575f
mov ebx, eax
cmp eax, 5
je 0x100156ad
jmp 0x1001575f
mov ebx, eax
cmp eax, 5
je 0x10015700
jmp 0x1001575f
mov ebx, eax
cmp eax, 5
je 0x10015755
jmp 0x1001575f
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 0x1001575f
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 0x100153c0
cmp byte [esi + 0x2b], 0
jne 0x1001585e
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 0x1001585e
mov ecx, dword [esp + 8]
bswap ecx
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], eax
bswap eax
add eax, ecx
bswap ebx
add ebx, ecx
add ebx, eax
bswap edi
add edi, eax
add edi, ebx
bswap edx
add edx, ebx
mov ebx, dword [esp + 0x84]
add edx, edi
mov eax, edx
bswap ebx
add ebx, edi
mov edi, eax
add ebx, eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], ebx
push dword [esp + 0x88]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp edi, eax
jne 0x10015dfa
push dword [esp + 0x8c]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp ebx, eax
jne 0x10015dfa
push dword [esp + 0xc]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp eax, 0x2de218
jne 0x10015dd4
call sym.nss3.dll_sqlite3_initialize
mov ebx, 7
test eax, eax
jne 0x1001575f
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x8018]
xor edi, edi
xor edx, edx
call fcn.10144e50
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1001575f
mov eax, dword [esp + 0x10]
lea edx, [eax + 0x18]
mov ecx, dword [esp + 0x1c]
add eax, ecx
add eax, 0x18
mov dword [esp + 0x28], 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 + 0x28], edx
push edx
push ecx
push eax
call fcn.1014deb0
mov dword [esp + 0x50], eax
add eax, 0x21
shr eax, 0xc
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], 0xfde
mov dword [esp + 0xc], 0
mov dword [esp + 8], 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 + 8]
mov edx, ecx
shl edx, 0xc
mov ebx, edx
add edx, 0xfde
cmp edx, eax
cmova edx, eax
mov dword [esp + 0x30], edx
cmp dword [esi + 0x18], ecx
jle 0x10015bae
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 8]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x64], ecx
test ecx, ecx
jne 0x10015bd0
mov ecx, esi
mov edx, dword [esp + 8]
lea eax, [esp + 0x64]
push eax
call fcn.10015f70
add esp, 4
mov dword [esp + 4], eax
test eax, eax
jne 0x10015e1b
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 8]
mov dword [eax + edx*4], ecx
add ebx, 0xffffffdf
test edx, edx
mov eax, 1
cmove ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x30]
jbe 0x10015c64
mov dword [esp + 4], 0
mov al, 1
mov dword [esp + 0x14], eax
mov edx, dword [esp + 8]
test edx, edx
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 0x20]
mov dword [ecx + edx*4], eax
mov ecx, 0
mov edx, 0x88
cmove ecx, edx
add eax, ecx
mov edx, 0x8000
sub edx, ecx
mov ebx, dword [esp + 0x28]
add ecx, ebx
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test byte [esp + 0x14], 1
je 0x10015e1b
mov ecx, dword [esp + 8]
lea eax, [ecx + 1]
add dword [esp + 0x34], 0x1000
cmp ecx, dword [esp + 0x48]
mov dword [esp + 8], eax
jne 0x10015b6a
jmp 0x10015e1b
mov eax, dword [esp + 0x20]
dec eax
mul dword [esp + 0x24]
mov ebx, edx
add eax, 0x20
mov dword [esp + 4], eax
adc ebx, 0
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push ebx
push dword [esp + 8]
push dword [esp + 0x2c]
push dword [esp + 0x28]
push dword [esp + 0x24]
call ecx
add esp, 0x14
mov dword [esp + 4], 0
test eax, eax
je 0x10015cbe
mov dword [esp + 0x14], 0
mov dword [esp + 4], eax
jmp 0x10015c00
mov ecx, esi
lea edx, [esp + 0x60]
push dword [esp + 0x1c]
push dword [esp + 0x30]
lea eax, [esp + 0x64]
push eax
call fcn.10159d50
add esp, 0xc
test eax, eax
je 0x10015e29
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 0xff00
shr ecx, 0x10
or ecx, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], 0
mov ecx, esi
mov edx, dword [esp + 0x20]
push dword [esp + 0x60]
call fcn.10029730
add esp, 4
mov dword [esp + 4], eax
test eax, eax
jne 0x10015c00
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x10015d3f
mov ecx, dword [esp + 0x20]
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 + 0xc], eax
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x30]
setae cl
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x4c], eax
je 0x10015e36
mov eax, dword [esp + 0x20]
mul dword [esp + 0x24]
mov ebx, edx
add eax, 0x20
mov dword [esp + 4], 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 + 8]
push dword [esp + 0x2c]
push dword [esp + 0x28]
push dword [esp + 0x54]
call ecx
add esp, 0x14
mov dword [esp + 4], eax
test eax, eax
jne 0x10015c00
inc dword [esp + 0x20]
mov ecx, esi
lea edx, [esp + 0x60]
push dword [esp + 0x1c]
push dword [esp + 0x30]
lea eax, [esp + 0x64]
push eax
call fcn.10159d50
add esp, 0xc
mov dword [esp + 4], 0
test eax, eax
jne 0x10015cfd
jmp 0x10015c00
push 0x101c47ed
push 0xf092
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 + 4], 0xe
mov dword [esp + 0xc], 0
xor edi, edi
mov eax, dword [esp + 4]
mov ebx, eax
test eax, eax
mov eax, dword [esp + 0xc]
je 0x10015516
jmp 0x1001575f
push dword [esp + 0x1c]
call sym.nss3.dll_sqlite3_free
add esp, 4
jmp 0x10015e04
mov dword [esp + 0x14], 0
jmp 0x10015c00
mov dword [esp + 4], 0
jmp 0x10015c00