Function at 0x1003e4b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b3a9
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x368], 0
lea ecx, [ebp - 0x2dc]
call fcn.10018b40
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.100203c0
movzx eax, al
test eax, eax
je 0x1003e549
push str.url_group_empty
call fcn.10050c4d
add esp, 4
lea ecx, [ebp - 0x2dc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10017c30
mov edx, dword [ebp - 0x368]
or edx, 1
mov dword [ebp - 0x368], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2dc]
call fcn.10017c10
mov eax, dword [ebp + 8]
jmp 0x1003e853
lea eax, [ebp - 0x314]
push eax
call fcn.1003e330
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x314]
call fcn.10002760
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003e5c4
push str.Db_INVALID_FILE_ATTRIBUTES
call fcn.10050c4d
add esp, 4
lea ecx, [ebp - 0x2dc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10017c30
mov edx, dword [ebp - 0x368]
or edx, 1
mov dword [ebp - 0x368], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x314]
call fcn.10002740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2dc]
call fcn.10017c10
mov eax, dword [ebp + 8]
jmp 0x1003e853
lea ecx, [ebp - 0x2bc]
call fcn.1003da40
mov byte [ebp - 4], 3
push 0
push str.D8E178B337E40A3CAD6BC04DB82CDB3E
lea ecx, [ebp - 0x314]
call fcn.10002760
push eax
lea ecx, [ebp - 0x2bc]
call fcn.1003da90
movzx eax, al
test eax, eax
jne 0x1003e658
push str.open_db_file_err
call fcn.10050c4d
add esp, 4
lea ecx, [ebp - 0x2dc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10017c30
mov edx, dword [ebp - 0x368]
or edx, 1
mov dword [ebp - 0x368], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2bc]
call fcn.1003da70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x314]
call fcn.10002740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2dc]
call fcn.10017c10
mov eax, dword [ebp + 8]
jmp 0x1003e853
lea ecx, [ebp - 0x2f8]
call fcn.10002560
mov byte [ebp - 4], 4
lea eax, [ebp - 0x31c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10026550
jmp 0x1003e68c
push 0
lea ecx, [ebp - 0x324]
push ecx
lea ecx, [ebp - 0x31c]
call fcn.10018e70
lea edx, [ebp - 0x32c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10034dc0
push eax
lea ecx, [ebp - 0x31c]
call fcn.10035040
movzx eax, al
test eax, eax
je 0x1003e795
lea ecx, [ebp - 0x2f8]
call fcn.10002670
movzx ecx, al
test ecx, ecx
je 0x1003e723
lea ecx, [ebp - 0x31c]
call fcn.10026580
mov ecx, eax
call fcn.10002650
push eax
push str.select__host_from_t_websites_where__type_hs
lea esi, [ebp - 0x348]
call fcn.100407be
add esp, 8
mov dword [ebp - 0x36c], eax
mov edx, dword [ebp - 0x36c]
mov dword [ebp - 0x370], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x370]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.10002630
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x348]
call fcn.10002610
jmp 0x1003e790
push str._or
lea ecx, [ebp - 0x2f8]
call fcn.10020340
lea ecx, [ebp - 0x31c]
call fcn.10026580
mov ecx, eax
call fcn.10002650
push eax
push str._type_hs
lea esi, [ebp - 0x364]
call fcn.100407be
add esp, 8
mov dword [ebp - 0x374], eax
mov ecx, dword [ebp - 0x374]
mov dword [ebp - 0x378], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x378]
push edx
lea ecx, [ebp - 0x2f8]
call fcn.10020320
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x364]
call fcn.10002610
jmp 0x1003e678
lea ecx, [ebp - 0x2c]
call fcn.10002560
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x2dc]
push ecx
push 0x1003e870
lea ecx, [ebp - 0x2f8]
call fcn.10002650
push eax
lea ecx, [ebp - 0x2bc]
call fcn.1003dd30
lea ecx, [ebp - 0x2c]
call fcn.10002650
push eax
lea ecx, [ebp - 0x2dc]
call fcn.10018c00
push eax
push str.select_result:_d__err:_hs
call fcn.10050c4d
add esp, 0xc
lea edx, [ebp - 0x2dc]
push edx
mov ecx, dword [ebp + 8]
call fcn.10017c30
mov eax, dword [ebp - 0x368]
or eax, 1
mov dword [ebp - 0x368], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.10002610
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2f8]
call fcn.10002610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2bc]
call fcn.1003da70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x314]
call fcn.10002740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2dc]
call fcn.10017c10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052989
mov esp, ebp
pop ebp
ret