Function at 0x477a00
Capabilities:
Check if file exists
Delete file
Move file
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b28a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov dword [ebp - 0x3c], 0
xor eax, eax
push esi
mov dword [ebp - 0x54], 0
push edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp byte [0x5cb184], 0
lea eax, [ebp - 0xb4]
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 1
je 0x477d0a
cmp dword [edi + 0x58], 0
jne 0x477b71
push 0
push eax
call fcn.00435de0
push eax
lea eax, [edi + 0x60]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x3c], 1
push eax
call fcn.00431890
add esp, 0x14
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 6
call fcn.00416700
mov ecx, dword [ebp - 0x5c]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 5
jb 0x478710
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push 5
cmovae eax, dword [ebp - 0x6c]
push str..part
push ecx
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x8c]
call fcn.00415670
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], 4
cmp edx, 8
jb 0x477b2d
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477b23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
push edx
push ecx
call fcn.004b9160
add esp, 8
movups xmm0, xmmword [ebp - 0x8c]
xor eax, eax
lea ecx, [ebp - 0x8c]
mov word [ebp - 0x8c], ax
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [ebp - 0x7c]
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
call fcn.00416700
lea ecx, [ebp - 0x6c]
call fcn.00416700
jmp 0x477e6a
push eax
mov ecx, edi
call fcn.00478d90
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x477bee
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x477bbc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477bb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478715
push edx
push ecx
call fcn.004b9160
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xb4]
call fcn.00416700
push 5
xor eax, eax
mov dword [ebp - 0x6c], 0
push str..part
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.0041ffd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x6c]
push eax
push 0
mov byte [ebp - 4], 7
call fcn.00435fe0
xor ecx, ecx
mov dword [ebp - 0x3c], 8
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x40]
movq qword [ebp - 0x34], xmm1
movq qword [ebp - 0x7c], xmm1
movups xmmword [ebp - 0x9c], xmm0
movups xmmword [ebp - 0x8c], xmm0
cmp edx, 8
jb 0x477cc0
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477caa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
push edx
push ecx
call fcn.004b9160
movups xmm0, xmmword [ebp - 0x9c]
add esp, 8
movq xmm1, qword [ebp - 0x34]
mov edx, dword [ebp - 0x58]
movq qword [ebp - 0x44], xmm1
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x54], xmm0
cmp edx, 8
jb 0x477e5a
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477e50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
jmp 0x477e50
push eax
mov ecx, edi
call fcn.00478d90
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x477d87
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x477d55
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477d4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871f
push edx
push ecx
call fcn.004b9160
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xb4]
call fcn.00416700
push 5
xor eax, eax
mov dword [ebp - 0x6c], 0
push str..part
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
call fcn.0041ffd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x6c]
push eax
push 0
mov byte [ebp - 4], 8
call fcn.00435fe0
xor ecx, ecx
mov dword [ebp - 0x3c], 0x10
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x40]
movq qword [ebp - 0x34], xmm1
movq qword [ebp - 0x7c], xmm1
movups xmmword [ebp - 0x9c], xmm0
movups xmmword [ebp - 0x8c], xmm0
cmp edx, 8
jb 0x477cc0
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477caa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
jmp 0x477caa
push edx
push ecx
call fcn.004b9160
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x5c], eax
mov ecx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor al, al
cmp dword [edi + 0x28], 0
mov byte [ebp - 0xd], al
je 0x478252
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ecx
test eax, eax
je 0x47824a
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.00436ac0
add esp, 8
test al, al
je 0x478167
lea ecx, [ebp - 0x11c]
call fcn.0047a330
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0xa
call fcn.0047a700
lea ecx, [ebp - 0x11c]
call fcn.0047a7e0
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0xfc]
call fcn.004152a0
mov esi, dword [ebp - 0xec]
mov byte [ebp - 4], 0xb
test esi, esi
je 0x478109
cmp dword [edi + 0x2c], 0x10
lea ecx, [edi + 0x18]
mov eax, dword [ecx + 0x10]
jb 0x477f41
mov ecx, dword [ecx]
cmp dword [ebp - 0xe8], 0x10
lea edx, [ebp - 0xfc]
cmovae edx, dword [ebp - 0xfc]
cmp esi, eax
jne 0x478109
sub esi, 4
jb 0x477f73
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x477f78
add edx, 4
add ecx, 4
sub esi, 4
jae 0x477f62
cmp esi, 0xfffffffc
je 0x477fac
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x477fa5
cmp esi, 0xfffffffd
je 0x477fac
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x477fa5
cmp esi, 0xfffffffe
je 0x477fac
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x477fa5
cmp esi, 0xffffffff
je 0x477fac
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x477fac
sbb eax, eax
or eax, 1
jmp 0x477fae
xor eax, eax
test eax, eax
jne 0x478109
mov ecx, dword [edi + 0x78]
lea eax, [edi + 0x88]
mov byte [ebp - 0xd], 1
xchg dword [eax], ecx
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push 0x80
push 3
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x477ffb
call fcn.00449f10
jmp 0x478002
mov esi, eax
xor eax, eax
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 0xc
test eax, eax
js 0x47806b
cmp byte [0x5cc2dc], 0
je 0x478043
mov dword [ebp - 0x3c], 0x7a7138
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
sub ecx, 0x246510
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
movzx eax, word [0x5cc2dc]
push ecx
push eax
call fcn.004bad80
mov esi, dword [ebp - 0x34]
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x74]
push eax
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x4780e3
cmp byte [0x5cc2dc], 0
je 0x4780e3
mov dword [ebp - 0x3c], 0x7c4940
mov esi, dword [ebp - 0x3c]
sub esi, 0x263cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x478096
movzx eax, ax
or eax, 0x80070000
push 0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004359c0
push dword [eax]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
movzx eax, word [0x5cc2dc]
cmovae ecx, dword [ebp - 0x28]
push ecx
push esi
push eax
mov byte [ebp - 4], 0xe
call fcn.004bad80
mov edx, dword [ebp - 0x70]
add esp, 0x1c
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4780e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x4780ee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0xfc]
call fcn.004166b0
lea ecx, [ebp - 0x11c]
call fcn.0047a520
jmp 0x47816a
mov esi, dword [ebp - 0x2c]
push 1
push 0x1a
push str.BootstrapperFDHashmismatch
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp byte [0x5cc2dc], 0
je 0x478153
mov dword [ebp - 0x70], 0x7d5ce8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x70]
sub ecx, 0x275000
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
movzx eax, word [0x5cc2dc]
push ecx
push eax
call fcn.004bad80
add esp, 0xc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4780f1
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x98]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4781a8
mov edx, dword [ebp - 0x90]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x47819e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
push edx
push ecx
call fcn.004b9160
add esp, 8
mov al, byte [ebp - 0xd]
mov ecx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
mov byte [ebp - 4], 0xf
test al, al
jne 0x478707
mov esi, dword [ebp - 0x2c]
lock inc dword [esi + 8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x10
cmovae eax, dword [ebp - 0x54]
push eax
call ecx
test eax, eax
je 0x478279
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push ecx
push eax
call fcn.00436ac0
add esp, 8
test al, al
jne 0x47825a
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
jmp 0x478279
mov esi, dword [ebp - 0x2c]
jmp 0x4781a8
mov esi, dword [ebp - 0x2c]
jmp 0x4781b1
mov ecx, dword [esi + 0x1c]
push 1
push 0x1d
push str.BootstrapperFDPartialDownload
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x34]
lea eax, [edi + 0x88]
sub ecx, dword [ebp - 0x38]
xchg dword [eax], ecx
cmp dword [ebp - 0x40], 8
lea edx, [ebp - 0x54]
mov dword [ebp - 0x8c], 0
cmovae edx, dword [ebp - 0x54]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4782b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.0041ffd0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0xcc]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xe4], vtable.DownloadWriter.0
push eax
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xdc], 0xffffffff
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
call fcn.004153e0
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
mov dword [edi + 0xa0], eax
mov edx, dword [ebp - 0x78]
mov byte [ebp - 4], 0x13
cmp edx, 8
jb 0x478366
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47835c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
push edx
push ecx
call fcn.004b9160
add esp, 8
cmp dword [ebp - 0xb8], 8
lea eax, [ebp - 0xcc]
push 0
cmovae eax, dword [ebp - 0xcc]
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd4], 0
cmp eax, 0xffffffff
je 0x478788
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [ebp - 0x2c]
mov edi, eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x38]
mov ecx, dword [esi + 0x18]
push eax
mov eax, dword [ebp + 8]
push 0
mov edx, dword [ecx]
mov esi, dword [edx + 0x14]
lea edx, [eax + 0x18]
push edx
push eax
call esi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [ebp - 0x2c]
sub eax, edi
lea ecx, [esi + 0x10]
lock xadd dword [ecx], eax
cmp dword [ebp - 0xdc], 0xffffffff
mov byte [ebp - 4], 0x15
mov dword [ebp - 0xe4], vtable.DownloadWriter.0
je 0x478422
push 1
lea ecx, [ebp - 0xe4]
call fcn.004794a0
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xdc], 0xffffffff
mov edx, dword [ebp - 0xb8]
cmp edx, 8
jb 0x478462
mov ecx, dword [ebp - 0xcc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478458
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
push edx
push ecx
call fcn.004b9160
add esp, 8
mov ecx, dword [ebp - 0x34]
lea eax, [esi + 4]
sub ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0x10
lock xadd dword [eax], ecx
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
lock xadd dword [esi], eax
cmp byte [0x5cb184], 0
je 0x4785ce
cmp dword [ebp - 0x18], 0
jne 0x47858b
lea ecx, [ebp - 0x13c]
call fcn.0047a330
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x16
call fcn.0047a700
lea ecx, [ebp - 0x13c]
call fcn.0047a7e0
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.004b97c0
push eax
mov eax, dword [ebp + 8]
add eax, 0x60
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00431890
mov esi, eax
add esp, 0x14
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x478566
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x478534
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47852a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
push edx
push ecx
call fcn.004b9160
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x16c]
call fcn.00416700
lea ecx, [ebp - 0x184]
call fcn.00416700
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0x10
call fcn.0047a520
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x54]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x40], 8
push ecx
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x478724
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call eax
test eax, eax
je 0x478724
jmp 0x47860f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x54]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x40], 8
push ecx
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x478756
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call eax
test eax, eax
je 0x478756
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x478647
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x47863d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
push edx
push ecx
call fcn.004b9160
add esp, 8
mov edi, dword [ebp + 8]
cmp byte [edi + 0x94], 0
je 0x478675
call dword [sym.imp.WINMM.dll_timeGetTime]
push edi
mov edi, dword [ebp - 0x2c]
mov esi, eax
mov ecx, edi
call fcn.00475850
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, esi
lea ecx, [edi + 0x14]
lock xadd dword [ecx], eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4786ab
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4786a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
push edx
push ecx
call fcn.004b9160
add esp, 8
mov edx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4786f5
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4786eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47871a
push edx
push ecx
call fcn.004b9160
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
lock inc dword [esi + 0xc]
jmp 0x47864a
call fcn.0041fab0
call fcn.0051bb5f
call fcn.0051bb5f
call fcn.0051bb5f
lea ecx, [ebp - 0x28]
call fcn.004200f0
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.004200f0
push esi
push eax
lea eax, [ebp - 0x154]
push str.Unable_to_rename_download_file:__s_to__s
push eax
call fcn.004b99e0
add esp, 0x10
push eax
mov byte [ebp - 4], 0x18
call fcn.00437950
lea ecx, [ebp - 0x28]
call fcn.004200f0
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.004200f0
push esi
push eax
lea eax, [ebp - 0x154]
push str.Unable_to_rename_download_file:__s_to__s
push eax
call fcn.004b99e0
add esp, 0x10
push eax
mov byte [ebp - 4], 0x19
call fcn.00437950
lea ecx, [ebp - 0x54]
call fcn.004200f0
push eax
lea eax, [ebp - 0x154]
push str.Unable_to_open_file_for_writing:__s
push eax
call fcn.004b99e0
add esp, 0xc
push eax
mov byte [ebp - 4], 0x14
call fcn.00437950
int3