Function at 0x409c70
Capabilities:
Check if file exists
Download url
Get file attributes
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412a51
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x41b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x41ba6c]
test eax, eax
jne 0x409ce5
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x4c], esi
push 0x600
push 0
push esi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov dword [ebp - 4], 0xffffffff
mov dword [0x41ba6c], eax
push dword [ebx + 0x18]
mov ecx, eax
call fcn.00402d50
test al, al
jne 0x409d83
mov esi, dword [ebx + 0x18]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x4c], esp
mov ecx, esi
mov dword [edx], 0
mov dword [edx + 0x10], 0
lea edi, [ecx + 1]
mov dword [edx + 0x14], 0xf
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d20
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.0040f0c0
mov dword [ebp - 4], 1
mov eax, dword [0x41ba6c]
test eax, eax
jne 0x409d75
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x600
push 0
push esi
mov byte [ebp - 4], 2
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov byte [ebp - 4], 1
mov dword [0x41ba6c], eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00402450
cmp byte [ebx + 8], 0
jne 0x409df5
mov edi, dword [0x41ba6c]
test edi, edi
jne 0x409dce
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x600
push edi
push esi
mov dword [ebp - 4], 3
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x41ba6c], edi
mov esi, dword [ebx + 0x14]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
push 0
push 0
push esi
push dword [ebp - 0x10]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov dword [edi + 0x50], eax
mov edx, dword [ebx + 0x14]
mov ecx, edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409e16
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.0040f0c0
mov dword [ebp - 4], 4
cmp dword [0x41ba6c], 0
jne 0x409e68
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x600
push 0
push esi
mov byte [ebp - 4], 5
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov dword [0x41ba6c], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 0x10
cmovae eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409ed9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x409ed9
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
jb 0x40a188
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409ebb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409eff
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
jb 0x409f0f
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409f05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409f05
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebx + 0x14]
mov ecx, edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409f30
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.0040f0c0
mov dword [ebp - 4], 6
cmp dword [0x41ba6c], 0
jne 0x409f86
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x600
push 0
push esi
mov byte [ebp - 4], 7
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov byte [ebp - 4], 6
mov dword [0x41ba6c], eax
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x34]
setae bl
cmovae edx, edi
test esi, esi
je 0x409ffc
lea eax, [esi - 1]
mov ecx, esi
cmp eax, esi
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x409fba
nop
cmp ecx, edx
je 0x409ffc
dec ecx
cmp byte [ecx], 0x5c
jne 0x409fb0
sub ecx, edx
cmp ecx, 0xffffffff
je 0x409ffc
mov edx, esi
mov dword [ebp - 0x2c], 0
sub edx, ecx
mov dword [ebp - 0x1c], 0
inc ecx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp esi, ecx
jb 0x40a19c
sub esi, ecx
lea eax, [ebp - 0x44]
cmp esi, edx
cmovb edx, esi
test bl, bl
push edx
cmovne eax, edi
add eax, ecx
push eax
jmp 0x40a01c
push 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push 0x41469c
lea ecx, [ebp - 0x2c]
call fcn.0040f0c0
mov byte [ebp - 4], 8
lea ebx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
call fcn.00404590
push 0
push 0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
call ebx
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410dda
add esp, 4
mov esi, eax
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0
call ebx
mov edi, dword [ebp - 0x48]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
mov dword [edi + 4], esi
cmp edx, 0x10
jb 0x40a0b2
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0f1
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x40a101
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a0f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
push dword [edi + 4]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00403d70
test eax, eax
jne 0x40a184
mov eax, dword [0x41ba6c]
test eax, eax
jne 0x40a161
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x600
push 0
push esi
mov dword [ebp - 4], 9
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov dword [ebp - 4], 0xffffffff
mov dword [0x41ba6c], eax
push dword [edi + 0x14]
push ecx
mov ecx, eax
call fcn.00402ae0
mov byte [edi + 8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [edi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040f250
int3