Function at 0x100056a8
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push 0x244
mov eax, 0x1003bc79
call fcn.1000ace4
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1f8]
xor ebx, ebx
mov dword [ebp - 0x24c], eax
push 0x10045a64
mov dword [ebp - 0x250], ebx
call fcn.10006709
mov dword [ebp - 4], ebx
mov dword [ebp - 0x16c], 0xf
mov dword [ebp - 0x170], ebx
mov byte [ebp - 0x180], bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
xor eax, eax
mov dword [ebp - 0x154], 7
mov edi, 0x10050aa0
mov dword [ebp - 0x158], ebx
push edi
mov word [ebp - 0x168], ax
call fcn.10006c7d
push str.Databasemain.cvd
lea edx, [ebp - 0x168]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1e0]
call fcn.100078e2
pop ecx
xor esi, esi
mov byte [ebp - 4], 4
push ebx
inc esi
lea ecx, [ebp - 0x168]
push esi
call fcn.10006b0c
cmp dword [ebp - 0x1cc], 8
lea eax, [ebp - 0x1e0]
cmovae eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100057d5
push edi
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x184], 7
mov dword [ebp - 0x188], ebx
mov word [ebp - 0x198], ax
call fcn.10006c7d
push str.Databasemain.cld
lea edx, [ebp - 0x198]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x210]
call fcn.100078e2
pop ecx
push eax
lea ecx, [ebp - 0x1e0]
call fcn.10006619
push ebx
push esi
lea ecx, [ebp - 0x210]
call fcn.10006b0c
push ebx
push esi
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 4
call fcn.10006b0c
cmp dword [ebp - 0x1cc], 8
lea eax, [ebp - 0x1e0]
push ebx
cmovae eax, dword [ebp - 0x1e0]
push 0x80
push 3
push ebx
push esi
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, 0xffffffff
je 0x100058d5
push 0
lea eax, [ebp - 0x248]
push eax
push 0x100
lea eax, [ebp - 0x150]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12d]
push 0x10046070
push eax
call fcn.10027de2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100058d5
push 0x100460d0
lea ecx, [ebp - 0x1b0]
call fcn.10006709
mov esi, eax
push edi
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 6
call fcn.10006709
push esi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x210]
call fcn.1000798d
pop ecx
mov esi, eax
lea eax, [ebp - 0x180]
xor edi, edi
cmp eax, esi
je 0x100058a5
push edi
push 1
mov ecx, eax
call fcn.10006e98
push esi
lea ecx, [ebp - 0x180]
call fcn.1000713e
push edi
push 1
lea ecx, [ebp - 0x210]
call fcn.10006e98
push edi
push 1
lea ecx, [ebp - 0x198]
call fcn.10006e98
push edi
push 1
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 4
call fcn.10006e98
jmp 0x100058d7
xor edi, edi
xor eax, eax
mov dword [ebp - 0x184], 7
mov esi, 0x10050aa0
mov dword [ebp - 0x188], edi
push esi
lea ecx, [ebp - 0x198]
mov word [ebp - 0x198], ax
call fcn.10006c7d
push str.Databasedaily.cld
lea edx, [ebp - 0x198]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c8]
call fcn.100078e2
pop ecx
push edi
push 1
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0xb
call fcn.10006b0c
cmp dword [ebp - 0x1b4], 8
lea eax, [ebp - 0x1c8]
cmovae eax, dword [ebp - 0x1c8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100059b7
push esi
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x154], 7
mov dword [ebp - 0x158], edi
mov word [ebp - 0x168], ax
call fcn.10006c7d
push str.Databasedaily.cvd
lea edx, [ebp - 0x168]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1b0]
call fcn.100078e2
pop ecx
push eax
lea ecx, [ebp - 0x1c8]
call fcn.10006619
push edi
push 1
lea ecx, [ebp - 0x1b0]
call fcn.10006b0c
push edi
push 1
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xb
call fcn.10006b0c
cmp dword [ebp - 0x1b4], 8
lea eax, [ebp - 0x1c8]
push edi
cmovae eax, dword [ebp - 0x1c8]
push 0x80
push 3
push edi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005b60
push edi
lea eax, [ebp - 0x248]
push eax
push 0x100
lea eax, [ebp - 0x150]
push eax
push esi
call ebx
lea eax, [ebp - 0x12d]
push 0x10046070
push eax
call fcn.10027de2
pop ecx
pop ecx
test eax, eax
je 0x10005a83
push eax
lea ecx, [ebp - 0x210]
call fcn.10006709
push eax
lea edx, [ebp - 0x180]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1b0]
call fcn.100079db
pop ecx
mov edi, eax
lea eax, [ebp - 0x180]
cmp eax, edi
je 0x10005a61
push 0
push 1
mov ecx, eax
call fcn.10006e98
push edi
lea ecx, [ebp - 0x180]
call fcn.1000713e
xor edi, edi
lea ecx, [ebp - 0x1b0]
push edi
push 1
call fcn.10006e98
push edi
push 1
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 0xb
call fcn.10006e98
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10005b59
push 0x40
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.10022700
add esp, 0xc
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x160]
sub eax, 0x7d0
push eax
movzx eax, word [ebp - 0x15a]
push eax
movzx eax, word [ebp - 0x15e]
push eax
push str._02d__02d__02d
lea eax, [ebp - 0x50]
push 0x40
push eax
call fcn.1000120d
add esp, 0x14
lea edx, [ebp - 0x180]
lea ecx, [ebp - 0x210]
call fcn.10007aa6
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0x1b0]
call fcn.10007a70
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x180]
cmp eax, edi
je 0x10005b37
push 0
push 1
mov ecx, eax
call fcn.10006e98
push edi
lea ecx, [ebp - 0x180]
call fcn.1000713e
xor edi, edi
lea ecx, [ebp - 0x1b0]
push edi
push 1
call fcn.10006e98
push edi
push 1
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 0xb
call fcn.10006e98
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x180]
push eax
lea edx, [ebp - 0x1f8]
lea ecx, [ebp - 0x1b0]
call fcn.10007a05
pop ecx
mov esi, eax
lea eax, [ebp - 0x1f8]
cmp eax, esi
je 0x10005b9b
push edi
push 1
mov ecx, eax
call fcn.10006e98
push esi
lea ecx, [ebp - 0x1f8]
call fcn.1000713e
push edi
push 1
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 0xb
call fcn.10006e98
cmp dword [ebp - 0x1e4], 0x10
lea edx, [ebp - 0x1f8]
mov ecx, dword [ebp - 0x24c]
cmovae edx, dword [ebp - 0x1f8]
call fcn.100016cb
push edi
push 1
lea ecx, [ebp - 0x1c8]
call fcn.10006b0c
push edi
push 1
lea ecx, [ebp - 0x1e0]
call fcn.10006b0c
push edi
push 1
lea ecx, [ebp - 0x180]
call fcn.10006e98
push edi
push 1
lea ecx, [ebp - 0x1f8]
call fcn.10006e98
mov eax, dword [ebp - 0x24c]
call fcn.1000ac9f
ret 4