Function at 0x571cbd
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x34
mov eax, 0x58d624
call fcn.00532159
mov esi, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x14], 8
jb 0x571ce3
mov eax, dword [esi]
jmp 0x571ce5
mov eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x571cf7
mov eax, dword [esi]
jmp 0x571cf9
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x571d83
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5c62a4
call fcn.004036e4
sub esp, 0x18
xor ebx, ebx
inc ebx
mov ecx, esp
mov byte [ebp - 4], bl
mov dword [ebp - 0x38], esp
push 0x5c5ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.downloadFile
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.dl_folder_does_not_exist
call fcn.004036e4
mov cl, bl
mov byte [ebp - 4], 0
call fcn.00571fff
add esp, 0x60
mov ecx, edi
push 0x5c5ffc
call fcn.004035e2
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.00403a36
mov eax, edi
jmp 0x571fc3
xor ebx, ebx
inc ebx
mov edi, ebx
cmp dword [esi + 0x18], ebx
jl 0x571ebf
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00404e0d
push str..exe
mov byte [ebp - 4], 4
call fcn.004035bb
pop ecx
push eax
push str..exe
lea ecx, [ebp - 0x28]
call fcn.004040a2
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.00402961
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str..exe
call fcn.004035e2
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.00579c53
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402961
mov ecx, esi
call fcn.00571a18
test eax, eax
je 0x571eb0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.00402961
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push str..exe
call fcn.004035e2
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.00579c53
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402961
mov ecx, esi
call fcn.005713e7
test eax, eax
je 0x571eb0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.00402961
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
push str..exe
call fcn.004035e2
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.00579c53
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402961
call fcn.00571a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push ebx
test eax, eax
je 0x571eba
inc edi
call fcn.00403a36
cmp edi, dword [esi + 0x18]
jle 0x571d91
jmp 0x571ebf
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
push ebx
call fcn.00403a36
cmp edi, dword [esi + 0x18]
jle 0x571fa9
sub esp, 0x18
cmp byte [ebp + 0x24], 0
mov ecx, esp
je 0x571f39
mov dword [ebp - 0x2c], esp
push 0x5c62a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x5c5ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.downloadFile
call fcn.004036e4
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
lea edx, [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
cmovae edx, dword [ebp + 0xc]
sub esp, 0x18
lea eax, [ecx + eax*2]
mov ecx, esp
push ecx
push eax
push edx
call fcn.00404b52
mov cl, bl
jmp 0x571f9d
mov dword [ebp - 0x3c], esp
push 0x5c62a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5c5ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.downloadFile
call fcn.004036e4
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
lea edx, [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
cmovae edx, dword [ebp + 0xc]
sub esp, 0x18
lea eax, [ecx + eax*2]
mov ecx, esp
push ecx
push eax
push edx
call fcn.00404b52
xor cl, cl
mov byte [ebp - 4], 0
call fcn.00571fff
add esp, 0x60
mov ecx, dword [ebp - 0x34]
lea eax, [esi + 0x1c]
push eax
call fcn.00402961
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.00403a36
mov eax, dword [ebp - 0x34]
call fcn.00532103
ret 0x20