Function at 0x427960
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 0x57ced9
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x5e9db0]
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 0x427ff0
test eax, eax
je 0x427ff0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x454]
call fcn.00401d50
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 0x427a0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x427a96
push str._GetTempPath___does_not_exist
lea ecx, [ebp - 0x460]
call fcn.00401d50
push eax
lea ecx, [ebp - 0x454]
push esi
mov ebx, 4
push ecx
mov dword [ebp - 4], ebx
call fcn.0041ba90
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00405080
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 0x427a6d
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 0x427a96
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 0x5b3638
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x45c], eax
test eax, eax
jne 0x427bca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0056db4e
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x448]
call fcn.0041b810
mov edi, eax
push str._GetTempFileName_failed:
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 6
call fcn.00401d50
push eax
lea eax, [ebp - 0x454]
push esi
push eax
mov byte [ebp - 4], 7
call fcn.0041ba90
push edi
push eax
lea ecx, [ebp - 0x460]
mov bl, 8
push ecx
mov byte [ebp - 4], bl
call fcn.0041ba90
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00405080
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 0x427b55
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 0x427b7b
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 0x427ba1
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 0x427bca
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.00401d50
push str..exe
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xa
call fcn.00401d50
push eax
lea edx, [ebp - 0x458]
push edx
lea eax, [ebp - 0x448]
mov bl, 0xb
push eax
mov byte [ebp - 4], bl
call fcn.0041ba90
add esp, 0xc
push eax
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 0xc
call fcn.00405080
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 0x427c44
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 0x427c6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5afbc8
push 0x5b2f18
lea ecx, [ebp - 0x458]
call fcn.00404a70
cmp dword [ebp - 0x45c], 0
je 0x427fde
push 0x5b01f4
lea ecx, [ebp - 0x45c]
call fcn.00401d50
push eax
push 0
push 0
lea ecx, [ebp - 0x484]
push ecx
mov byte [ebp - 4], 0xd
call fcn.00421a60
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 0x427cd7
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 0x427e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.0056db4e
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x460]
call fcn.0041b810
mov edi, eax
push str._URLDownloadToFile_failed:
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x10
call fcn.00401d50
push eax
lea ecx, [ebp - 0x448]
push esi
push ecx
mov byte [ebp - 4], 0x11
call fcn.0041ba90
push edi
push eax
lea edx, [ebp - 0x44c]
mov bl, 0x12
push edx
mov byte [ebp - 4], bl
call fcn.0041ba90
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.00405080
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 0x427d99
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 0x427dbf
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 0x427de5
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 0x427e0b
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 0x427e64
push str._E_OUTOFMEMORY
lea ecx, [ebp - 0x448]
call fcn.00401d50
push eax
lea ecx, [ebp - 0x44c]
push esi
push ecx
mov byte [ebp - 4], 0x14
call fcn.0041ba90
add esp, 0xc
mov byte [ebp - 4], 0x15
push eax
mov ecx, esi
call fcn.00405080
lea ecx, [ebp - 0x44c]
call fcn.00401e10
lea ecx, [ebp - 0x448]
call fcn.00401e10
jmp 0x427fb8
cmp eax, 0x800c0008
jne 0x427fb8
push str._INET_E_DOWNLOAD_FAILURE
lea ecx, [ebp - 0x448]
call fcn.00401d50
push eax
lea edx, [ebp - 0x44c]
push esi
push edx
mov byte [ebp - 4], 0x16
call fcn.0041ba90
add esp, 0xc
mov byte [ebp - 4], 0x17
jmp 0x427e41
cmp byte [ebp - 0x46c], 0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x427f3c
mov bl, 0x18
nop
push 0x64
call edi
push 0x5b250c
lea ecx, [ebp - 0x448]
call fcn.00401d50
push eax
lea eax, [ebp - 0x44c]
push esi
push eax
mov byte [ebp - 4], bl
call fcn.0041ba90
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 0x19
call fcn.00405080
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 0x427f09
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 0x427f2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x46c], 0
je 0x427eb0
push 0x2bc
call edi
lea ecx, [ebp - 0x458]
call fcn.00426dc0
test al, al
je 0x427f5b
mov byte [ebp - 0x441], 1
jmp 0x427fa6
push str._file_doesnt_exist
lea ecx, [ebp - 0x468]
call fcn.00401d50
push eax
lea ecx, [ebp - 0x44c]
push esi
push ecx
mov byte [ebp - 4], 0x1a
call fcn.0041ba90
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1b
call fcn.00405080
lea ecx, [ebp - 0x44c]
call fcn.00401e10
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0xf
call fcn.00401e10
mov ecx, dword [ebp - 0x464]
lea edx, [ebp - 0x458]
push edx
call fcn.00405080
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 0x427fde
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 0x4280df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0056db4e
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x450]
call fcn.0041b810
mov edi, eax
push str._GetTempPath___failed:
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 0
call fcn.00401d50
push eax
lea eax, [ebp - 0x45c]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.0041ba90
push edi
push eax
lea ecx, [ebp - 0x464]
mov bl, 2
push ecx
mov byte [ebp - 4], bl
call fcn.0041ba90
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00405080
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 0x428086
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 0x4280ac
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 0x4280d2
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 0x4280fb
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.0054f72c
mov esp, ebp
pop ebp
ret 4