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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov ecx, eax
not ecx
mov dword [ebp - 0x10], 0x400
and ecx, 1
push ebx
mov dword [ebp - 0x20], ecx
xor ebx, ebx
push esi
mov ecx, eax
mov dword [ebp - 0x14], ebx
shr ecx, 1
xor esi, esi
push edi
mov edi, dword [ebp + 8]
and ecx, 1
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 4]
cmp ecx, 0x28
jle 0x10052516
add ecx, 7
and ecx, 0xfffffff8
mov dword [ebp + 0x18], ecx
jmp 0x1005251d
mov dword [ebp + 0x18], 0x28
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
test al, 4
je 0x10052535
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x18], ebx
jmp 0x1005263d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1005263d
cmp byte [eax], bl
je 0x1005263d
mov esi, dword [edi + 8]
inc esi
lea eax, [esi + esi]
push eax
call fcn.100504d0
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x10052909
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov byte [ebx], 0
mov eax, dword [edi + 0x24]
push esi
push edi
call eax
mov edi, eax
add esp, 0x10
mov eax, ebx
mov dword [ebp - 4], edi
cmp byte [eax], 0
je 0x1005258c
inc ebx
cmp byte [ebx], 0
jne 0x10052586
sub ebx, eax
mov eax, esi
and ebx, 0x3fffffff
cmp byte [esi], 0
je 0x100525a6
jmp 0x100525a0
inc eax
cmp byte [eax], 0
jne 0x100525a0
sub eax, esi
lea edx, [esi + 1]
and eax, 0x3fffffff
add edx, eax
mov dword [ebp - 0x14], edx
mov esi, edx
cmp byte [edx], 0
je 0x100525fd
lea esp, [esp]
cmp byte [esi], 0
mov eax, esi
je 0x100525cd
inc eax
cmp byte [eax], 0
jne 0x100525c7
sub eax, esi
and eax, 0x3fffffff
lea ecx, [eax + 1]
add ecx, esi
mov eax, ecx
jne 0x100525e1
xor eax, eax
jmp 0x100525f3
cmp byte [ecx], 0
je 0x100525ec
inc eax
cmp byte [eax], 0
jne 0x100525e6
sub eax, ecx
and eax, 0x3fffffff
lea esi, [eax + 1]
add esi, ecx
cmp byte [esi], 0
jne 0x100525c0
sub esi, edx
inc esi
test edi, edi
jne 0x10052625
mov edi, dword [ebp + 8]
lea eax, [ebx + 8]
cmp eax, dword [edi + 8]
jle 0x1005263d
push 0x7272
call fcn.100432d0
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
test edi, edi
je 0x1005263a
mov edx, dword [ebp - 8]
push edx
call sym.YJK_SQL.dll_sqlite3_free
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
lea ecx, [ebx + ebx*2]
mov edx, dword [ebp + 0x18]
add eax, 7
and eax, 0xfffffff8
add eax, esi
lea eax, [eax + edx*2]
add eax, 0xf7
add eax, ecx
push eax
mov dword [ebp + 0x10], eax
call fcn.100504d0
mov edi, eax
add esp, 4
test edi, edi
je 0x100528fd
push dword [ebp + 0x10]
push 0
push edi
call sub.MSVCR120.dll_memset
mov eax, dword [ebp + 8]
lea ecx, [edi + 0xb8]
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [edi + 0xa8], ecx
add ecx, 0x30
mov dword [edi + 0x3c], ecx
mov eax, dword [eax + 4]
add eax, 7
and eax, 0xfffffff8
add ecx, eax
mov dword [edi + 0x44], ecx
add ecx, dword [ebp + 0x18]
mov dword [edi + 0x40], ecx
add ecx, dword [ebp + 0x18]
mov dword [edi + 0x90], ecx
test edx, edx
je 0x10052733
lea eax, [ecx + 1]
push ebx
add eax, esi
push edx
add eax, ebx
push ecx
mov dword [edi + 0x94], eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [edi + 0x90]
push esi
push dword [ebp - 0x14]
inc eax
add eax, ebx
push eax
call sub.MSVCR120.dll_memcpy
mov esi, dword [ebp - 8]
push ebx
push esi
push dword [edi + 0x94]
call sub.MSVCR120.dll_memcpy
mov ecx, dword [edi + 0x94]
mov eax, dword [str._journal]
push ebx
push esi
mov dword [ecx + ebx], eax
mov eax, dword [0x10098fc8]
mov dword [ecx + ebx + 4], eax
mov eax, dword [edi + 0x94]
add eax, 9
add eax, ebx
push eax
mov dword [edi + 0xb0], eax
call sub.MSVCR120.dll_memcpy
mov eax, dword [edi + 0xb0]
push esi
mov dword [ebx + eax], 0x6c61772d
call sym.YJK_SQL.dll_sqlite3_free
add esp, 0x34
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
mov dword [edi], ecx
mov dword [edi + 0x78], ebx
test eax, eax
je 0x100527a7
cmp byte [eax], 0
je 0x100527a7
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
mov eax, dword [ecx + 0x18]
and ebx, 0x87f3f
push ebx
push dword [edi + 0x3c]
push dword [edi + 0x90]
push ecx
call eax
mov ebx, dword [ebp + 8]
mov ecx, eax
add esp, 0x14
mov dword [ebp - 4], ecx
and ebx, 1
test ecx, ecx
jne 0x100528d2
test ebx, ebx
jne 0x100527c1
push edi
call fcn.1003c130
mov eax, dword [edi + 0x7c]
add esp, 4
cmp eax, 0x400
jbe 0x100527c1
mov ecx, 0x2000
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x100527c1
mov eax, 1
mov word [edi + 0xf], 0x401
and ebx, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], 0
jne 0x100528d2
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.10052e40
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x100528d2
mov eax, dword [ebp + 0x14]
mov esi, dword [edi + 0xa8]
add eax, 7
push 0x30
and eax, 0xfffffff8
push 0
push esi
mov dword [ebp + 8], eax
call sub.MSVCR120.dll_memset
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
xor eax, eax
test edx, edx
mov dword [ebp + 8], 0x10034130
mov dword [esi + 0x18], ecx
sete al
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], eax
xor eax, eax
test edx, edx
mov dword [esi + 0x10], 0x64
cmove eax, dword [ebp + 8]
cmp dword [ebp - 0x24], 0
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov byte [edi + 6], al
je 0x10052846
test ebx, ebx
je 0x10052846
mov eax, 1
jmp 0x10052848
xor eax, eax
mov edx, dword [ebp - 0x1c]
test dl, dl
mov byte [edi + 7], al
mov eax, dword [ebp - 0xc]
mov byte [edi + 0xe], al
sete al
test dl, dl
mov byte [edi + 9], al
push edi
setne al
mov dword [edi + 0x84], 0x3fffffff
dec al
mov byte [edi + 0xc], dl
and al, 2
mov byte [edi + 4], dl
mov byte [edi + 0x11], dl
mov byte [edi + 0xd], bl
mov byte [edi + 8], dl
mov byte [edi + 0xb], al
mov byte [edi + 0xa], al
mov word [edi + 0x74], cx
mov dword [edi + 0x88], 0xffffffff
mov dword [edi + 0x8c], 0xffffffff
call fcn.1003c130
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x100528b1
mov byte [edi + 5], 2
jmp 0x100528bb
cmp dword [ebp - 0xc], 0
je 0x100528bb
mov byte [edi + 5], 4
mov eax, dword [ebp + 0x20]
mov dword [edi + 0xa0], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x3c]
mov eax, dword [esi]
test eax, eax
je 0x100528ea
mov eax, dword [eax + 4]
push esi
call eax
add esp, 4
mov dword [esi], 0
push edi
call sym.YJK_SQL.dll_sqlite3_free
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
call sym.YJK_SQL.dll_sqlite3_free
add esp, 4
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret