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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov dword [esp + 0x50], edx
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0xe8], eax
mov dword [esp + 0x6c], 0
cmp byte [ecx + 0x2e], 0
jne 0x10058101
mov esi, dword [ebp + 8]
cmp byte [ecx + 0x2b], 0
mov dword [esp], ecx
jne 0x100571d5
mov edi, dword [ecx + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
xor eax, eax
inc eax
push 0xa
push eax
push eax
push edi
call ecx
add esp, 0x10
mov ecx, dword [esp]
test eax, eax
jne 0x1005825d
mov eax, dword [ebp + 0xc]
mov byte [ecx + 0x2d], 1
xor ebx, ebx
test esi, esi
jne 0x1005837f
mov dword [esp + 4], eax
lea esi, [esp + 0x6c]
mov edx, esi
call fcn.10015370
mov edi, eax
cmp dword [esi], 0
jne 0x1005810b
mov eax, dword [esp + 4]
mov dword [esp + 0x28], ebx
mov ecx, dword [esp]
mov dword [esp + 0x34], eax
test edi, edi
jne 0x10057d5a
mov edx, dword [ecx + 0x44]
movzx eax, word [ecx + 0x42]
mov esi, eax
shl esi, 0x10
or esi, eax
and esi, 0x1fe00
mov dword [esp + 0x1c], edx
test edx, edx
je 0x10057240
mov eax, dword [ebp + 0x18]
cmp esi, eax
mov esi, eax
jne 0x10058181
mov ecx, dword [esp]
mov eax, dword [ecx + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0x60]
cmp eax, dword [esp + 0x1c]
jae 0x10057c99
mov dword [esp + 0x3c], esi
mov eax, dword [ecx + 0x48]
mov dword [esp + 0x58], eax
xor esi, esi
inc esi
xor edi, edi
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + esi*4 + 0x64]
cmp dword [esp + 0x1c], ebx
ja 0x10057284
inc esi
cmp esi, 5
jne 0x1005726f
jmp 0x1005730e
lea edx, [esi + 3]
mov dword [esp + 4], edx
cmp byte [eax + 0x2b], 0
jne 0x100572c9
mov edi, dword [eax + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push dword [esp + 0xc]
push edi
call ecx
add esp, 0x10
cmp dword [esp + 0x34], 0
je 0x100572bd
cmp eax, 5
je 0x100582bc
test eax, eax
mov ecx, dword [esp + 0x10]
jne 0x10058268
cmp esi, 1
mov eax, 0xffffffff
cmove eax, dword [esp + 0x1c]
mov dword [ecx + esi*4 + 0x64], eax
mov eax, dword [esp]
xor edi, edi
cmp byte [eax + 0x2b], 0
jne 0x10057279
mov ebx, dword [eax + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push dword [esp + 0xc]
push ebx
call ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add esp, 0x10
jmp 0x10057279
mov eax, dword [ecx + 0x60]
cmp eax, dword [esp + 0x1c]
jae 0x100581a9
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x2c], eax
mov eax, dword [esp]
mov esi, dword [eax + 0x44]
call sym.nss3.dll_sqlite3_initialize
test eax, eax
jne 0x100580ce
lea edi, [esi + 0x21]
shr edi, 0xc
lea eax, [edi + edi*4]
shl eax, 2
mov dword [esp + 0x54], esi
lea esi, [eax + esi*2]
add esi, 0x1c
mov ecx, esi
xor edx, edx
call fcn.10144e50
test eax, eax
je 0x100580ce
mov ebx, eax
mov dword [esp + 0x44], edi
inc edi
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [ebx + 4], edi
call sym.nss3.dll_sqlite3_initialize
test eax, eax
mov eax, 0
jne 0x1005739b
mov ecx, 0x1000
mov eax, dword [esp + 0x54]
cmp eax, ecx
cmovb ecx, eax
add ecx, ecx
xor edx, edx
call fcn.10144e50
xor ecx, ecx
test eax, eax
mov edi, 7
cmovne edi, ecx
setne bl
mov ecx, dword [esp + 0x2c]
add ecx, 0x22
shr ecx, 0xc
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
ja 0x10058215
test eax, eax
mov ecx, dword [esp]
je 0x1005789e
mov eax, dword [esp + 0x14]
lea edx, [eax + 8]
mov dword [esp + 0x4c], edx
add eax, 0x16
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x2c]
cmp dword [ecx + 0x18], edx
jle 0x100580d8
mov eax, dword [ecx + 0x20]
mov esi, dword [eax + edx*4]
mov dword [esp + 0x74], esi
test esi, esi
je 0x100580d8
lea eax, [esi + 0x4000]
mov dword [esp + 0x70], eax
test edx, edx
jne 0x100581b0
add esi, 0x88
mov dword [esp + 0x74], esi
xor ecx, ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], esi
sub eax, esi
sar eax, 2
mov edi, dword [esp + 0x54]
sub edi, ecx
mov esi, dword [esp + 0x44]
cmp dword [esp + 0x2c], esi
cmovne edi, eax
mov eax, dword [edx + 4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x4c]
lea eax, [eax + edx*4]
lea eax, [eax + ecx*2]
mov dword [esp + 0x60], eax
lea eax, [ecx + 1]
mov dword [esp + 0x68], eax
mov dword [esp + 0x78], eax
test edi, edi
mov dword [esp + 0x5c], edi
jle 0x10058074
lea eax, [edi - 1]
movd xmm0, eax
lea eax, [edi + 7]
and eax, 0xfffffff8
pshufd xmm0, xmm0, 0
add ecx, ecx
lea ecx, [ecx + edx*4]
add ecx, dword [esp + 0x64]
xor edx, edx
movdqa xmm1, xmmword [0x1019c230]
movdqa xmm2, xmmword [0x1019c220]
movdqa xmm3, xmm0
movdqa xmm5, xmmword [0x1019c240]
pxor xmm3, xmm5
movdqa xmm4, xmm1
pxor xmm4, xmm5
pcmpgtd xmm4, xmm3
movd ebx, xmm4
not ebx
test bl, 1
je 0x100574c2
mov word [ecx + edx*2 - 0xe], dx
pxor xmm4, xmmword [0x1019c260]
movdqa xmm5, xmm4
psrlq xmm5, 0x10
movd ebx, xmm5
shr ebx, 0x10
test bl, 1
je 0x100574e7
lea esi, [edx + 1]
mov word [ecx + edx*2 - 0xc], si
pextrw ebx, xmm4, 4
test bl, 1
je 0x100574f9
lea esi, [edx + 2]
mov word [ecx + edx*2 - 0xa], si
pextrw ebx, xmm4, 6
test bl, 1
je 0x1005750b
lea esi, [edx + 3]
mov word [ecx + edx*2 - 8], si
movdqa xmm4, xmm2
pxor xmm4, xmmword [0x1019c240]
pcmpgtd xmm4, xmm3
pshufd xmm3, xmm4, 0x44
pxor xmm3, xmmword [0x1019c260]
pextrw ebx, xmm3, 4
test bl, 1
je 0x1005753a
lea esi, [edx + 4]
mov word [ecx + edx*2 - 6], si
pxor xmm4, xmmword [0x1019c260]
pextrw ebx, xmm4, 2
test bl, 1
je 0x10057554
lea esi, [edx + 5]
mov word [ecx + edx*2 - 4], si
pextrw ebx, xmm4, 4
test bl, 1
je 0x10057566
lea esi, [edx + 6]
mov word [ecx + edx*2 - 2], si
pextrw ebx, xmm4, 7
test bl, 1
je 0x10057577
lea esi, [edx + 7]
mov word [ecx + edx*2], si
add edx, 8
movdqa xmm3, xmmword [str._b_b_b_b]
paddd xmm1, xmm3
paddd xmm2, xmm3
cmp eax, edx
jne 0x10057496
xor edx, edx
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe0], edx
pxor xmm0, xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
mov eax, dword [esp + 0x60]
lea esi, [eax + edx*2]
test dl, 1
jne 0x10057605
xor eax, eax
inc eax
xor ecx, ecx
mov dword [esp + ecx*8 + 0x84], esi
mov dword [esp + ecx*8 + 0x80], eax
inc edx
cmp edx, edi
jne 0x100575dc
jmp 0x10057731
mov dword [esp + 0x18], esi
xor ecx, ecx
xor ebx, ebx
inc ebx
mov dword [esp + 0x48], edx
mov edi, dword [esp + ecx*8 + 0x80]
mov dword [esp + 0x40], ecx
mov eax, dword [esp + ecx*8 + 0x84]
mov dword [esp + 0xc], eax
test edi, edi
setg cl
test ebx, ebx
setg ch
mov eax, dword [esp + 0x38]
jg 0x10057648
mov dword [esp + 4], 0
test edi, edi
jle 0x100576f5
xor esi, esi
mov dword [esp + 4], 0
mov dword [esp + 0x30], ebx
xor ebx, ebx
mov dword [esp + 0x24], edi
test cl, 1
je 0x1005768c
test ch, 1
je 0x1005767e
mov ecx, dword [esp + 0xc]
movzx ecx, word [ecx + esi*2]
mov ecx, dword [eax + ecx*4]
mov edx, dword [esp + 0x18]
movzx edi, word [edx + ebx*2]
cmp ecx, dword [eax + edi*4]
jae 0x1005768c
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + esi*2]
inc esi
jmp 0x10057698
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ebx*2]
inc ebx
mov dword [esp + 8], ebx
movzx edi, word [ecx]
mov ecx, dword [eax + edi*4]
mov edx, eax
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 4]
mov word [eax + ebx*2], di
mov edi, dword [esp + 0x24]
cmp esi, edi
jl 0x100576d9
mov eax, ebx
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 8]
inc eax
mov dword [esp + 4], eax
cmp esi, edi
setl cl
cmp ebx, edx
setl ch
mov eax, dword [esp + 0x38]
jl 0x1005765c
cmp esi, edi
jl 0x1005765c
jmp 0x100576f5
mov eax, dword [esp + 0xc]
movzx edi, word [eax + esi*2]
xor eax, eax
cmp dword [edx + edi*4], ecx
mov edi, dword [esp + 0x24]
sete al
add esi, eax
mov eax, dword [esp + 4]
jmp 0x100576b6
mov edi, dword [esp + 4]
lea eax, [edi + edi]
push eax
push dword [esp + 0x24]
mov esi, dword [esp + 0x14]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, edi
add esp, 0xc
mov ecx, dword [esp + 0x40]
inc ecx
mov edx, dword [esp + 0x48]
bt edx, ecx
mov dword [esp + 0x18], esi
mov ebx, edi
mov edi, dword [esp + 0x5c]
jae 0x100575ed
jmp 0x10057612
mov dword [esp + 4], eax
inc ecx
cmp ecx, 0xd
jb 0x1005784c
jmp 0x1005785b
mov edx, dword [esp + ecx*8 + 0x80]
mov dword [esp + 0x40], ecx
mov eax, dword [esp + ecx*8 + 0x84]
mov dword [esp + 0x18], eax
test edx, edx
setg al
cmp dword [esp + 4], 0
setg ah
jg 0x10057771
test edx, edx
jle 0x10057848
mov dword [esp + 0xc], esi
xor ecx, ecx
mov dword [esp + 8], 0
xor ebx, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
test al, 1
je 0x100577bc
test ah, 1
je 0x100577b2
mov eax, dword [esp + 0x18]
movzx eax, word [eax + ecx*2]
mov esi, dword [esp + 0x38]
mov eax, dword [esi + eax*4]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 8]
movzx edi, word [edi + edx*2]
cmp eax, dword [esi + edi*4]
jae 0x100577bc
mov eax, dword [esp + 0x18]
lea eax, [eax + ecx*2]
inc ecx
jmp 0x100577cc
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [eax + edx*2]
inc edx
mov dword [esp + 8], edx
movzx edi, word [eax]
mov esi, dword [esp + 0x38]
mov eax, dword [esi + edi*4]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov word [ebx + edx*2], di
mov ebx, edx
mov edx, dword [esp + 0x30]
cmp ecx, edx
jge 0x10057806
mov edi, dword [esp + 0x18]
movzx edi, word [edi + ecx*2]
xor ebx, ebx
cmp dword [esi + edi*4], eax
mov edx, dword [esp + 0x30]
sete bl
add ecx, ebx
mov ebx, dword [esp + 0x24]
inc ebx
cmp ecx, edx
setl al
mov esi, dword [esp + 8]
cmp esi, dword [esp + 4]
setl ah
jl 0x10057785
cmp ecx, edx
jl 0x10057785
lea eax, [ebx + ebx]
push eax
push dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 4], ebx
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x40]
jmp 0x10057855
xor ebx, ebx
jmp 0x10057825
bt edi, ecx
jb 0x10057744
inc ecx
cmp ecx, 0xd
jne 0x1005784c
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + ecx*4]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x68]
mov dword [edx + eax*4 + 0x10], esi
mov esi, dword [esp + 4]
mov dword [edx + eax*4 + 0xc], esi
mov esi, dword [esp + 0x60]
mov dword [edx + eax*4 + 4], esi
mov esi, dword [esp + 0x38]
mov dword [edx + eax*4 + 8], esi
mov bl, 1
xor edi, edi
cmp ecx, dword [esp + 0x44]
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp]
jne 0x100573e3
cmp dword [esp + 0x20], 0
je 0x10057936
cmp dword [0x101db020], 0
je 0x1005821d
mov esi, dword [0x101ddc98]
test esi, esi
je 0x100578d9
mov ecx, dword [0x101db070]
cmp ecx, 0x1012e640
jne 0x1005823b
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [0x101db04c]
call dword [section..00cfg]
mov esi, dword [esp + 0x20]
push esi
call ecx
add esp, 4
sub dword [0x101ddc44], eax
dec dword [0x101ddc68]
mov ecx, dword [0x101db044]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov esi, dword [0x101ddc98]
test esi, esi
mov ecx, dword [esp]
je 0x10057936
mov ecx, dword [0x101db078]
cmp ecx, 0x1012e630
jne 0x1005824c
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [esp]
test bl, bl
je 0x100581bf
mov ebx, dword [ebp + 0x14]
cmp byte [ecx + 0x2b], 0
jne 0x10057981
mov esi, dword [ecx + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 3
push esi
call ecx
add esp, 0x10
mov edi, eax
cmp dword [esp + 0x34], 0
je 0x10057973
cmp edi, 5
je 0x100582fd
test edi, edi
mov ecx, dword [esp]
mov ebx, dword [ebp + 0x14]
jne 0x1005828b
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x60]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x80], edx
shr ebx, 2
and ebx, 3
mov dword [esp + 0x30], ebx
je 0x100579c3
mov esi, dword [ecx + 8]
mov eax, dword [esi]
mov edi, ecx
mov ecx, dword [eax + 0x14]
call dword [section..00cfg]
push ebx
push esi
call ecx
mov ecx, edi
add esp, 8
test eax, eax
jne 0x100581d6
mov eax, dword [esp + 0x58]
mul dword [esp + 0x3c]
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
mov esi, dword [ecx + 4]
mov eax, dword [esi]
mov edi, ecx
mov ecx, dword [eax + 0x28]
call dword [section..00cfg]
push 0
push 0x27
push esi
call ecx
add esp, 0xc
mov esi, dword [edi + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 0x18]
call dword [section..00cfg]
lea eax, [esp + 0x70]
push eax
push esi
call ecx
add esp, 8
test eax, eax
jne 0x100580fa
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
cmp esi, ebx
mov eax, ecx
sbb eax, edi
jl 0x10057dcd
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 4]
test esi, esi
jle 0x10057bbe
mov eax, dword [esp + 0x3c]
or eax, 0x18
mov dword [esp + 0x48], eax
mov dword [esp + 0xc], 0
mov eax, dword [ecx]
mov dword [esp + 8], eax
xor edx, edx
dec edx
mov dword [esp + 0x18], esi
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
lea edi, [eax + eax*4]
mov eax, ecx
mov ebx, dword [ecx + edi*4 + 8]
mov ecx, dword [ecx + edi*4 + 0x14]
cmp ebx, ecx
jge 0x10058060
mov dword [esp + 4], edx
lea edx, [eax + edi*4]
add edx, 8
mov dword [esp + 0x38], edx
mov esi, dword [eax + edi*4 + 0xc]
mov eax, dword [eax + edi*4 + 0x10]
neg ecx
mov dword [esp + 0x20], ecx
inc ebx
mov edx, esi
movzx esi, word [esi + ebx*2 - 2]
mov ecx, eax
mov eax, dword [eax + esi*4]
cmp eax, dword [esp + 8]
ja 0x10057acc
mov eax, dword [esp + 0x38]
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
add eax, ebx
inc eax
inc ebx
cmp eax, 1
mov esi, edx
mov eax, ecx
jne 0x10057a9e
jmp 0x10058067
mov edx, dword [esp + 4]
cmp eax, edx
mov ecx, dword [esp + 0x14]
jae 0x10057ae2
add esi, dword [ecx + edi*4 + 0x18]
mov dword [esp + 0xc], esi
mov edx, eax
cmp dword [esp + 0x18], 1
mov esi, dword [esp + 0x24]
jg 0x10057a61
mov dword [ecx], edx
cmp edx, 0xffffffff
je 0x10057bc4
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x110]
test eax, eax
jne 0x100581df
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x40]
jbe 0x10057baf
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x1c]
ja 0x10057baf
cmp edx, dword [esp + 0x58]
ja 0x10057baf
mov dword [esp + 4], edx
mov eax, dword [esp + 0xc]
dec eax
mul dword [esp + 0x48]
mov edi, edx
mov ebx, eax
add ebx, 0x38
adc edi, 0
mov esi, dword [esp]
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov eax, dword [eax]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push edi
push ebx
mov edi, dword [esp + 0x44]
push edi
mov eax, dword [ebp + 0x1c]
push eax
push dword [esp + 0x18]
call ecx
add esp, 0x14
test eax, eax
jne 0x100581f7
mov eax, dword [esp + 4]
dec eax
mul edi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov ebx, dword [esi + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
call dword [section..00cfg]
push dword [esp + 8]
push dword [esp + 8]
push edi
push dword [ebp + 0x1c]
push ebx
call ecx
add esp, 0x14
test eax, eax
jne 0x100580fa
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 4]
test esi, esi
jg 0x10057a58
mov dword [ecx], 0xffffffff
xor edi, edi
mov esi, dword [esp]
mov esi, dword [esi + 4]
mov eax, dword [esi]
test eax, eax
je 0x10057be5
mov ecx, dword [eax + 0x28]
call dword [section..00cfg]
push 0
push 0x25
push esi
call ecx
add esp, 0xc
test edi, edi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jne 0x10057c69
mov eax, dword [esp]
mov eax, dword [eax + 0x20]
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jne 0x10057c5c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp]
mul dword [ecx + 0x48]
mov esi, eax
mov edi, edx
mov ebx, dword [ecx + 4]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
push edi
push esi
push ebx
call ecx
add esp, 0xc
test eax, eax
jne 0x100581fe
cmp dword [esp + 0x30], 0
mov ebx, dword [esp + 0x14]
je 0x10057c5c
mov eax, dword [esp]
mov esi, dword [eax + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
call dword [section..00cfg]
push dword [esp + 0x30]
push esi
call ecx
add esp, 8
test eax, eax
jne 0x10058206
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x60], eax
xor edi, edi
mov eax, dword [esp]
cmp byte [eax + 0x2b], 0
jne 0x10057c90
mov esi, dword [eax + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 3
push esi
call ecx
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp edi, 5
jne 0x10057ca1
xor edi, edi
jmp 0x10057ca1
xor ebx, ebx
xor edi, edi
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x28], 0
je 0x10057cb0
test edi, edi
je 0x10057e50
test ebx, ebx
je 0x10057d3b
cmp dword [0x101db020], 0
je 0x10058150
mov esi, dword [0x101ddc98]
test esi, esi
je 0x10057ce8
mov ecx, dword [0x101db070]
cmp ecx, 0x1012e640
jne 0x1005815f
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [0x101db04c]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
sub dword [0x101ddc44], eax
dec dword [0x101ddc68]
mov ecx, dword [0x101db044]
call dword [section..00cfg]
push ebx
call ecx
add esp, 4
mov esi, dword [0x101ddc98]
test esi, esi
je 0x10057d3b
mov ecx, dword [0x101db078]
cmp ecx, 0x1012e630
jne 0x10058170
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
cmp edi, 5
je 0x10057d44
test edi, edi
jne 0x10057d5a
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x10058041
test eax, eax
jne 0x1005804e
cmp dword [esp + 0x6c], 0
jne 0x10058135
mov ebx, dword [esp]
cmp byte [ebx + 0x2c], 0
jne 0x10057e1c
cmp byte [ebx + 0x2d], 0
je 0x10057da1
cmp byte [ebx + 0x2b], 0
jne 0x10057d9d
mov esi, dword [ebx + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
xor eax, eax
inc eax
push 9
push eax
push eax
push esi
call ecx
mov ebx, dword [esp + 0x10]
add esp, 0x10
mov byte [ebx + 0x2d], 0
test edi, edi
mov esi, 5
cmovne esi, edi
mov eax, dword [esp + 0x28]
cmp eax, dword [ebp + 8]
cmove esi, edi
mov ecx, dword [esp + 0xe8]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x3c]
mov edx, dword [esp]
mul dword [edx + 0x44]
add esi, eax
adc ecx, edx
add esi, 0x10000
adc ecx, 0
cmp esi, ebx
sbb ecx, edi
jl 0x10058294
mov eax, dword [esp]
mov esi, dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x10057a36
mov ecx, dword [eax + 0x28]
call dword [section..00cfg]
lea eax, [esp + 0x80]
push eax
push 5
push esi
call ecx
add esp, 0xc
jmp 0x10057a36
cmp byte [ebx + 0x2b], 0
jne 0x10057e3c
mov esi, dword [ebx + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 9
push 1
push 0
push esi
call ecx
add esp, 0x10
xor eax, eax
mov byte [ebx + 0x2c], al
mov dword [ebx + 0x68], 0
mov byte [ebx + 0x2f], al
jmp 0x10057d72
mov eax, dword [ecx + 0x60]
mov ecx, dword [esp]
cmp eax, dword [ecx + 0x44]
jb 0x100582f3
xor edi, edi
cmp dword [esp + 0x28], 2
jl 0x10057cb0
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x80]
push eax
push 4
call sym.nss3.dll_sqlite3_randomness
add esp, 8
mov esi, 4
mov ebx, dword [esp]
cmp byte [ebx + 0x2b], 0
jne 0x10057ec6
mov edi, dword [ebx + 4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push esi
push esi
push edi
call ecx
add esp, 0x10
mov edi, eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10057ebb
cmp edi, 5
je 0x10058331
test edi, edi
mov ebx, dword [esp]
jne 0x10058038
cmp dword [esp + 0x28], 3
jne 0x1005832a
mov esi, dword [esp + 0x80]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0xc], ecx
mov eax, dword [ebx + 0x54]
mov ecx, dword [ecx]
mov dword [esp + 4], ecx
lea edi, [ebx + 0x34]
inc dword [ebx + 0x70]
mov dword [ebx + 0x44], 0
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
inc eax
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esp + 0x18], eax
mov dword [ebx + 0x54], eax
mov dword [esp + 0x24], esi
mov dword [ebx + 0x58], esi
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov byte [ebx + 0x40], 1
mov ecx, 0x2de218
mov dword [ebx + 0x34], ecx
lea eax, [ebx + 0x5c]
mov dword [esp + 8], eax
lea eax, [ebx + 0x3c]
mov esi, dword [ebx + 0x38]
lea edx, [esi + ecx]
cmp eax, dword [esp + 8]
jae 0x10057f70
mov eax, dword [edi + 8]
lea ecx, [esi + eax]
add ecx, 0x5bc430
add edx, dword [edi + 0xc]
add edx, ecx
add ecx, edx
add edx, dword [edi + 0x14]
add edx, ecx
add ecx, dword [edi + 0x18]
add ecx, edx
add edx, dword [edi + 0x1c]
add edx, ecx
add ecx, dword [esp + 0x18]
add ecx, edx
add edx, dword [esp + 0x24]
add edx, ecx
mov eax, dword [esp]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], edx
movups xmm0, xmmword [edi + 0x20]
mov ebx, dword [esp + 0xc]
movups xmmword [ebx + 0x50], xmm0
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [ebx + 0x40], xmm1
movups xmmword [ebx + 0x30], xmm0
cmp byte [eax + 0x2b], 2
je 0x10057fb2
mov esi, dword [eax + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 0x3c]
call dword [section..00cfg]
push esi
call ecx
mov eax, dword [esp + 4]
add esp, 4
movups xmm0, xmmword [edi + 0x20]
movups xmmword [ebx + 0x20], xmm0
movdqu xmm0, xmmword [edi]
movdqu xmm1, xmmword [edi + 0x10]
movdqu xmmword [ebx + 0x10], xmm1
movdqu xmmword [ebx], xmm0
mov ecx, dword [esp + 4]
mov dword [ecx + 0x60], 0
xor esi, esi
mov dword [ecx + 0x80], esi
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x6c], 0xffffffff
mov dword [ecx + 0x70], 0xffffffff
mov dword [ecx + 0x74], 0xffffffff
mov edi, dword [eax + 8]
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
call dword [section..00cfg]
push esi
push esi
push edi
call ecx
add esp, 0xc
mov edi, eax
cmp byte [ebx + 0x2b], 0
jne 0x10058038
mov esi, dword [ebx + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
mov eax, 4
push 9
push eax
push eax
push esi
call ecx
add esp, 0x10
mov ebx, dword [esp + 0x14]
jmp 0x10057cb0
mov edx, dword [esp]
mov edx, dword [edx + 0x44]
mov dword [ecx], edx
jmp 0x10057d52
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x20]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x60]
mov dword [eax], ecx
jmp 0x10057d5a
mov ecx, eax
jmp 0x10057ae2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
jmp 0x10057ae2
xor esi, esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], esi
pxor xmm0, xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
xor ecx, ecx
inc ecx
mov dword [esp + 4], 0
jmp 0x1005784c
mov edi, 7
jmp 0x10057d5a
lea eax, [esp + 0x74]
push eax
call fcn.10015f70
add esp, 4
test eax, eax
jne 0x10058211
mov esi, dword [esp + 0x74]
mov edx, dword [esp + 0x2c]
jmp 0x10057402
mov edi, eax
jmp 0x10057bc6
mov esi, 8
jmp 0x10057db5
mov eax, dword [esp]
mov esi, dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax], 3
jl 0x10057200
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
xor eax, eax
push eax
push eax
push eax
push esi
call ecx
add esp, 0x10
jmp 0x10057200
pxor xmm0, xmm0
mov eax, dword [esp]
movdqu xmmword [eax + 0x54], xmm0
movdqu xmmword [eax + 0x44], xmm0
movdqu xmmword [eax + 0x34], xmm0
jmp 0x10057d65
mov ecx, dword [0x101db044]
call dword [section..00cfg]
push ebx
jmp 0x10058177
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x10057ce8
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x10057d3b
push 0x101c47ed
push 0xfaad
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov edi, 0xb
jmp 0x10057d5a
xor ebx, ebx
jmp 0x10057c90
mov ecx, dword [esp + 0x2c]
shl ecx, 0xc
add ecx, 0xffffffde
jmp 0x10057420
push dword [esp + 0x14]
call sym.nss3.dll_sqlite3_free
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x10]
jmp 0x10057c90
mov edi, eax
mov esi, ecx
jmp 0x10057bc9
xor eax, eax
mov ecx, dword [esp + 0x50]
cmp byte [ecx + 0x53], 0
sete al
lea edi, [eax + eax]
add edi, 7
jmp 0x10057bc6
mov edi, eax
jmp 0x10057bc9
mov edi, eax
mov ebx, dword [esp + 0x14]
jmp 0x10058208
mov edi, eax
mov ecx, dword [esp + 0x10]
jmp 0x10057c69
mov edi, eax
xor ebx, ebx
mov ecx, dword [esp]
jmp 0x1005789e
mov ecx, dword [0x101db044]
call dword [section..00cfg]
push dword [esp + 0x20]
call ecx
mov ecx, dword [esp + 4]
add esp, 4
jmp 0x10057936
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x100578d9
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x10057933
mov edi, eax
mov dword [esp + 0x28], esi
jmp 0x10057d5a
mov dword [esp + 0x34], 0
mov edi, eax
cmp eax, 5
jne 0x10057d3b
mov dword [esp + 0x1c], ebx
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
jmp 0x10057279
mov ebx, dword [esp + 0x14]
jmp 0x100581cd
push 0x101c47ed
push 0xf3a3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov edi, 0xb
jmp 0x10057bc6
mov ecx, dword [esp + 0x34]
call dword [section..00cfg]
push dword [ebp + 0x10]
call ecx
add esp, 4
test eax, eax
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
jne 0x1005728b
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], 0
mov edi, 5
jmp 0x10057279
mov edi, 5
jmp 0x10057cb0
mov ecx, dword [esp + 0x34]
call dword [section..00cfg]
push dword [ebp + 0x10]
call ecx
add esp, 4
test eax, eax
mov ecx, dword [esp]
mov ebx, dword [ebp + 0x14]
jne 0x10057941
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x10057c95
xor edi, edi
jmp 0x10058015
mov edi, ecx
call dword [section..00cfg]
push dword [ebp + 0x10]
call ecx
add esp, 4
test eax, eax
jne 0x10057e8a
mov edi, 5
jmp 0x10058038
mov ecx, eax
call dword [section..00cfg]
push dword [ebp + 0x10]
call dword [ebp + 0xc]
add esp, 4
mov dword [esp + 4], 0
mov ebx, 0
test eax, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp]
je 0x100571ea
cmp byte [ecx + 0x2b], 0
mov ebx, dword [ebp + 8]
jne 0x100583b7
mov esi, dword [ecx + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 0x38]
call dword [section..00cfg]
push 0xa
push 1
push 0
push esi
call ecx
add esp, 0x10
mov edi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100583b0
cmp edi, 5
je 0x10058353
test edi, edi
mov ecx, dword [esp]
jne 0x100583c0
mov byte [ecx + 0x2c], 1
jmp 0x100571e6
mov dword [esp + 4], 0
mov eax, ebx
mov ebx, 0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
cmp edi, 5
je 0x100571ea
jmp 0x1005720b