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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [ebp - 0x48], edx
mov ebx, ecx
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 9], 0
jne 0x1003b560
mov edi, dword [ebx + 4]
cmp byte [edi + 0x11], 0
jne 0x1003b41d
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov ecx, edi
push 0
push 1
push eax
call fcn.1002aeb0
add esp, 0xc
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x1003b623
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov ecx, esi
and eax, 1
lea edx, [eax + eax*2 + 0xa]
call fcn.10029320
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x1003b3f5
test byte [ecx + 0x1c], 0x20
jne 0x1003b5c7
call fcn.10025e90
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
xor edi, edi
mov dword [ecx], eax
cmp byte [ebx + 9], 0
jne 0x1003b579
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edi + 8]
mov esi, edi
test eax, eax
jne 0x1003b62a
cmp byte [ebx + 9], 0
jne 0x1003b58e
mov dword [ebp - 0x34], 0
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x38]
push dword [eax + 0x34]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp byte [ebp - 0x34], 0
mov esi, eax
mov dword [ebp - 0x1c], eax
jne 0x1003b5b2
cmp esi, dword [edi + 0x30]
mov dword [ebp - 0x40], ebx
ja 0x1003b63d
mov eax, dword [0x101d2678]
mov dword [ebp - 0x34], eax
lea eax, [esi + 1]
mov ecx, esi
mov dword [ebp - 0x38], eax
cmp eax, 2
mov eax, 0
jb 0x1003b4b6
mov eax, 0xcccccccd
mov ebx, edi
mov esi, ecx
dec ecx
mul dword [edi + 0x28]
mov eax, ecx
mov edi, edx
xor edx, edx
shr edi, 2
inc edi
div edi
mov eax, dword [ebp - 0x34]
mov edi, ebx
sub ecx, edx
xor edx, edx
div dword [ebx + 0x24]
lea edx, [ecx + 1]
xor ebx, ebx
cmp edx, eax
sete bl
lea eax, [ebx + ecx + 2]
mov ecx, esi
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x40]
cmp esi, eax
je 0x1003b46f
mov eax, dword [ebp - 0x34]
xor edx, edx
div dword [edi + 0x24]
cmp ecx, eax
je 0x1003b46f
lea esi, [ecx + 1]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x38], edi
mov ecx, edi
mov dword [ebp - 0x1c], esi
push 1
mov dword [ebp - 0x34], esi
push esi
push eax
call fcn.1002aeb0
add esp, 0xc
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x1003b665
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
lea eax, [esi - 1]
cmp eax, ecx
jne 0x1003b66c
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
lea edi, [ebp - 0x20]
push edi
push 0
push 1
call fcn.1002c340
add esp, 0xc
mov edi, dword [edi]
test edi, edi
jne 0x1003b54c
mov ecx, ebx
mov edx, 4
push dword [ebp - 0x34]
call fcn.10008550
add esp, 4
test eax, eax
mov dword [ebp - 0x20], eax
je 0x1003b3ce
mov edi, eax
test esi, esi
je 0x1003b558
mov ecx, dword [esi + 0x48]
call fcn.10025e10
mov ebx, dword [ebp - 0x40]
jmp 0x1003b3ff
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x1003b3a2
mov ecx, ebx
call fcn.10028170
jmp 0x1003b3a2
dec dword [ebx + 0xc]
jne 0x1003b409
mov ecx, ebx
call fcn.10028200
jmp 0x1003b409
inc dword [ebx + 0xc]
mov al, 1
cmp byte [ebx + 0xa], 0
mov dword [ebp - 0x34], eax
jne 0x1003b43b
mov ecx, ebx
call fcn.10028170
mov al, byte [ebx + 9]
mov dword [ebp - 0x34], eax
jmp 0x1003b43b
dec dword [ebx + 0xc]
jne 0x1003b45b
mov ecx, ebx
call fcn.10028200
jmp 0x1003b45b
mov dword [ebp - 0x40], ebx
mov ebx, dword [ecx + 0x14]
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x88], ecx
mov edx, dword [ebx + 0x98]
mov eax, dword [ecx + 0x18]
mov ebx, dword [ebx + 0x3c]
mov esi, edx
dec eax
sar esi, 0x1f
imul esi, eax
mul edx
mov edi, edx
mov edx, dword [ecx + 4]
mov ecx, dword [ebx]
mov dword [ebp - 0x34], eax
add edi, esi
mov ecx, dword [ecx + 0x48]
mov dword [ebp - 0x38], edx
call dword [section..00cfg]
push dword [ebp - 0x38]
push edi
push dword [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x40]
call ecx
add esp, 0x10
jmp 0x1003b3f5
mov edi, eax
jmp 0x1003b3ff
and byte [eax + 1], 0xfb
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1003b62a
mov esi, dword [ebx + 4]
jmp 0x1003b42a
push 0x101b128f
push 0x1208d
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 0x1003b558
mov edi, eax
jmp 0x1003b558
mov eax, ecx
mov eax, dword [ebp - 0x38]
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x30], 0
mov ebx, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1003b6db
xor edx, edx
push 0
call fcn.1002a340
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], edi
test eax, eax
je 0x1003b6a5
mov ecx, dword [eax + 0x48]
call fcn.10025e10
test edi, edi
jne 0x1003b558
mov eax, dword [ebp - 0x38]
mov edi, dword [eax]
mov ecx, dword [edi + 0xcc]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x34]
push edi
call ecx
add esp, 0x10
test eax, eax
je 0x1003b6df
mov edi, eax
mov dword [ebp - 0x20], eax
jmp 0x1003b558
xor edi, edi
jmp 0x1003b693
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ecx + 4]
dec ecx
cmp ecx, ebx
je 0x1003b717
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x34]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x48], eax
xor eax, eax
test ebx, ebx
mov ecx, 0x64
cmovne ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x34], eax
mov dword [edx + 4], edi
mov byte [edx + 9], cl
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
lea edi, [ebp - 0x29]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.1002ad40
add esp, 8
mov edi, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x29]
mov al, byte [eax]
mov ecx, eax
dec cl
cmp cl, 1
ja 0x1003b780
mov edi, 0xb
push 0x101b128f
push 0x120bd
push str.database_corruption
push str._s_at_line__d_of___.10s_
push edi
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x3c], 0
je 0x1003b558
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x48]
jmp 0x1003b553
test edi, edi
jne 0x1003b76b
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
movzx eax, al
push 0
push esi
push dword [ebp - 0x30]
push eax
call fcn.1002bc50
add esp, 0x10
cmp dword [ebp - 0x3c], 0
mov edi, eax
mov dword [ebp - 0x20], eax
je 0x1003b7b2
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x48]
call fcn.10025e10
test edi, edi
jne 0x1003b558
mov eax, dword [ebp - 0x38]
mov esi, dword [eax]
mov ecx, dword [esi + 0xcc]
call dword [section..00cfg]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
push esi
call ecx
add esp, 0x10
test eax, eax
jne 0x1003b6d1
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx + 8]
mov eax, dword [esi + 4]
dec eax
cmp eax, ebx
jne 0x1003b7f8
mov ecx, dword [esi + 0x48]
lea ebx, [esi + 0x48]
jmp 0x1003b81f
mov eax, dword [ecx + 4]
mov edi, dword [ebp - 0x34]
mov edx, 0x64
mov dword [esi + 0x38], eax
xor eax, eax
test ebx, ebx
mov ebx, dword [ebp - 0x38]
mov dword [esi + 0x48], ecx
cmovne edx, eax
mov dword [esi + 0x34], ebx
lea ebx, [esi + 0x48]
mov dword [esi + 4], edi
mov byte [esi + 9], dl
mov dword [ebp - 0x18], esi
call fcn.100087b0
test eax, eax
mov dword [ebp - 0x20], eax
je 0x1003b837
mov ecx, dword [ebx]
mov edi, eax
jmp 0x1003b553
mov ebx, dword [ebp - 0x40]
jmp 0x1003b511