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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a774
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1004a258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
push 0x1003c3ce
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x1cc], 0xf
mov dword [ebp - 0x1d0], 0
mov byte [ebp - 0x1e0], 0
call fcn.100090c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1fc], 7
mov dword [ebp - 0x200], 0
mov word [ebp - 0x210], ax
cmp word [0x1006a688], ax
jne 0x10005638
xor ecx, ecx
jmp 0x1000564f
mov ecx, 0x1006a688
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005640
sub ecx, edx
sar ecx, 1
push ecx
push 0x1006a688
lea ecx, [ebp - 0x210]
call fcn.100092e0
push str.Databasemain.cvd
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x1b0]
push eax
mov byte [ebp - 4], 2
call fcn.100013b0
add esp, 0xc
cmp dword [ebp - 0x1fc], 8
mov byte [ebp - 4], 4
jb 0x1000569a
push dword [ebp - 0x210]
call fcn.1000c900
add esp, 4
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor eax, eax
cmp dword [ebp - 0x19c], 8
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x1b0]
cmovae eax, dword [ebp - 0x1b0]
push eax
mov dword [ebp - 0x1fc], 7
mov dword [ebp - 0x200], 0
call edi
test eax, eax
jne 0x100057a0
push 0x1006a688
lea ecx, [ebp - 0x180]
call fcn.10001ce0
push str.Databasemain.cld
push eax
lea eax, [ebp - 0x198]
push eax
mov byte [ebp - 4], 5
call fcn.100013b0
mov esi, eax
lea eax, [ebp - 0x1b0]
add esp, 0xc
cmp eax, esi
je 0x10005751
cmp dword [ebp - 0x19c], 8
jb 0x10005728
push dword [ebp - 0x1b0]
call fcn.1000c900
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x19c], 7
mov dword [ebp - 0x1a0], 0
mov word [ebp - 0x1b0], ax
call fcn.10007fa0
cmp dword [ebp - 0x184], 8
jb 0x10005768
push dword [ebp - 0x198]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x16c], 8
mov dword [ebp - 0x184], 7
mov dword [ebp - 0x188], 0
mov word [ebp - 0x198], ax
mov byte [ebp - 4], 4
jb 0x100057a0
push dword [ebp - 0x180]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x19c], 8
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp - 0x1b0]
cmovae eax, dword [ebp - 0x1b0]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000591f
push 0
lea eax, [ebp - 0x248]
push eax
push 0x100
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12d]
push 0x1003cae4
push eax
call fcn.1000d4f8
mov edi, eax
add esp, 8
test edi, edi
je 0x10005919
push 0x1003cb44
lea ecx, [ebp - 0x1f8]
call fcn.10001be0
mov esi, eax
push edi
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 6
call fcn.10001be0
push esi
push eax
lea eax, [ebp - 0x198]
push eax
mov byte [ebp - 4], 7
call fcn.10001070
mov esi, eax
lea eax, [ebp - 0x168]
add esp, 0xc
cmp eax, esi
je 0x1000589a
cmp dword [ebp - 0x154], 0x10
jb 0x10005873
push dword [ebp - 0x168]
call fcn.1000c900
add esp, 4
push esi
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
call fcn.10007f40
cmp dword [ebp - 0x184], 0x10
jb 0x100058b1
push dword [ebp - 0x198]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x16c], 0x10
mov dword [ebp - 0x184], 0xf
mov dword [ebp - 0x188], 0
mov byte [ebp - 0x198], 0
jb 0x100058e3
push dword [ebp - 0x180]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x1e4], 0x10
mov dword [ebp - 0x16c], 0xf
mov dword [ebp - 0x170], 0
mov byte [ebp - 0x180], 0
mov byte [ebp - 4], 4
jb 0x10005919
push dword [ebp - 0x1f8]
call fcn.1000c900
add esp, 4
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor eax, eax
mov dword [ebp - 0x184], 7
mov dword [ebp - 0x188], 0
mov word [ebp - 0x198], ax
cmp word [0x1006a688], ax
jne 0x10005949
xor ecx, ecx
jmp 0x10005960
mov ecx, 0x1006a688
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005951
sub ecx, edx
sar ecx, 1
push ecx
push 0x1006a688
lea ecx, [ebp - 0x198]
call fcn.100092e0
push str.Databasedaily.cld
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x1c8]
push eax
mov byte [ebp - 4], 8
call fcn.100013b0
add esp, 0xc
cmp dword [ebp - 0x184], 8
mov byte [ebp - 4], 0xa
jb 0x100059ab
push dword [ebp - 0x198]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1b4], 8
mov word [ebp - 0x198], ax
lea eax, [ebp - 0x1c8]
cmovae eax, dword [ebp - 0x1c8]
push eax
mov dword [ebp - 0x184], 7
mov dword [ebp - 0x188], 0
call edi
test eax, eax
jne 0x10005aab
push 0x1006a688
lea ecx, [ebp - 0x1f8]
call fcn.10001ce0
push str.Databasedaily.cvd
push eax
lea eax, [ebp - 0x180]
push eax
mov byte [ebp - 4], 0xb
call fcn.100013b0
mov esi, eax
lea eax, [ebp - 0x1c8]
add esp, 0xc
cmp eax, esi
je 0x10005a5c
cmp dword [ebp - 0x1b4], 8
jb 0x10005a33
push dword [ebp - 0x1c8]
call fcn.1000c900
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1b4], 7
mov dword [ebp - 0x1b8], 0
mov word [ebp - 0x1c8], ax
call fcn.10007fa0
cmp dword [ebp - 0x16c], 8
jb 0x10005a73
push dword [ebp - 0x180]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1e4], 8
mov dword [ebp - 0x16c], 7
mov dword [ebp - 0x170], 0
mov word [ebp - 0x180], ax
mov byte [ebp - 4], 0xa
jb 0x10005aab
push dword [ebp - 0x1f8]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x1b4], 8
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp - 0x1c8]
cmovae eax, dword [ebp - 0x1c8]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005d12
push 0
lea eax, [ebp - 0x248]
push eax
push 0x100
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x12d]
push 0x1003cae4
push eax
call fcn.1000d4f8
add esp, 8
test eax, eax
je 0x10005bd9
push eax
lea ecx, [ebp - 0x1f8]
call fcn.10001be0
push eax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x180]
push eax
mov byte [ebp - 4], 0xc
call fcn.10001180
mov edi, eax
lea eax, [ebp - 0x168]
add esp, 0xc
cmp eax, edi
je 0x10005b8c
cmp dword [ebp - 0x154], 0x10
jb 0x10005b65
push dword [ebp - 0x168]
call fcn.1000c900
add esp, 4
push edi
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
call fcn.10007f40
cmp dword [ebp - 0x16c], 0x10
jb 0x10005ba3
push dword [ebp - 0x180]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x1e4], 0x10
mov dword [ebp - 0x16c], 0xf
mov dword [ebp - 0x170], 0
mov byte [ebp - 0x180], 0
mov byte [ebp - 4], 0xa
jb 0x10005bd9
push dword [ebp - 0x1f8]
call fcn.1000c900
add esp, 4
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10005d0b
push 0x3f
lea eax, [ebp - 0x4f]
push 0
push eax
mov byte [ebp - 0x50], 0
call fcn.1000f6b0
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x208]
sub eax, 0x7d0
push eax
movzx eax, word [ebp - 0x202]
push eax
movzx eax, word [ebp - 0x206]
push eax
push str._02d__02d__02d
lea eax, [ebp - 0x50]
push 0x40
push eax
call fcn.10007e40
push 0x1003cb58
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.100012c0
lea ecx, [ebp - 0x50]
push ecx
push eax
lea eax, [ebp - 0x180]
push eax
mov byte [ebp - 4], 0xd
call fcn.100010e0
mov edi, eax
lea eax, [ebp - 0x168]
add esp, 0x30
cmp eax, edi
je 0x10005cbe
cmp dword [ebp - 0x154], 0x10
jb 0x10005c97
push dword [ebp - 0x168]
call fcn.1000c900
add esp, 4
push edi
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
call fcn.10007f40
cmp dword [ebp - 0x16c], 0x10
jb 0x10005cd5
push dword [ebp - 0x180]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x1e4], 0x10
mov dword [ebp - 0x16c], 0xf
mov dword [ebp - 0x170], 0
mov byte [ebp - 0x180], 0
mov byte [ebp - 4], 0xa
jb 0x10005d0b
push dword [ebp - 0x1f8]
call fcn.1000c900
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x1f8]
push eax
call fcn.10001200
mov esi, eax
lea eax, [ebp - 0x1e0]
add esp, 0xc
cmp eax, esi
je 0x10005d79
cmp dword [ebp - 0x1cc], 0x10
jb 0x10005d52
push dword [ebp - 0x1e0]
call fcn.1000c900
add esp, 4
push esi
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 0x1cc], 0xf
mov dword [ebp - 0x1d0], 0
mov byte [ebp - 0x1e0], 0
call fcn.10007f40
cmp dword [ebp - 0x1e4], 0x10
jb 0x10005d90
push dword [ebp - 0x1f8]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x1cc], 0x10
lea eax, [ebp - 0x1e0]
cmovae eax, dword [ebp - 0x1e0]
push eax
push ebx
call fcn.1000bbc0
add esp, 8
cmp dword [ebp - 0x1b4], 8
jb 0x10005dc5
push dword [ebp - 0x1c8]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x19c], 8
mov dword [ebp - 0x1b4], 7
mov dword [ebp - 0x1b8], 0
mov word [ebp - 0x1c8], ax
jb 0x10005df9
push dword [ebp - 0x1b0]
call fcn.1000c900
add esp, 4
xor eax, eax
cmp dword [ebp - 0x154], 0x10
mov dword [ebp - 0x19c], 7
mov dword [ebp - 0x1a0], 0
mov word [ebp - 0x1b0], ax
jb 0x10005e2d
push dword [ebp - 0x168]
call fcn.1000c900
add esp, 4
cmp dword [ebp - 0x1cc], 0x10
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], 0
mov byte [ebp - 0x168], 0
jb 0x10005e5f
push dword [ebp - 0x1e0]
call fcn.1000c900
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000eb31
mov esp, ebp
pop ebp
ret 4