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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58da62
mov eax, dword fs:[0]
push eax
mov eax, 0x26b4c
call fcn.004a04d0
mov eax, dword [0x5f44b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26b48], ecx
mov dword [ebp - 0x26b44], 0
mov dword [ebp - 4], 2
mov word [ebp - 0x424], 0
push 0x206
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0x93c], 0
push 0x206
push 0
lea ecx, [ebp - 0x93a]
push ecx
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.0049e690
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea ecx, [ebp - 0x93c]
push ecx
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x93c]
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.0049eb52
add esp, 8
lea ecx, [ebp + 0x28]
call fcn.00401670
push eax
lea edx, [ebp - 0x424]
push edx
call fcn.0049eb28
add esp, 8
lea eax, [ebp - 0x424]
push eax
call fcn.00421b70
add esp, 4
lea ecx, [ebp - 0x93c]
push ecx
lea ecx, [ebp - 0xc70]
call fcn.00401600
mov byte [ebp - 4], 3
lea edx, [ebp + 0x28]
push edx
lea ecx, [ebp - 0xc70]
call fcn.00404020
mov dword [ebp - 0x730], 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x26ad0]
push ecx
call fcn.00422880
add esp, 8
mov dword [ebp - 0x26b4c], eax
mov edx, dword [ebp - 0x26b4c]
mov dword [ebp - 0x26b50], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x26b50]
call fcn.00403650
push eax
lea eax, [ebp - 0x72c]
push eax
call fcn.0049ea30
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x26ad0]
call fcn.004015d0
lea ecx, [ebp - 0x93c]
push ecx
lea ecx, [ebp - 0x26aec]
call fcn.00401600
mov byte [ebp - 4], 5
lea edx, [ebp - 0x26aec]
push edx
lea eax, [ebp - 0x26b08]
push eax
call fcn.00422880
add esp, 8
mov dword [ebp - 0x26b54], eax
mov ecx, dword [ebp - 0x26b54]
mov dword [ebp - 0x26b58], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x26b58]
call fcn.00403650
push eax
lea edx, [ebp - 0x52c]
push edx
call fcn.0049ea30
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x26b08]
call fcn.004015d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x26aec]
call fcn.00401640
lea ecx, [ebp - 0x26aa4]
call fcn.00479350
mov byte [ebp - 4], 7
sub esp, 0x300
mov ecx, 0xc0
lea esi, [ebp - 0x72c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x26aa4]
call fcn.00479640
lea ecx, [ebp - 0x26aa4]
call fcn.00479c90
lea ecx, [ebp - 0xc54]
call fcn.004788a0
fldz
fstp qword [ebp - 0x26aac]
mov eax, 1
test eax, eax
je 0x477f36
lea ecx, [ebp - 0x26aa4]
call fcn.004793e0
test eax, eax
je 0x477f05
lea ecx, [ebp - 0xc54]
push ecx
lea ecx, [ebp - 0x26aa4]
call fcn.00479fd0
fld qword [ebp - 0x944]
fstp qword [ebp - 0x26aac]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x26aa4]
call fcn.00479400
test eax, eax
je 0x477f34
lea edx, [ebp - 0xc54]
push edx
lea ecx, [ebp - 0x26aa4]
call fcn.00479fd0
fld qword [ebp - 0x944]
fstp qword [ebp - 0x26aac]
jmp 0x477f36
jmp 0x477ec7
mov dword [ebp - 0x428], 1
fld qword [ebp - 0x94c]
fcomp qword [ebp - 0x26aac]
fnstsw ax
test ah, 0x44
jp 0x477f62
fldz
fcomp qword [ebp - 0x26aac]
fnstsw ax
test ah, 0x44
jp 0x477fa4
mov dword [ebp - 0x428], 0
fldz
fcomp qword [ebp - 0x26aac]
fnstsw ax
test ah, 0x44
jnp 0x477fa2
fld qword [0x59b4f8]
fcomp qword [ebp - 0x94c]
fnstsw ax
test ah, 0x44
jp 0x477fa2
mov dword [ebp - 0x428], 1
mov dword [ebp - 0x730], 1
jmp 0x477fae
mov dword [ebp - 0x730], 1
cmp dword [ebp - 0x730], 0
jne 0x478047
lea ecx, [ebp - 0x26ab4]
call fcn.004013e0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x93c]
push eax
lea ecx, [ebp - 0x26b24]
call fcn.00401600
mov byte [ebp - 4], 9
lea ecx, [ebp + 0xc]
call fcn.00401670
push eax
lea ecx, [ebp - 0x26b40]
call fcn.00401600
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x26b24]
push ecx
lea edx, [ebp - 0x26b40]
push edx
lea ecx, [ebp - 0x26ab4]
call fcn.00401480
movzx eax, al
mov dword [ebp - 0x730], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x26b40]
call fcn.00401640
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x26b24]
call fcn.00401640
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x26ab4]
call fcn.00401470
cmp dword [ebp - 0x730], 0
jne 0x478076
push 0
push 0
lea ecx, [ebp - 0xc70]
call fcn.00401670
push eax
lea ecx, [ebp + 0xc]
call fcn.00401670
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [ebp - 0x730], eax
lea ecx, [ebp - 0xc70]
call fcn.00401670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4780e3
push 0x59b4e0
mov ecx, dword [ebp + 8]
call fcn.00401600
mov ecx, dword [ebp - 0x26b44]
or ecx, 1
mov dword [ebp - 0x26b44], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x26aa4]
call fcn.004793d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc70]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.00401640
mov eax, dword [ebp + 8]
jmp 0x47813a
lea edx, [ebp - 0xc70]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403680
mov eax, dword [ebp - 0x26b44]
or eax, 1
mov dword [ebp - 0x26b44], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x26aa4]
call fcn.004793d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc70]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.00401640
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049e381
mov esp, ebp
pop ebp
ret 0x3c