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.0044815c
push eax
call fcn.00438a5d
pop ecx
test al, al
jne 0x411a69
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc8]
push dword [ebp + 0xc]
call fcn.00448de5
test al, al
je 0x411a69
lea ecx, [ebp - 0xcc]
call fcn.00441ab8
mov eax, dword [0x4def08]
and eax, 0x40000
or eax, ebx
je 0x411abc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004436dc
add esp, 0xc
test al, al
jne 0x411abc
test edi, edi
jne 0x411ab3
lea ecx, [ebp - 0x10]
call fcn.00428cde
lea ecx, [ebp - 0x28]
call fcn.00428cde
push closesocket
push esi
lea ecx, [ebp - 0x28]
call fcn.0042f986
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004466d3
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00426615
call fcn.00459073
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.00442146
pop ecx
mov eax, dword [0x4def08]
and eax, 0x80000
or eax, ebx
je 0x411aab
lea ecx, [ebp - 0xcc]
call fcn.00441ab8
push ebx
push 7
push esi
call fcn.00443586
add esp, 0xc
test edi, edi
je 0x411b20
push 0x32
call fcn.00459093
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.0044815c
push edi
lea ecx, [ebp - 0xcc]
call fcn.00441f62
push edi
lea ecx, [ebp - 0xcc]
call fcn.00442030
lea ecx, [ebp - 0xcc]
call fcn.00441ab8
cmp dword [ebp + 0x1c], 0xffffffff
je 0x411b19
push 0x1127
push dword [ebp + 0x1c]
push esi
call fcn.0044360e
add esp, 0xc
mov bl, 1
jmp 0x411c1f
lea ecx, [ebp - 0x38]
call fcn.00428cde
lea ecx, [ebp - 0x10]
call fcn.00428cde
push closesocket
push esi
lea ecx, [ebp - 0x10]
call fcn.0042f986
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004466d3
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00426615
lea ecx, [ebp - 0x28]
call fcn.00428cde
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 0x49de7c
cmovne ecx, dword [eax]
lea eax, [ebp - 0x28]
push ecx
push dword [0x4d23a4]
push eax
call fcn.0042fb87
add esp, 0x24
lea ecx, [ebp - 0x10]
call fcn.00426615
cmp byte [ebp + 0x20], bl
jne 0x411bbe
mov eax, dword [0x4def08]
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.0044574e
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.00442d1a
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.00428726
add esp, 0xc
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.0042406c
lea ecx, [ebp - 0x28]
call fcn.00426615
lea ecx, [ebp - 0x38]
call fcn.00426615
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.00458e2b
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.004246f8
lea ecx, [ebp - 0x10]
call fcn.00426615
mov byte [ebp - 2], 1
cmp byte [ebp - 0x2c], bl
je 0x411c03
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004455e8
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.00443a74
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.00426615
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.004439e2
push eax
call fcn.00438a5d
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.00461462
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.0044815c
push edi
lea ecx, [ebp - 0x154]
call fcn.00441f62
push edi
lea ecx, [ebp - 0x154]
call fcn.00442030
lea ecx, [ebp - 0x154]
call fcn.00401af4
lea ecx, [ebp - 0x10]
call fcn.00428cde
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004466d3
cmp dword [ebp - 0x1c], ebx
mov eax, esi
cmovne eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00446561
add esp, 0x14
lea ecx, [ebp - 0x1c]
push eax
call fcn.00408887
lea ecx, [ebp - 0x44]
call fcn.00426615
call fcn.00459073
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.004448a0
add esp, 0x14
test al, al
jne 0x411de9
lea eax, [ebp - 0x44]
push eax
call fcn.00458fd3
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.00428726
add esp, 0x18
lea ecx, [ebp - 0x44]
call fcn.00426615
cmp dword [ebp - 0x10], ebx
push ebx
cmovne esi, dword [ebp - 0x10]
push esi
call fcn.004444b6
pop ecx
pop ecx
jmp 0x411e2e
or dword [0x4def08], 0x4000
mov ecx, 0x49cb74
mov eax, dword [0x4def0c]
cmp dword [ebp - 0x10], ebx
mov dword [0x4def0c], 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.00428726
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.00458fd3
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.00428726
add esp, 0x14
lea ecx, [ebp - 0x44]
call fcn.00426615
lea ecx, [ebp - 0x1c]
call fcn.00426615
cmp byte [ebp - 2], bl
jne 0x411c03
lea eax, [ebp - 0x28]
push eax
call fcn.0040ea7d
pop ecx
jmp 0x411c0f