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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467fa4
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 - 0x28], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], 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 - 0x34], 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 - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00406c80
mov eax, dword [eax]
cmp eax, dword [esi + 4]
je 0x413e2f
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x24], esi
test esi, esi
je 0x413e34
lea eax, [esi + 8]
lock inc dword [eax]
jmp 0x413e34
xor esi, esi
mov dword [ebp - 0x24], esi
or eax, 0xffffffff
lea ecx, [edi + 8]
lock xadd dword [ecx], eax
jne 0x413e49
push edi
call fcn.0044ec66
add esp, 4
push 0x14
call fcn.0044ecb6
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [eax], 4
lea ecx, [eax + 8]
mov dword [eax + 4], 3
mov dword [ecx], 1
mov dword [ebp - 0x34], ecx
mov ecx, dword [0x4797d0]
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ecx + 4]
call fcn.00406c80
mov ecx, dword [ebp - 0x28]
mov edi, dword [eax]
cmp edi, dword [ecx + 4]
je 0x413ea7
mov edi, dword [edi + 0x14]
mov dword [ebp - 0x30], edi
test edi, edi
je 0x413eac
lea eax, [edi + 8]
lock inc dword [eax]
jmp 0x413eac
xor edi, edi
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x34]
lock xadd dword [ecx], eax
jne 0x413ec7
push dword [ebp - 0x2c]
call fcn.0044ec66
add esp, 4
test esi, esi
je 0x414597
cmp dword [esi + 4], 0
je 0x414597
test edi, edi
je 0x414597
cmp dword [edi + 4], 0
je 0x414597
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x414597
cmp dword [eax + 4], 0
je 0x414597
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 0x413f48
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x32
mov dword [ebp - 0x34], eax
cmp edx, eax
jae 0x413f48
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 - 0x34]
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 0x413f95
lea eax, [edx + edx*2]
shr eax, 1
add eax, 8
mov dword [ebp - 0x34], eax
cmp edx, eax
jae 0x413f95
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 - 0x34]
mov dword [esi], eax
mov eax, dword [esi + 8]
movq xmm0, qword [0x4797d4]
movq qword [eax + ecx], xmm0
lea eax, [ebp - 0x24]
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 0x413fe8
lea eax, [eax + eax*2]
shr eax, 1
add eax, 2
mov dword [ebp - 0x34], eax
cmp dword [esi], eax
jae 0x413fe8
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 - 0x34]
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 0x41402d
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x10
mov dword [ebp - 0x34], eax
cmp edx, eax
jae 0x41402d
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 - 0x34]
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 0x414050
lea eax, [ebp - 0x14]
jmp 0x414075
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 0x414072
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 0x4140e3
lea ecx, [ebp - 0x14]
call fcn.00401430
push eax
call esi
test al, 1
je 0x4140a5
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 - 0x20]
mov dword [ebp - 0x20], 0
call fcn.00403790
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41426d
cmp dword [eax], 0xffffffff
je 0x41426d
lea ecx, [ebp - 0x20]
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 0x414123
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x2b
mov dword [ebp - 0x34], eax
cmp edx, eax
jae 0x414123
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 - 0x34]
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 0x414170
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x10
mov dword [ebp - 0x34], eax
cmp edx, eax
jae 0x414170
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 - 0x34]
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 0x4141b6
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0xb
mov dword [ebp - 0x34], eax
cmp ecx, eax
jae 0x4141b6
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 - 0x34]
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 - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.00412b80
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00411660
lea ecx, [ebp - 0xd]
test al, al
je 0x41450b
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 0x4142d2
cmp dword [esi + 4], 0
je 0x4142d2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411490
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 6
mov ecx, 2
jmp 0x4142eb
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 - 0x20]
call fcn.00403730
mov byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x24]
jmp 0x41459b
push 0x4798e0
lea ecx, [ebp - 0x3c]
call fcn.00401460
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 5
mov ecx, 1
mov dword [ebp - 0x2c], 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 - 0x34]
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 0x414348
and eax, 0xfffffffd
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], eax
call fcn.004013f0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 4
test al, 1
je 0x414361
and eax, 0xfffffffe
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
call fcn.004013f0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
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]
mov byte [ebp - 4], 4
call fcn.004013f0
mov ecx, dword [ebp - 0x28]
call fcn.004138d0
test al, al
jne 0x414409
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
mov byte [ebp - 0xd], 0
jmp 0x414571
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x3c]
push eax
call fcn.00412b80
push eax
lea ecx, [ebp - 0x20]
call fcn.00404f90
lea ecx, [ebp - 0x3c]
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 0x414486
cmp dword [esi + 4], 0
je 0x414486
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00411490
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x18]
or ecx, 8
jmp 0x4144a0
push 0x4798e0
lea ecx, [ebp - 0x38]
call fcn.00401460
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x18]
or ecx, 4
mov dword [ebp - 0x2c], 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 - 0x34]
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 0x4144fd
and eax, 0xfffffff7
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
call fcn.004013f0
mov eax, dword [ebp - 0x18]
test al, 4
je 0x414540
lea ecx, [ebp - 0x38]
call fcn.004013f0
jmp 0x414540
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 0x41456d
cmp dword [eax + 4], 0
je 0x41456d
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 0x4142ca
lea ecx, [esi + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4142ca
push esi
call fcn.0044ec66
mov esi, dword [ebp - 0x24]
add esp, 4
jmp 0x41459b
mov byte [ebp - 0xd], 1
test edi, edi
je 0x4145b4
lea ecx, [edi + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4145b4
push edi
call fcn.0044ec66
add esp, 4
or edx, 0xffffffff
test esi, esi
je 0x4145d2
lea ecx, [esi + 8]
mov eax, edx
lock xadd dword [ecx], eax
jne 0x4145d2
push esi
call fcn.0044ec66
add esp, 4
or edx, 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4145ee
add eax, 8
lock xadd dword [eax], edx
dec edx
jne 0x4145ee
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