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

Disassembly:
push 0x34
mov eax, 0x58b042
call fcn.00531c83
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 0x571555
mov eax, dword [esi]
jmp 0x571557
mov eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x571569
mov eax, dword [esi]
jmp 0x57156b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5715f5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5c2fd4
call fcn.004036c4
sub esp, 0x18
xor ebx, ebx
inc ebx
mov ecx, esp
mov byte [ebp - 4], bl
mov dword [ebp - 0x38], esp
push 0x5c2d2e
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.downloadFile
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.dl_folder_does_not_exist
call fcn.004036c4
mov cl, bl
mov byte [ebp - 4], 0
call fcn.00571871
add esp, 0x60
mov ecx, edi
push 0x5c2d2c
call fcn.004035c2
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.00403a16
mov eax, edi
jmp 0x571835
xor ebx, ebx
inc ebx
mov edi, ebx
cmp dword [esi + 0x18], ebx
jl 0x571731
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00404ded
push str..exe
mov byte [ebp - 4], 4
call fcn.0040359b
pop ecx
push eax
push str..exe
lea ecx, [ebp - 0x28]
call fcn.00404082
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.00402941
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str..exe
call fcn.004035c2
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.00578a39
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402941
mov ecx, esi
call fcn.00570c59
test eax, eax
je 0x571722
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.00402941
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push str..exe
call fcn.004035c2
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.00578a39
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402941
mov ecx, esi
call fcn.0057128a
test eax, eax
je 0x571722
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.00402941
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
push str..exe
call fcn.004035c2
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.00578a39
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402941
call fcn.00571272
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push ebx
test eax, eax
je 0x57172c
inc edi
call fcn.00403a16
cmp edi, dword [esi + 0x18]
jle 0x571603
jmp 0x571731
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
push ebx
call fcn.00403a16
cmp edi, dword [esi + 0x18]
jle 0x57181b
sub esp, 0x18
cmp byte [ebp + 0x24], 0
mov ecx, esp
je 0x5717ab
mov dword [ebp - 0x2c], esp
push 0x5c2fd4
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x5c2d2e
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.downloadFile
call fcn.004036c4
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.00404b32
mov cl, bl
jmp 0x57180f
mov dword [ebp - 0x3c], esp
push 0x5c2fd4
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5c2d2e
call fcn.004036c4
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.downloadFile
call fcn.004036c4
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.00404b32
xor cl, cl
mov byte [ebp - 4], 0
call fcn.00571871
add esp, 0x60
mov ecx, dword [ebp - 0x34]
lea eax, [esi + 0x1c]
push eax
call fcn.00402941
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.00403a16
mov eax, dword [ebp - 0x34]
call fcn.00531c2d
ret 0x20