Function at 0x10005e70
Capabilities:
Check if file exists
Create directory
Delete file
Download url
Get file size
Read file on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f1a0
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x101694f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x18]
call fcn.100045c0
mov dword [ebp - 4], 0
mov ax, word [0x1014abac]
mov word [ebp - 0x38], ax
mov cl, byte [0x1014abae]
mov byte [ebp - 0x36], cl
mov dword [ebp - 0x10], 0
push 0x1014abb0
lea ecx, [ebp - 0x24]
call fcn.10003940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.100045c0
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 1
cmp dword [0x1016ab18], 0
jne 0x10005f47
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10004630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.10004630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10004630
mov eax, dword [ebp - 0x3c]
jmp 0x10006365
mov ecx, 0x101725d8
call fcn.10002960
test eax, eax
je 0x10005f5f
mov ecx, 0x101725d8
call fcn.10006a50
lea edx, [ebp - 0x44]
push edx
call fcn.100058b0
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 3
push 0x1014abb4
mov ecx, dword [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.10002c00
add esp, 0xc
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x84]
call fcn.10004490
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x3d], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.10004630
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10004630
movzx ecx, byte [ebp - 0x3d]
test ecx, ecx
je 0x10006055
lea edx, [ebp - 0x4c]
push edx
call fcn.100058b0
add esp, 4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 5
push 0x1014abc4
mov ecx, dword [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.10002c00
add esp, 0xc
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 6
push 0
mov ecx, dword [ebp - 0x94]
call fcn.10004490
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x50]
call fcn.10004630
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.10004630
cmp dword [0x1016ab20], 0
je 0x100060b2
lea ecx, [ebp - 0x54]
push ecx
call fcn.100058b0
add esp, 4
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 7
push str.message.txt
push 0x1014abec
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
push ecx
push 0x1014abfc
lea edx, [ebp - 0x24]
push edx
call fcn.10003d30
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.10004630
jmp 0x10006104
lea eax, [ebp - 0x58]
push eax
call fcn.100058b0
add esp, 4
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
mov byte [ebp - 4], 8
push str.message_en.txt
push 0x1014ac30
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx]
push eax
push str._s_s_s
lea ecx, [ebp - 0x24]
push ecx
call fcn.10003d30
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.10004630
lea ecx, [ebp - 0x24]
call fcn.10004490
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006126
lea ecx, [ebp - 0x24]
call fcn.10004490
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x5c]
push edx
call fcn.100059d0
add esp, 4
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10004530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.10004630
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.10004490
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004490
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x10006194
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100061ca
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10004630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.10004630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10004630
mov eax, dword [ebp - 0x60]
jmp 0x10006365
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x24]
call fcn.10004490
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100061f9
jmp 0x100062d9
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10006213
jmp 0x100062d9
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
call fcn.10006d1e
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
call fcn.100fd100
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000625e
jmp 0x100062d9
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.100fc338
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100062d2
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10004b10
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
push edx
push 0x1014ac54
lea eax, [ebp - 0x18]
push eax
call fcn.10003d30
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x101725d8
call fcn.10006a20
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.10006d29
add esp, 4
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x38]
push ecx
push 0
call fcn.100fc338
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x10006271
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x28], 0
je 0x100062f8
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.10006d29
add esp, 4
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x30], 0
je 0x10006317
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.10006d29
add esp, 4
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x20], 0xffffffff
je 0x1000632e
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0xffffffff
mov ecx, 0x101725d8
call fcn.10002960
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10004630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.10004630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10004630
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret