Function at 0x415e40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c603
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x491d88]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push 0x14
xor ebx, ebx
push str._Windows_wininit.ini
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00403dd0
mov dword [ebp - 4], ebx
call fcn.0043a2e9
mov eax, dword [eax + 4]
push 0x800
push ebx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [eax + 0x2c8]
call fcn.00423f30
lea ecx, [ebp - 0x78]
call fcn.00448a0f
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
jae 0x415ed1
lea eax, [ebp - 0x2c]
push ebx
push ebx
push eax
lea ecx, [ebp - 0x78]
call fcn.00448a25
cmp eax, ebx
jne 0x415f80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x415f3d
cmp esi, 3
je 0x415f3d
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x415f01
lea eax, [ebp - 0x2c]
push esi
push eax
push str.Failed_to_open__s__error_d_n
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x14
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.00448e0c
cmp dword [ebp - 0x18], edi
jb 0x415f36
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042f9ca
add esp, 4
mov eax, esi
jmp 0x416359
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x415f48
lea eax, [ebp - 0x2c]
push eax
push str.The_file__s_did_not_exist__so_there_are_no_files_to_be_renamed_at_reboot.
push 0x20
push 0x4932a8
call fcn.00401300
add esp, 0x10
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.00448e0c
cmp dword [ebp - 0x18], edi
jb 0x415f79
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042f9ca
add esp, 4
xor eax, eax
jmp 0x416359
call fcn.00441227
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x415f9a
push 0x80004005
call fcn.00401110
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
jmp 0x415fb5
mov edi, 0x10
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x78]
call fcn.00448f3f
cmp eax, ebx
je 0x4162bc
mov edx, dword [ebp - 0x34]
push 8
push str._Rename_
push edx
call fcn.00452cfc
add esp, 0xc
test eax, eax
jne 0x415fb5
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x78]
call fcn.00448f3f
cmp eax, ebx
je 0x415fb0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x415fe0
jge 0x416006
push 0x80070057
call fcn.00401110
cmp byte [ecx], 0x5b
je 0x415fb0
cmp eax, ebx
jle 0x415fe0
push 0x3d
push ecx
call fcn.00455018
add esp, 8
cmp eax, ebx
je 0x415fe0
mov ecx, dword [ebp - 0x34]
sub eax, ecx
cmp eax, 0xffffffff
je 0x415fe0
mov esi, dword [ecx - 0xc]
cmp esi, ebx
jg 0x416034
or eax, 0xffffffff
jmp 0x41604b
push 0x3d
push ecx
call fcn.00455018
add esp, 8
cmp eax, ebx
jne 0x416048
or eax, 0xffffffff
jmp 0x41604b
sub eax, dword [ebp - 0x34]
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040f110
mov edx, dword [eax]
push edx
push str.Adding__s_to_list_of_files_to_be_renamed
push 0x20
push 0x4932a8
mov byte [ebp - 4], 4
call fcn.00401300
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41609b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
mov esi, dword [eax - 0xc]
cmp esi, ebx
jg 0x4160aa
or eax, 0xffffffff
jmp 0x4160c1
push 0x3d
push eax
call fcn.00455018
add esp, 8
cmp eax, ebx
jne 0x4160be
or eax, 0xffffffff
jmp 0x4160c1
sub eax, dword [ebp - 0x34]
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040f110
mov ecx, dword [eax]
mov eax, ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
lea esi, [eax + 1]
jmp 0x4160f0
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4160f0
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00403dd0
mov ecx, dword [ebp - 0x38]
mov esi, dword [ecx + 4]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x58]
push edx
push eax
push esi
mov byte [ebp - 4], 6
call fcn.00407160
mov ecx, dword [ebp - 0x38]
push 1
mov edi, eax
call fcn.00406810
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [ebp - 0x40], 0x10
jb 0x416143
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0042f9ca
add esp, 4
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416173
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], ebx
jg 0x416180
or eax, 0xffffffff
jmp 0x416197
push 0x3d
push eax
call fcn.00455018
add esp, 8
cmp eax, ebx
jne 0x416194
or eax, 0xffffffff
jmp 0x416197
sub eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040f190
mov edx, dword [eax]
push edx
push str.Adding__s_to_list_of_files_to_be_renamed
push 0x20
push 0x4932a8
mov byte [ebp - 4], 7
call fcn.00401300
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4161e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], ebx
jg 0x4161ef
or eax, 0xffffffff
jmp 0x416206
push 0x3d
push eax
call fcn.00455018
add esp, 8
cmp eax, ebx
jne 0x416203
or eax, 0xffffffff
jmp 0x416206
sub eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040f190
mov ecx, dword [eax]
mov eax, ecx
mov byte [ebp - 4], 8
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
lea esi, [eax + 1]
jmp 0x416230
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x416230
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00403dd0
mov ecx, dword [ebp - 0x38]
mov esi, dword [ecx + 4]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x58]
push edx
push eax
push esi
mov byte [ebp - 4], 9
call fcn.00407160
mov ecx, dword [ebp - 0x38]
push 1
mov edi, eax
call fcn.00406810
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [ebp - 0x40], 0x10
jb 0x416283
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0042f9ca
add esp, 4
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415fe0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x415fe0
lea ecx, [ebp - 0x78]
call fcn.00448dd0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4162e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call fcn.00448e0c
cmp dword [ebp - 0x18], edi
jb 0x415f79
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042f9ca
add esp, 4
xor eax, eax
jmp 0x416359
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045309e
mov esp, ebp
pop ebp
ret