Function at 0x427fc0
Capabilities:
Check if file exists
Download url
Get common file path
Get file attributes
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e309
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x238]
push edx
push 0x104
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x464], ecx
mov byte [ebp - 0x441], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x428650
test eax, eax
je 0x428650
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x454]
call fcn.00401d90
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x454]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42806b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4280f6
push str._GetTempPath___does_not_exist
lea ecx, [ebp - 0x460]
call fcn.00401d90
push eax
lea ecx, [ebp - 0x454]
push esi
mov ebx, 4
push ecx
mov dword [ebp - 4], ebx
call fcn.0041bac0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004050b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x454]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4280cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x460]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4280f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x440]
push ecx
push 0
push 0x5b4670
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x45c], eax
test eax, eax
jne 0x42822a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0056ee1a
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x448]
call fcn.0041b840
mov edi, eax
push str._GetTempFileName_failed:
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 6
call fcn.00401d90
push eax
lea eax, [ebp - 0x454]
push esi
push eax
mov byte [ebp - 4], 7
call fcn.0041bac0
push edi
push eax
lea ecx, [ebp - 0x460]
mov bl, 8
push ecx
mov byte [ebp - 4], bl
call fcn.0041bac0
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.004050b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x460]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4281b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x454]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4281db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428201
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42822a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x458]
call fcn.00401d90
push str..exe
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xa
call fcn.00401d90
push eax
lea edx, [ebp - 0x458]
push edx
lea eax, [ebp - 0x448]
mov bl, 0xb
push eax
mov byte [ebp - 4], bl
call fcn.0041bac0
add esp, 0xc
push eax
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 0xc
call fcn.004050b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4282a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4282ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5b0bc8
push 0x5b3f50
lea ecx, [ebp - 0x458]
call fcn.00404aa0
cmp dword [ebp - 0x45c], 0
je 0x42863e
push 0x5b11f4
lea ecx, [ebp - 0x45c]
call fcn.00401d90
push eax
push 0
push 0
lea ecx, [ebp - 0x484]
push ecx
mov byte [ebp - 4], 0xd
call fcn.004220b0
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x45c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x428337
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x458]
lea edx, [ebp - 0x484]
push edx
push 0
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [ebp - 0x454], eax
test eax, eax
je 0x4284fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.0056ee1a
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x460]
call fcn.0041b840
mov edi, eax
push str._URLDownloadToFile_failed:
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x10
call fcn.00401d90
push eax
lea ecx, [ebp - 0x448]
push esi
push ecx
mov byte [ebp - 4], 0x11
call fcn.0041bac0
push edi
push eax
lea edx, [ebp - 0x44c]
mov bl, 0x12
push edx
mov byte [ebp - 4], bl
call fcn.0041bac0
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.004050b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4283f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42841f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428445
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x460]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42846b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x454]
cmp eax, 0x8007000e
jne 0x4284c4
push str._E_OUTOFMEMORY
lea ecx, [ebp - 0x448]
call fcn.00401d90
push eax
lea ecx, [ebp - 0x44c]
push esi
push ecx
mov byte [ebp - 4], 0x14
call fcn.0041bac0
add esp, 0xc
mov byte [ebp - 4], 0x15
push eax
mov ecx, esi
call fcn.004050b0
lea ecx, [ebp - 0x44c]
call fcn.00401e50
lea ecx, [ebp - 0x448]
call fcn.00401e50
jmp 0x428618
cmp eax, 0x800c0008
jne 0x428618
push str._INET_E_DOWNLOAD_FAILURE
lea ecx, [ebp - 0x448]
call fcn.00401d90
push eax
lea edx, [ebp - 0x44c]
push esi
push edx
mov byte [ebp - 4], 0x16
call fcn.0041bac0
add esp, 0xc
mov byte [ebp - 4], 0x17
jmp 0x4284a1
cmp byte [ebp - 0x46c], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x42859c
mov bl, 0x18
nop
push 0x64
call edi
push 0x5b350c
lea ecx, [ebp - 0x448]
call fcn.00401d90
push eax
lea eax, [ebp - 0x44c]
push esi
push eax
mov byte [ebp - 4], bl
call fcn.0041bac0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 0x19
call fcn.004050b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428569
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42858f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x46c], 0
je 0x428510
push 0x2bc
call edi
lea ecx, [ebp - 0x458]
call fcn.00427420
test al, al
je 0x4285bb
mov byte [ebp - 0x441], 1
jmp 0x428606
push str._file_doesnt_exist
lea ecx, [ebp - 0x468]
call fcn.00401d90
push eax
lea ecx, [ebp - 0x44c]
push esi
push ecx
mov byte [ebp - 4], 0x1a
call fcn.0041bac0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1b
call fcn.004050b0
lea ecx, [ebp - 0x44c]
call fcn.00401e50
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0xf
call fcn.00401e50
mov ecx, dword [ebp - 0x464]
lea edx, [ebp - 0x458]
push edx
call fcn.004050b0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42863e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x458]
jmp 0x42873f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0056ee1a
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x450]
call fcn.0041b840
mov edi, eax
push str._GetTempPath___failed:
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 0
call fcn.00401d90
push eax
lea eax, [ebp - 0x45c]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.0041bac0
push edi
push eax
lea ecx, [ebp - 0x464]
mov bl, 2
push ecx
mov byte [ebp - 4], bl
call fcn.0041bac0
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004050b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x464]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4286e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x45c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42870c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428732
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42875b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x441]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret 4