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

Disassembly:
push 0x34
mov eax, 0x58cfb3
call fcn.00532017
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 0x571ba3
mov eax, dword [esi]
jmp 0x571ba5
mov eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x571bb7
mov eax, dword [esi]
jmp 0x571bb9
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x571c43
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5c52a4
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 0x5c4ffe
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.00571ebf
add esp, 0x60
mov ecx, edi
push 0x5c4ffc
call fcn.004035e2
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.00403a36
mov eax, edi
jmp 0x571e83
xor ebx, ebx
inc ebx
mov edi, ebx
cmp dword [esi + 0x18], ebx
jl 0x571d7f
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.00579960
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402961
mov ecx, esi
call fcn.005718d8
test eax, eax
je 0x571d70
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.00579960
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402961
mov ecx, esi
call fcn.005712a7
test eax, eax
je 0x571d70
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.00579960
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402961
call fcn.005718c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push ebx
test eax, eax
je 0x571d7a
inc edi
call fcn.00403a36
cmp edi, dword [esi + 0x18]
jle 0x571c51
jmp 0x571d7f
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
push ebx
call fcn.00403a36
cmp edi, dword [esi + 0x18]
jle 0x571e69
sub esp, 0x18
cmp byte [ebp + 0x24], 0
mov ecx, esp
je 0x571df9
mov dword [ebp - 0x2c], esp
push 0x5c52a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x5c4ffe
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 0x571e5d
mov dword [ebp - 0x3c], esp
push 0x5c52a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5c4ffe
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.00571ebf
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.00531fc1
ret 0x20