Function at 0x410910
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467d18
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x134], esi
lea eax, [ebp - 0x128]
push eax
call fcn.004123b0
push 0x19
mov dword [ebp - 4], 0
call fcn.0044ecb6
mov edi, eax
lea ecx, [esi + 4]
add esp, 4
mov dword [ebp - 0x144], edi
mov dword [edi], 9
mov dword [edi + 4], 8
mov dword [edi + 8], 1
movq xmm0, qword [str.old_name]
movq qword [edi + 0x10], xmm0
mov al, byte [0x479768]
mov byte [edi + 0x18], al
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.00406c80
mov eax, dword [eax]
cmp eax, dword [esi + 4]
je 0x4109c5
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x148], esi
test esi, esi
je 0x4109cd
lea eax, [esi + 8]
lock inc dword [eax]
jmp 0x4109cd
xor esi, esi
mov dword [ebp - 0x148], esi
or eax, 0xffffffff
lea ecx, [edi + 8]
lock xadd dword [ecx], eax
jne 0x4109e2
push edi
call fcn.0044ec66
add esp, 4
push 0x15
call fcn.0044ecb6
mov edi, dword [ebp - 0x134]
add esp, 4
mov dword [ebp - 0x120], eax
mov dword [eax], 5
lea ecx, [eax + 8]
mov dword [eax + 4], 4
mov dword [ecx], 1
mov dword [ebp - 0x144], ecx
mov ecx, dword [str.name]
mov dword [eax + 0x10], ecx
mov cl, byte [0x47975c]
mov byte [eax + 0x14], cl
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [edi + 4]
call fcn.00406c80
mov eax, dword [eax]
cmp eax, dword [edi + 4]
je 0x410a58
mov edi, dword [eax + 0x14]
mov dword [ebp - 0x154], edi
test edi, edi
je 0x410a60
lea eax, [edi + 8]
lock inc dword [eax]
jmp 0x410a60
xor edi, edi
mov dword [ebp - 0x154], edi
mov ecx, dword [ebp - 0x144]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x410a7d
push dword [ebp - 0x120]
call fcn.0044ec66
add esp, 4
push 0x14
call fcn.0044ecb6
add esp, 4
mov dword [ebp - 0x120], eax
mov dword [eax], 4
lea ecx, [eax + 8]
mov dword [eax + 4], 3
mov dword [ecx], 1
mov dword [ebp - 0x130], ecx
mov ecx, dword [0x4797d0]
mov dword [eax + 0x10], ecx
lea eax, [ebp - 0x120]
mov ecx, dword [ebp - 0x134]
push eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ecx + 4]
call fcn.00406c80
mov edx, dword [ebp - 0x134]
mov ecx, dword [eax]
cmp ecx, dword [edx + 4]
je 0x410af6
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
test eax, eax
je 0x410b04
add eax, 8
lock inc dword [eax]
jmp 0x410b04
xor eax, eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x130]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x410b21
push dword [ebp - 0x120]
call fcn.0044ec66
add esp, 4
push 0x15
call fcn.0044ecb6
add esp, 4
mov dword [ebp - 0x120], eax
mov dword [eax], 5
lea ecx, [eax + 8]
mov dword [eax + 4], 4
mov dword [ecx], 1
mov dword [ebp - 0x12c], ecx
mov ecx, dword [str.path]
mov dword [eax + 0x10], ecx
mov cl, byte [0x479754]
mov byte [eax + 0x14], cl
lea eax, [ebp - 0x120]
mov ecx, dword [ebp - 0x134]
push eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ecx + 4]
call fcn.00406c80
mov edx, dword [ebp - 0x134]
mov ecx, dword [eax]
cmp ecx, dword [edx + 4]
je 0x410ba3
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x410bb1
add eax, 8
lock inc dword [eax]
jmp 0x410bb1
xor eax, eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0x12c]
lock xadd dword [ecx], eax
jne 0x410bd2
push dword [ebp - 0x120]
call fcn.0044ec66
add esp, 4
test edi, edi
je 0x4113d3
cmp dword [edi + 4], 0
je 0x4113d3
test esi, esi
je 0x4113d3
cmp dword [esi + 4], 0
je 0x4113d3
lea eax, [ebp - 0x118]
push eax
push 0x108
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea esi, [edi + 1]
lea ecx, [esi + 0x10]
push ecx
call fcn.0044ecb6
push edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x120], eax
push ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], 1
add eax, 0x10
push eax
call fcn.0044cb90
push 0x479774
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x12c]
call fcn.00402750
lea ecx, [ebp - 0x14c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00403900
push 0x479774
mov edx, eax
lea ecx, [ebp - 0x138]
call fcn.00402750
lea ecx, [ebp - 0x148]
mov edx, eax
push ecx
lea ecx, [ebp - 0x124]
call fcn.00403900
add esp, 0x20
mov eax, dword [ebp - 0x138]
or esi, 0xffffffff
test eax, eax
je 0x410cbc
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x410cb2
push dword [ebp - 0x138]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x410ce9
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x410cdf
push dword [ebp - 0x13c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x410d16
lea ecx, [eax + 8]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x410d0c
push dword [ebp - 0x12c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x410d34
lea edx, [eax + 8]
mov ecx, esi
lock xadd dword [edx], ecx
jne 0x410d34
push eax
call fcn.0044ec66
add esp, 4
lea eax, [ebp - 0x118]
push eax
push 0x108
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea esi, [edi + 1]
lea ecx, [esi + 0x10]
push ecx
call fcn.0044ecb6
push edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x120], eax
push ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], 1
add eax, 0x10
push eax
call fcn.0044cb90
push 0x479774
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x138]
call fcn.00402750
lea ecx, [ebp - 0x14c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00403900
push 0x479774
mov edx, eax
lea ecx, [ebp - 0x12c]
call fcn.00402750
lea ecx, [ebp - 0x154]
mov edx, eax
push ecx
lea ecx, [ebp - 0x150]
call fcn.00403900
add esp, 0x20
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x410dfe
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x410df4
push dword [ebp - 0x12c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x13c]
test eax, eax
je 0x410e2b
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x410e21
push dword [ebp - 0x13c]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x410e58
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x410e4e
push dword [ebp - 0x138]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x410e76
lea edx, [eax + 8]
mov ecx, edi
lock xadd dword [edx], ecx
jne 0x410e76
push eax
call fcn.0044ec66
add esp, 4
lea ecx, [ebp - 0x119]
call fcn.00403d60
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
mov esi, dword [eax + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ecx + 0x32]
cmp edx, eax
jae 0x410eca
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x32
mov dword [ebp - 0x120], eax
cmp edx, eax
jae 0x410eca
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 - 0x120]
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 0x410f1d
lea eax, [edx + edx*2]
shr eax, 1
add eax, 8
mov dword [ebp - 0x120], eax
cmp edx, eax
jae 0x410f1d
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 - 0x120]
mov dword [esi], eax
mov eax, dword [esi + 8]
movq xmm0, qword [0x4797d4]
movq qword [eax + ecx], xmm0
lea eax, [ebp - 0x148]
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 0x410f79
lea eax, [eax + eax*2]
shr eax, 1
add eax, 2
mov dword [ebp - 0x120], eax
cmp dword [esi], eax
jae 0x410f79
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 - 0x120]
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 0x410fc4
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x10
mov dword [ebp - 0x120], eax
cmp edx, eax
jae 0x410fc4
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 - 0x120]
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 - 0x124]
test eax, eax
jne 0x410fed
lea eax, [ebp - 0x124]
jmp 0x41101b
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x124]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x411018
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x124]
add eax, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
jne 0x411165
lea ecx, [ebp - 0x119]
call fcn.00403d60
mov esi, dword [ebp - 0x130]
mov esi, dword [esi + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [ecx + 0x2b]
cmp edx, eax
jae 0x411079
lea eax, [edx + edx*2]
shr eax, 1
add eax, 0x2b
mov dword [ebp - 0x140], eax
cmp edx, eax
jae 0x411079
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 - 0x140]
mov dword [esi], eax
mov eax, dword [esi + 8]
push 0x2b
add eax, ecx
push 0x477750
push eax
call fcn.0044cb90
mov edx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [esi]
add edx, 0x2b
mov dword [esi + 4], edx
lea eax, [edx + 0x16]
cmp ecx, eax
jae 0x4110cc
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0x16
mov dword [ebp - 0x140], eax
cmp ecx, eax
jae 0x4110cc
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 - 0x140]
mov dword [esi], eax
mov ecx, dword [esi + 8]
movups xmm0, xmmword [0x4797e4]
movups xmmword [ecx + edx], xmm0
mov eax, dword [0x4797f4]
mov dword [ecx + edx + 0x10], eax
mov ax, word [0x4797f8]
mov word [ecx + edx + 0x14], ax
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, 0x16
mov dword [esi + 4], edx
lea eax, [edx + 0xb]
cmp ecx, eax
jae 0x41112c
lea eax, [ecx + ecx*2]
shr eax, 1
add eax, 0xb
mov dword [ebp - 0x140], eax
cmp ecx, eax
jae 0x41112c
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 - 0x140]
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 byte [ebp - 0x119], 1
jmp 0x411374
mov eax, dword [ebp - 0x128]
test eax, eax
jne 0x411177
lea eax, [ebp - 0x128]
jmp 0x4111a5
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x128]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x4111a2
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x128]
add eax, 0x10
push eax
call esi
test al, 1
je 0x4111c2
and eax, 0xfffffffe
lea ecx, [ebp - 0x128]
push eax
call fcn.00401430
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x124]
test eax, eax
jne 0x4111d4
lea eax, [ebp - 0x124]
jmp 0x411202
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x124]
inc eax
push eax
call fcn.004019f0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
cmp byte [ecx + eax + 0x10], 0
je 0x4111ff
mov byte [ecx + eax + 0x10], 0
mov eax, dword [ebp - 0x124]
add eax, 0x10
push 0x6d
push eax
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], 0
call fcn.00403790
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x41130b
cmp dword [esi], 0xffffffff
je 0x41130b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x411249
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x119]
call fcn.00403d60
mov esi, dword [ebp - 0x130]
push str.__font__br_
push 0x479820
push 0x477750
mov ecx, dword [esi + 4]
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
call fcn.00403dc0
mov ecx, dword [ebp - 0x134]
call fcn.004138d0
test al, al
jne 0x4112c1
lea ecx, [ebp - 0x119]
call fcn.00403d60
mov ecx, dword [esi + 4]
push str.__font__br_
push 0x47984c
push 0x477750
call fcn.00403ad0
mov ecx, eax
call fcn.00403ad0
jmp 0x411356
mov ecx, dword [ebp - 0x134]
call fcn.0040fd30
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x411302
cmp dword [eax + 4], 0
je 0x411302
push 9
push str..download
lea ecx, [ebp - 0x128]
call fcn.00401a60
lea ecx, [ebp - 0x128]
call fcn.00401430
xor dl, dl
mov ecx, eax
call fcn.004035e0
mov byte [ebp - 0x119], 1
jmp 0x411369
lea ecx, [ebp - 0x119]
call fcn.00403d60
mov esi, dword [ebp - 0x130]
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
mov byte [ebp - 0x119], 0
lea ecx, [ebp - 0x120]
call fcn.00403730
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x411392
lea edx, [eax + 8]
mov ecx, edi
lock xadd dword [edx], ecx
jne 0x411392
push eax
call fcn.0044ec66
add esp, 4
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4113bf
lea ecx, [eax + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x4113b5
push dword [ebp - 0x124]
call fcn.0044ec66
add esp, 4
mov dword [ebp - 0x124], 0
mov esi, dword [ebp - 0x148]
mov edi, dword [ebp - 0x154]
mov eax, dword [ebp - 0x14c]
jmp 0x4113e0
mov eax, dword [ebp - 0x130]
mov byte [ebp - 0x119], 1
test eax, eax
je 0x4113f9
lea edx, [eax + 8]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
jne 0x4113f9
push eax
call fcn.0044ec66
add esp, 4
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x411418
lea edx, [eax + 8]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
jne 0x411418
push eax
call fcn.0044ec66
add esp, 4
test edi, edi
je 0x411431
lea ecx, [edi + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x411431
push edi
call fcn.0044ec66
add esp, 4
or edi, 0xffffffff
test esi, esi
je 0x41144c
lea ecx, [esi + 8]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x41144c
push esi
call fcn.0044ec66
add esp, 4
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x41146e
add eax, 8
lock xadd dword [eax], edi
dec edi
jne 0x41146e
push dword [ebp - 0x128]
call fcn.0044ec66
add esp, 4
mov al, byte [ebp - 0x119]
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.00414803
mov esp, ebp
pop ebp
ret