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

Disassembly:
push 0x50
mov eax, 0x561dd0
call fcn.00531cbc
mov esi, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x14], 8
jb 0x403b80
mov eax, dword [esi]
jmp 0x403b82
mov eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x403b94
mov eax, dword [esi]
jmp 0x403b96
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403c13
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x5a76f4
call fcn.00402387
sub esp, 0x18
xor ebx, ebx
inc ebx
mov ecx, esp
mov byte [ebp - 4], bl
mov dword [ebp - 0x3c], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.downloadFile
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.dl_folder_does_not_exist
call fcn.00402387
mov cl, bl
mov byte [ebp - 4], 0
call fcn.00405209
add esp, 0x60
mov ecx, edi
push 0x5a76b0
call fcn.00403499
jmp 0x403de0
xor ebx, ebx
inc ebx
mov eax, ebx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x18], ebx
jl 0x403d5c
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00405117
mov ecx, str..exe
mov byte [ebp - 4], 4
call fcn.00403479
push eax
push str..exe
lea ecx, [ebp - 0x2c]
call fcn.0040459f
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00402dfd
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str..exe
call fcn.00403499
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.0040c2da
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402dfd
mov ecx, esi
call fcn.00404255
test eax, eax
je 0x403d4a
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00402dfd
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push str..exe
call fcn.00403499
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.0040c2da
add esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402dfd
mov ecx, esi
call fcn.00403df5
test eax, eax
je 0x403d4a
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.00402dfd
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
push str..exe
call fcn.00403499
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call fcn.0040c2da
add esp, 0x30
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00402dfd
push 0
push ebx
lea ecx, [ebp - 0x5c]
call fcn.004034f0
inc dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
push 0
push ebx
mov byte [ebp - 4], 0
call fcn.004034f0
mov eax, dword [ebp - 0x30]
cmp eax, dword [esi + 0x18]
jle 0x403c24
jmp 0x403d5c
push 0
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004034f0
mov eax, dword [ebp - 0x30]
cmp eax, dword [esi + 0x18]
jle 0x403dd5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5a76f4
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x3c], esp
push str.downloadFile
call fcn.00402387
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 eax
push edx
call fcn.004047a5
mov cl, bl
mov byte [ebp - 4], 0
call fcn.00405209
add esp, 0x60
lea eax, [esi + 0x1c]
mov ecx, edi
push eax
call fcn.00402dfd
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.004034f0
mov eax, edi
call fcn.00531c6b
ret 0x1c