Function at 0x413dd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov al, byte [ebp + 0xb]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.00404400
or ebx, 0xffffffff
mov edi, str._Windows_wininit.ini
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._Windows_wininit.ini
lea ecx, [ebp - 0x34]
call fcn.00404770
mov dword [ebp - 4], 0
call fcn.00453dc3
mov eax, dword [eax + 4]
push 0x800
lea ecx, [ebp - 0x34]
push 0
push ecx
lea ecx, [eax + 0x1fc]
call fcn.0042382c
lea ecx, [ebp - 0x68]
call fcn.0044f041
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
test eax, eax
jne 0x413e5d
mov eax, 0x45b980
push 0
push 0
push eax
lea ecx, [ebp - 0x68]
call fcn.0044f0b6
test eax, eax
jne 0x413f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x413ed2
cmp esi, 3
je 0x413ed2
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x413e90
mov eax, 0x45b980
push esi
push eax
push str.__Failed_to_open__s__error_d_n
push 1
push 0x4788a8
call fcn.0041f763
add esp, 0x14
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.0044f073
push 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00404400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x413ede
mov eax, 0x45b980
push eax
push str.The_file__s_did_not_exist__so_there_are_no_files_to_be_renamed_at_reboot.
push 0x20
push 0x4788a8
call fcn.0041f763
add esp, 0x10
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.0044f073
push 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.00404400
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x47446c]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x68]
push eax
call fcn.0044f299
test eax, eax
je 0x41418b
mov edi, str._Rename_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp - 0x14]
push str._Rename_
push ecx
call fcn.00436eee
add esp, 0xc
test eax, eax
jne 0x413f2c
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x68]
push edx
call fcn.0044f299
test eax, eax
je 0x413f2c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x413f84
cmp byte [eax], 0x5b
je 0x413f2c
push 0x3d
lea ecx, [ebp - 0x14]
call fcn.0044d3f9
cmp eax, 0xffffffff
je 0x413f65
mov eax, dword [ebp - 0x14]
push 0x3d
lea ecx, [ebp - 0x14]
mov edi, dword [eax - 8]
call fcn.0044d3f9
sub edi, eax
lea ecx, [ebp - 0x18]
dec edi
push edi
push ecx
lea ecx, [ebp - 0x14]
call fcn.004485be
mov edx, dword [eax]
mov byte [ebp - 4], 4
push edx
push str.Adding__s_to_list_of_files_to_be_renamed
push 0x20
push 0x4788a8
call fcn.0041f763
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0044d0ad
mov eax, dword [ebp - 0x14]
push 0x3d
lea ecx, [ebp - 0x14]
mov edi, dword [eax - 8]
call fcn.0044d3f9
sub edi, eax
lea ecx, [ebp - 0x1c]
dec edi
push edi
push ecx
lea ecx, [ebp - 0x14]
call fcn.004485be
mov dl, byte [ebp + 0xb]
mov esi, dword [eax]
push 0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
mov byte [ebp - 0x54], dl
call fcn.00404400
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x54]
push ebx
call fcn.00404210
test al, al
je 0x41404a
mov edi, dword [ebp - 0x50]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ebx
mov byte [ecx + ebx], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 6
mov ecx, esi
mov edi, dword [esi + 4]
mov edx, dword [edi + 4]
push edx
push edi
call fcn.00404540
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [ebp - 0x54]
add eax, 8
push ecx
push eax
call fcn.00405d50
mov ecx, dword [esi + 8]
add esp, 8
inc ecx
mov byte [ebp - 4], 5
mov dword [esi + 8], ecx
push 1
lea ecx, [ebp - 0x54]
call fcn.00404400
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0044d0ad
push 0x3d
lea ecx, [ebp - 0x14]
call fcn.0044d3f9
lea edx, [ebp - 0x20]
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.0044863a
mov eax, dword [eax]
mov byte [ebp - 4], 7
push eax
push str.Adding__s_to_list_of_files_to_be_renamed
push 0x20
push 0x4788a8
call fcn.0041f763
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0044d0ad
push 0x3d
lea ecx, [ebp - 0x14]
call fcn.0044d3f9
lea ecx, [ebp - 0x24]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0044863a
mov edx, dword [eax]
mov al, byte [ebp + 0xb]
mov byte [ebp - 0x44], al
xor ebx, ebx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 8
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00404770
mov edi, dword [esi + 4]
mov byte [ebp - 4], 9
mov ecx, dword [edi + 4]
push ecx
push edi
mov ecx, esi
call fcn.00404540
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x44]
mov dword [ecx], eax
add eax, 8
push edx
push eax
call fcn.00405d50
mov edx, dword [esi + 8]
mov eax, dword [ebp - 0x40]
add esp, 8
inc edx
cmp eax, ebx
mov dword [esi + 8], edx
je 0x414171
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x414168
cmp al, 0xff
je 0x414168
dec al
mov byte [ecx], al
jmp 0x414171
push ecx
call fcn.0044d4f6
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 3
call fcn.0044d0ad
jmp 0x413f65
lea ecx, [ebp - 0x68]
call fcn.0044f3e6
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0044d0ad
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0
call fcn.0044f073
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4141e2
mov al, byte [ecx - 1]
test al, al
je 0x4141d8
cmp al, 0xff
je 0x4141d8
dec al
mov byte [ecx - 1], al
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.0044d4f6
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret