Function at 0x411964
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x10], ebx
jge 0x411981
push ebx
push 5
call fcn.0040a06d
pop ecx
pop ecx
mov eax, dword [ebp + 0x24]
lea ecx, [ebp - 0xcc]
mov byte [eax], bl
call fcn.00401a0d
mov esi, dword [ebp + 8]
push 2
pop edi
push 0x80
push 3
push esi
lea ecx, [ebp - 0xcc]
call fcn.00447f8b
push eax
call fcn.00438927
pop ecx
test al, al
jne 0x411a69
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc8]
push dword [ebp + 0xc]
call fcn.00448bab
test al, al
je 0x411a69
lea ecx, [ebp - 0xcc]
call fcn.00441976
mov eax, dword [0x4deec8]
and eax, 0x40000
or eax, ebx
je 0x411abc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0044359a
add esp, 0xc
test al, al
jne 0x411abc
test edi, edi
jne 0x411ab3
lea ecx, [ebp - 0x10]
call fcn.00428d6d
lea ecx, [ebp - 0x28]
call fcn.00428d6d
push closesocket
push esi
lea ecx, [ebp - 0x28]
call fcn.0042f9a7
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446503
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.004266a4
call fcn.00458dea
cmp dword [ebp - 0x10], ebx
mov eax, 0x49cb74
cmovne eax, dword [ebp - 0x10]
push eax
push dword [ebp + 0x18]
call fcn.0040eb98
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
jmp 0x411c1a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x2c], eax
cmp edi, 2
jne 0x411aa7
cmp eax, 3
jne 0x411a82
push esi
call fcn.00442004
pop ecx
mov eax, dword [0x4deec8]
and eax, 0x80000
or eax, ebx
je 0x411aab
lea ecx, [ebp - 0xcc]
call fcn.00441976
push ebx
push 7
push esi
call fcn.00443444
add esp, 0xc
test edi, edi
je 0x411b20
push 0x32
call fcn.00458e0a
pop ecx
sub edi, 1
jns 0x411997
mov edi, dword [ebp + 0x14]
cmp dword [edi + 4], ebx
je 0x411af7
cmp dword [edi + 0xc], ebx
jl 0x411af7
push 0x80
push 0x301
push esi
lea ecx, [ebp - 0xcc]
call fcn.00447f8b
push edi
lea ecx, [ebp - 0xcc]
call fcn.00441e20
push edi
lea ecx, [ebp - 0xcc]
call fcn.00441eee
lea ecx, [ebp - 0xcc]
call fcn.00441976
cmp dword [ebp + 0x1c], 0xffffffff
je 0x411b19
push 0x1127
push dword [ebp + 0x1c]
push esi
call fcn.004434cc
add esp, 0xc
mov bl, 1
jmp 0x411c1f
lea ecx, [ebp - 0x38]
call fcn.00428d6d
lea ecx, [ebp - 0x10]
call fcn.00428d6d
push closesocket
push esi
lea ecx, [ebp - 0x10]
call fcn.0042f9a7
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00446503
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.004266a4
lea ecx, [ebp - 0x28]
call fcn.00428d6d
cmp dword [ebp - 0x38], ebx
lea eax, [ebp - 0x10]
mov edi, dword [0x4d23a4]
mov esi, 0x49cb74
cmovne esi, dword [ebp - 0x38]
push 0x1f
push eax
call fcn.00408c15
push ebx
push edi
push esi
cmp dword [eax], ebx
mov ecx, 0x49cb74
push 0x49de80
cmovne ecx, dword [eax]
lea eax, [ebp - 0x28]
push ecx
push dword [0x4d23a4]
push eax
call fcn.0042fba8
add esp, 0x24
lea ecx, [ebp - 0x10]
call fcn.004266a4
cmp byte [ebp + 0x20], bl
jne 0x411bbe
mov eax, dword [0x4deec8]
and eax, 0x800
or eax, ebx
mov al, bl
je 0x411bc0
mov al, 1
mov esi, dword [ebp - 0x2c]
xor ecx, ecx
movzx eax, al
cmp esi, 0x7b
push ebx
push dword [ebp + 8]
cmove eax, ecx
mov dword [ebp - 0x2c], eax
call fcn.0044557e
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.00442bd8
add esp, 0xc
test al, al
jne 0x411c31
movsx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x28]
push str.Drive__c:_is_not_present._r_n
push eax
call fcn.004287b5
add esp, 0xc
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.004240fb
lea ecx, [ebp - 0x28]
call fcn.004266a4
lea ecx, [ebp - 0x38]
call fcn.004266a4
lea ecx, [ebp - 0xcc]
call fcn.00401af4
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00458ba2
pop ecx
pop ecx
cmp dword [ebp - 0xc], ebx
jle 0x411c54
push dword [0x4d23a8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.00424787
lea ecx, [ebp - 0x10]
call fcn.004266a4
mov byte [ebp - 2], 1
cmp byte [ebp - 0x2c], bl
je 0x411c03
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00445418
mov esi, 0x49cb70
push ebx
mov ecx, esi
cmp dword [eax], ebx
push ebx
cmovne ecx, dword [eax]
lea eax, [ebp - 0x1c]
push ecx
push eax
call fcn.00443932
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.004266a4
cmp dword [ebp - 0x18], ebx
jle 0x411e33
push dword [ebp + 0x10]
cmp dword [ebp - 0x1c], ebx
mov eax, esi
push dword [ebp + 0xc]
cmovne eax, dword [ebp - 0x1c]
push eax
call fcn.004438a0
push eax
call fcn.00438927
add esp, 0x10
test al, al
jne 0x411e33
cmp dword [ebp - 0x1c], ebx
mov eax, esi
push ebx
cmovne eax, dword [ebp - 0x1c]
push eax
call fcn.00461164
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
cmp dword [edi + 4], ebx
je 0x411d2f
cmp dword [edi + 0xc], ebx
jl 0x411d2f
lea ecx, [ebp - 0x154]
call fcn.00401a0d
cmp dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x154]
push 0x80
mov eax, esi
cmovne eax, dword [ebp - 0x1c]
push 0x301
push eax
call fcn.00447f8b
push edi
lea ecx, [ebp - 0x154]
call fcn.00441e20
push edi
lea ecx, [ebp - 0x154]
call fcn.00441eee
lea ecx, [ebp - 0x154]
call fcn.00401af4
lea ecx, [ebp - 0x10]
call fcn.00428d6d
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00446503
cmp dword [ebp - 0x1c], ebx
mov eax, esi
cmovne eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00446391
add esp, 0x14
lea ecx, [ebp - 0x1c]
push eax
call fcn.00408887
lea ecx, [ebp - 0x44]
call fcn.004266a4
call fcn.00458dea
cmp dword [ebp - 0x1c], ebx
push 8
cmovne esi, dword [ebp - 0x1c]
sub esp, 0xc
mov ecx, esp
push dword [ebp + 8]
call fcn.00401a8c
push esi
call fcn.004446d0
add esp, 0x14
test al, al
jne 0x411de9
lea eax, [ebp - 0x44]
push eax
call fcn.00458d4a
mov esi, 0x49cb74
mov edx, esi
mov ecx, esi
cmp dword [eax], ebx
cmovne edx, dword [eax]
mov eax, esi
cmp dword [ebp - 0x10], ebx
push edx
cmovne ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x38], ebx
push ecx
cmovne eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push str.Failed_to_register__s_for_replacement_with_temporary_file__s_r_n_s_r_n_r_n
push eax
call fcn.004287b5
add esp, 0x18
lea ecx, [ebp - 0x44]
call fcn.004266a4
cmp dword [ebp - 0x10], ebx
push ebx
cmovne esi, dword [ebp - 0x10]
push esi
call fcn.004442e6
pop ecx
pop ecx
jmp 0x411e2e
or dword [0x4deec8], 0x4000
mov ecx, 0x49cb74
mov eax, dword [0x4deecc]
cmp dword [ebp - 0x10], ebx
mov dword [0x4deecc], eax
mov eax, ecx
cmovne eax, dword [ebp - 0x10]
cmp dword [ebp - 0x38], ebx
push eax
cmovne ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x28]
push ecx
push str.__s__was_successfully_registered_for_replacement._r_nTemporary_file_is___s__r_nReboot_will_be_required._r_n_r_n
push eax
mov byte [ebp - 2], bl
call fcn.004287b5
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov byte [eax], 1
lea ecx, [ebp - 0x10]
jmp 0x411e65
lea eax, [ebp - 0x44]
push eax
call fcn.00458d4a
mov edx, 0x49cb74
mov ecx, edx
cmp dword [eax], ebx
cmovne ecx, dword [eax]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x38], ebx
push ecx
cmovne edx, dword [ebp - 0x38]
push edx
push str.Failed_to_register__s_for_replacement_because_no_temporary_file_could_be_created._r_n_s_r_n_r_n
push eax
call fcn.004287b5
add esp, 0x14
lea ecx, [ebp - 0x44]
call fcn.004266a4
lea ecx, [ebp - 0x1c]
call fcn.004266a4
cmp byte [ebp - 2], bl
jne 0x411c03
lea eax, [ebp - 0x28]
push eax
call fcn.0040ea7d
pop ecx
jmp 0x411c0f