Function at 0x4116f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467ddc
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x47d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], 0
push eax
call fcn.004123b0
push 0x15
mov dword [ebp - 4], 0
call fcn.0044ecb6
mov edi, eax
lea ecx, [esi + 4]
add esp, 4
mov dword [ebp - 0x3c], edi
mov dword [edi], 5
mov dword [edi + 4], 4
mov dword [edi + 8], 1
mov eax, dword [str.name]
mov dword [edi + 0x10], eax
mov al, byte [0x47975c]
mov byte [edi + 0x14], al
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00406c80
mov eax, dword [eax]
cmp eax, dword [esi + 4]
je 0x41178f
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x28], esi
test esi, esi
je 0x411794
lea eax, [esi + 8]
lock inc dword [eax]
jmp 0x411794
xor esi, esi
mov dword [ebp - 0x28], esi
or eax, 0xffffffff
lea ecx, [edi + 8]
lock xadd dword [ecx], eax
jne 0x4117a9
push edi
call fcn.0044ec66
add esp, 4
push 0x14
call fcn.0044ecb6
mov edi, dword [ebp - 0x24]
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [eax], 4
lea ecx, [eax + 8]
mov dword [eax + 4], 3
mov dword [ecx], 1
mov dword [ebp - 0x3c], ecx
mov ecx, dword [0x4797d0]
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 4]
call fcn.00406c80
mov eax, dword [eax]
cmp eax, dword [edi + 4]
je 0x411804
mov edi, dword [eax + 0x14]
mov dword [ebp - 0x34], edi
test edi, edi
je 0x411809
lea eax, [edi + 8]
lock inc dword [eax]
jmp 0x411809
xor edi, edi
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x3c]
lock xadd dword [ecx], eax
jne 0x411824
push dword [ebp - 0x30]
call fcn.0044ec66
add esp, 4
test esi, esi
je 0x412022
cmp dword [esi + 4], 0
je 0x412022
test edi, edi
je 0x412022
cmp dword [edi + 4], 0
je 0x412022
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x412022
cmp dword [eax + 4], 0
je 0x412022
lea ecx, [ebp - 0xd]
call fcn.00403d60
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov esi, dword [eax + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ecx + 0x32]
cmp edx, eax
jae 0x4118a5
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x32
mov dword [ebp - 0x3c], eax
cmp edx, eax
jae 0x4118a5
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov eax, dword [esi + 8]
push 0x32
add eax, ecx
push str._font_face_
push eax
call fcn.0044cb90
mov ecx, dword [esi + 4]
add esp, 0xc
mov edx, dword [esi]
add ecx, 0x32
mov dword [esi + 4], ecx
lea eax, [ecx + 8]
cmp edx, eax
jae 0x4118f2
lea eax, [edx + edx*2]
shr eax, 1
add eax, 8
mov dword [ebp - 0x3c], eax
cmp edx, eax
jae 0x4118f2
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov eax, dword [esi + 8]
movq xmm0, qword [0x4797d4]
movq qword [eax + ecx], xmm0
lea eax, [ebp - 0x28]
add dword [esi + 4], 8
mov ecx, esi
push eax
call fcn.00408c60
mov esi, eax
mov edx, dword [esi + 4]
mov eax, dword [esi]
lea ecx, [edx + 2]
cmp eax, ecx
jae 0x411945
lea eax, [eax + eax*2]
shr eax, 1
add eax, 2
mov dword [ebp - 0x3c], eax
cmp dword [esi], eax
jae 0x411945
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov edx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov ecx, dword [esi + 8]
mov ax, word [0x4797e0]
mov word [ecx + edx], ax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 2
mov dword [esi + 4], ecx
lea eax, [ecx + 0x10]
cmp edx, eax
jae 0x41198a
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x10
mov dword [ebp - 0x3c], eax
cmp edx, eax
jae 0x41198a
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov eax, dword [esi + 8]
movups xmm0, xmmword [str.__b___li___font_]
movups xmmword [eax + ecx], xmm0
add dword [esi + 4], 0x10
call fcn.00403dc0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4119ad
lea eax, [ebp - 0x14]
jmp 0x4119d2
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x14]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x4119cf
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
je 0x411a40
lea ecx, [ebp - 0x14]
call fcn.00401430
push eax
call esi
test al, 1
je 0x411a02
and eax, 0xfffffffe
lea ecx, [ebp - 0x14]
push eax
call fcn.00401430
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x14]
call fcn.00401430
push 0x6d
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.00403790
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x411bca
cmp dword [eax], 0xffffffff
je 0x411bca
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00403730
lea ecx, [ebp - 0xd]
call fcn.00403d60
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ecx + 0x2b]
cmp edx, eax
jae 0x411a80
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x2b
mov dword [ebp - 0x3c], eax
cmp edx, eax
jae 0x411a80
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov eax, dword [esi + 8]
push 0x2b
add eax, ecx
push 0x477750
push eax
call fcn.0044cb90
mov ecx, dword [esi + 4]
add esp, 0xc
mov edx, dword [esi]
add ecx, 0x2b
mov dword [esi + 4], ecx
lea eax, [ecx + 0x10]
cmp edx, eax
jae 0x411acd
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x10
mov dword [ebp - 0x3c], eax
cmp edx, eax
jae 0x411acd
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov eax, dword [esi + 8]
movups xmm0, xmmword [0x47989c]
movups xmmword [eax + ecx], xmm0
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, 0x10
mov dword [esi + 4], edx
lea eax, [edx + 0xb]
cmp ecx, eax
jae 0x411b13
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0xb
mov dword [ebp - 0x3c], eax
cmp ecx, eax
jae 0x411b13
push eax
push dword [esi + 8]
call fcn.0044ec0e
mov edx, dword [esi + 4]
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov ecx, dword [esi + 8]
movq xmm0, qword [str.__font__br_]
movq qword [ecx + edx], xmm0
mov ax, word [0x477798]
mov word [ecx + edx + 8], ax
mov al, byte [0x47779a]
mov byte [ecx + edx + 0xa], al
add dword [esi + 4], 0xb
call fcn.00403dc0
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.00412b80
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00411660
lea ecx, [ebp - 0xd]
test al, al
je 0x411f96
call fcn.00403d60
mov eax, dword [ebp - 0x1c]
push str.__font__br_
push 0x4798b0
push 0x477750
mov ecx, dword [eax + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x411c2f
cmp dword [esi + 4], 0
je 0x411c2f
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411490
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 6
mov ecx, 2
jmp 0x411c48
lea ecx, [ebp - 0xd]
call fcn.00403d60
mov esi, dword [ebp - 0x1c]
push str.__font__br_
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x479814
push 0x4797fc
push 0x477750
mov ecx, esi
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.0040f4d0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
lea ecx, [ebp - 0x2c]
call fcn.00403730
mov byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x28]
jmp 0x412026
push 0x4798e0
lea ecx, [ebp - 0x38]
call fcn.00401460
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 5
mov ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0xd]
call fcn.00403d60
mov eax, dword [ebp - 0x1c]
push str.__font__br_
push dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push 0x4798cc
push 0x477750
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00408c60
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
mov eax, dword [ebp - 0x18]
test al, 2
je 0x411ca5
and eax, 0xfffffffd
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
call fcn.004013f0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 4
test al, 1
je 0x411cbe
and eax, 0xfffffffe
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], eax
call fcn.004013f0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call fcn.00411490
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 7
call fcn.00403d60
mov eax, dword [ebp - 0x1c]
push str.__font__br_
push dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push 0x4798e8
push 0x477750
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00408c60
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
lea ecx, [ebp - 0x38]
call fcn.004013f0
push str.old_name
lea ecx, [ebp - 0x40]
call fcn.00401460
mov ecx, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00412370
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.004013f0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x411e3a
cmp dword [eax + 4], 0
je 0x411e3a
lea ecx, [ebp - 0xd]
call fcn.00403d60
push str.__font__br_
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
push 0x4798f8
push 0x477750
mov ecx, dword [eax + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00408c60
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call fcn.004123b0
mov ecx, eax
call fcn.00401430
push eax
lea ecx, [ebp - 0x38]
call fcn.00401460
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.0040f530
push 0x477a20
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00402750
lea ecx, [ebp - 0x2c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403900
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.004013f0
lea ecx, [ebp - 0x48]
call fcn.004013f0
lea ecx, [ebp - 0x38]
call fcn.004013f0
lea ecx, [ebp - 0x4c]
call fcn.004013f0
push 0xffffffffffffffff
push 0x479774
push 0x477a20
lea ecx, [ebp - 0x30]
call fcn.004016e0
lea eax, [ebp - 0x30]
mov edx, str.cmd.exe__c_del__q
push eax
lea ecx, [ebp - 0x3c]
call fcn.004115b0
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.004039a0
lea ecx, [ebp - 0x3c]
call fcn.004013f0
lea ecx, [ebp - 0x30]
call fcn.004013f0
mov ecx, dword [ebp - 0x24]
call fcn.004138d0
test al, al
jne 0x411e8c
lea ecx, [ebp - 0xd]
call fcn.00403d60
mov eax, dword [ebp - 0x1c]
push str.__font__br_
push 0x47984c
push 0x477750
mov ecx, dword [eax + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
lea ecx, [ebp - 0x2c]
call fcn.004013f0
mov byte [ebp - 0xd], 0
jmp 0x411ffc
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call fcn.00412b80
push eax
lea ecx, [ebp - 0x20]
call fcn.00404f90
lea ecx, [ebp - 0x4c]
call fcn.004013f0
lea ecx, [ebp - 0xd]
call fcn.00403d60
mov eax, dword [ebp - 0x1c]
push str.__font__br_
push 0x47991c
push 0x477750
mov ecx, dword [eax + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x411f09
cmp dword [esi + 4], 0
je 0x411f09
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411490
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp - 0x18]
or ecx, 8
jmp 0x411f23
push 0x4798e0
lea ecx, [ebp - 0x48]
call fcn.00401460
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
or ecx, 4
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0xd]
call fcn.00403d60
mov eax, dword [ebp - 0x1c]
push str.__font__br_
push dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push 0x4798cc
push 0x477750
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00408c60
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
mov eax, dword [ebp - 0x18]
test al, 8
je 0x411f80
and eax, 0xfffffff7
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
call fcn.004013f0
mov eax, dword [ebp - 0x18]
test al, 4
je 0x411f8c
lea ecx, [ebp - 0x48]
call fcn.004013f0
lea ecx, [ebp - 0x2c]
call fcn.004013f0
jmp 0x411fcb
call fcn.00403d60
mov eax, dword [ebp - 0x1c]
push str.__font__br_
push 0x479938
push 0x477750
mov ecx, dword [eax + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x411ff8
cmp dword [eax + 4], 0
je 0x411ff8
push 9
push str..download
lea ecx, [ebp - 0x14]
call fcn.00401a60
lea ecx, [ebp - 0x14]
call fcn.00401430
xor dl, dl
mov ecx, eax
call fcn.004035e0
mov byte [ebp - 0xd], 1
test esi, esi
je 0x411c27
lea ecx, [esi + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x411c27
push esi
call fcn.0044ec66
mov esi, dword [ebp - 0x28]
add esp, 4
jmp 0x412026
mov byte [ebp - 0xd], 1
test edi, edi
je 0x41203f
lea ecx, [edi + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x41203f
push edi
call fcn.0044ec66
add esp, 4
or edx, 0xffffffff
test esi, esi
je 0x41205d
lea ecx, [esi + 8]
mov eax, edx
lock xadd dword [ecx], eax
jne 0x41205d
push esi
call fcn.0044ec66
add esp, 4
or edx, 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x412079
add eax, 8
lock xadd dword [eax], edx
dec edx
jne 0x412079
push dword [ebp - 0x14]
call fcn.0044ec66
add esp, 4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret