Function at 0x10008430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100742d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x1bc], 0
push 0xff
push 0
lea eax, [ebp - 0x1bb]
push eax
call fcn.10040790
add esp, 0xc
mov dword [ebp - 0x50], 0
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x28]
mov byte [eax + edx + 0x414c], 0
push 0x100ad538
lea ecx, [ebp - 0x8c]
call fcn.1000d680
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
push str.Databasedaily.cld
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x74]
push eax
call fcn.1000c240
add esp, 0xc
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.100125f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x100084f9
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x100084ff
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10008581
push 0x100ad538
lea ecx, [ebp - 0xbc]
call fcn.1000d680
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 4
push str.Databasedaily.cvd
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0xa4]
push eax
call fcn.1000c240
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x74]
call fcn.1000de20
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0xa4]
call fcn.100125f0
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0xbc]
call fcn.100125f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x74]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x14], 8
jb 0x100085a6
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x100085ac
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
push 0
push 0x80
push 3
push 0
push 1
push connect
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [0x100ad888]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x10008635
push 0
lea edx, [ebp - 0x50]
push edx
push 0x100
lea eax, [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x100ad88c]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x199]
mov dword [ebp - 0x54], eax
push 0x10078270
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.10049ed8
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10008635
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
add eax, 0x414c
push eax
call fcn.10049cd0
add esp, 8
mov dword [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x74]
call fcn.100125f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret