Function at 0x411739
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 0x411756
push ebx
push 5
call fcn.0040a027
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.00447260
push eax
call fcn.00437dac
pop ecx
test al, al
jne 0x41183e
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc8]
push dword [ebp + 0xc]
call fcn.00447e80
test al, al
je 0x41183e
lea ecx, [ebp - 0xcc]
call fcn.00440cd9
mov eax, dword [0x4d9958]
and eax, 0x40000
or eax, ebx
je 0x411891
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00442881
add esp, 0xc
test al, al
jne 0x411891
test edi, edi
jne 0x411888
lea ecx, [ebp - 0x10]
call fcn.004282a8
lea ecx, [ebp - 0x28]
call fcn.004282a8
push closesocket
push esi
lea ecx, [ebp - 0x28]
call fcn.0042ef3b
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004457ea
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00425c1b
call fcn.00457a0a
cmp dword [ebp - 0x10], ebx
mov eax, 0x49ab64
cmovne eax, dword [ebp - 0x10]
push eax
push dword [ebp + 0x18]
call fcn.0040eba5
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
jmp 0x4119ef
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x2c], eax
cmp edi, 2
jne 0x41187c
cmp eax, 3
jne 0x411857
push esi
call fcn.00441341
pop ecx
mov eax, dword [0x4d9958]
and eax, 0x80000
or eax, ebx
je 0x411880
lea ecx, [ebp - 0xcc]
call fcn.00440cd9
push ebx
push 7
push esi
call fcn.0044272b
add esp, 0xc
test edi, edi
je 0x4118f5
push 0x32
call fcn.00457a2a
pop ecx
sub edi, 1
jns 0x41176c
mov edi, dword [ebp + 0x14]
cmp dword [edi + 4], ebx
je 0x4118cc
cmp dword [edi + 0xc], ebx
jl 0x4118cc
push 0x80
push 0x301
push esi
lea ecx, [ebp - 0xcc]
call fcn.00447260
push edi
lea ecx, [ebp - 0xcc]
call fcn.0044115d
push edi
lea ecx, [ebp - 0xcc]
call fcn.0044122b
lea ecx, [ebp - 0xcc]
call fcn.00440cd9
cmp dword [ebp + 0x1c], 0xffffffff
je 0x4118ee
push 0x1127
push dword [ebp + 0x1c]
push esi
call fcn.004427b3
add esp, 0xc
mov bl, 1
jmp 0x4119f4
lea ecx, [ebp - 0x38]
call fcn.004282a8
lea ecx, [ebp - 0x10]
call fcn.004282a8
push closesocket
push esi
lea ecx, [ebp - 0x10]
call fcn.0042ef3b
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004457ea
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00425c1b
lea ecx, [ebp - 0x28]
call fcn.004282a8
cmp dword [ebp - 0x38], ebx
lea eax, [ebp - 0x10]
mov edi, dword [0x4ce3a4]
mov esi, 0x49ab64
cmovne esi, dword [ebp - 0x38]
push 0x1f
push eax
call fcn.00408bf7
push ebx
push edi
push esi
cmp dword [eax], ebx
mov ecx, 0x49ab64
push 0x49be60
cmovne ecx, dword [eax]
lea eax, [ebp - 0x28]
push ecx
push dword [0x4ce3a4]
push eax
call fcn.0042f13c
add esp, 0x24
lea ecx, [ebp - 0x10]
call fcn.00425c1b
cmp byte [ebp + 0x20], bl
jne 0x411993
mov eax, dword [0x4d9958]
and eax, 0x800
or eax, ebx
mov al, bl
je 0x411995
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.00444865
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.00441f15
add esp, 0xc
test al, al
jne 0x411a06
movsx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x28]
push str.Drive__c:_is_not_present._r_n
push eax
call fcn.00427d0e
add esp, 0xc
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.00423848
lea ecx, [ebp - 0x28]
call fcn.00425c1b
lea ecx, [ebp - 0x38]
call fcn.00425c1b
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.004577da
pop ecx
pop ecx
cmp dword [ebp - 0xc], ebx
jle 0x411a29
push dword [0x4ce3a8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.00423ed4
lea ecx, [ebp - 0x10]
call fcn.00425c1b
mov byte [ebp - 2], 1
cmp byte [ebp - 0x2c], bl
je 0x4119d8
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004446ff
mov esi, 0x49ab60
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.00442c19
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.00425c1b
cmp dword [ebp - 0x18], ebx
jle 0x411c08
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.00442b87
push eax
call fcn.00437dac
add esp, 0x10
test al, al
jne 0x411c08
cmp dword [ebp - 0x1c], ebx
mov eax, esi
push ebx
cmovne eax, dword [ebp - 0x1c]
push eax
call fcn.0045fad6
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
cmp dword [edi + 4], ebx
je 0x411b04
cmp dword [edi + 0xc], ebx
jl 0x411b04
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.00447260
push edi
lea ecx, [ebp - 0x154]
call fcn.0044115d
push edi
lea ecx, [ebp - 0x154]
call fcn.0044122b
lea ecx, [ebp - 0x154]
call fcn.00401af4
lea ecx, [ebp - 0x10]
call fcn.004282a8
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004457ea
cmp dword [ebp - 0x1c], ebx
mov eax, esi
cmovne eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00445678
add esp, 0x14
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040887d
lea ecx, [ebp - 0x44]
call fcn.00425c1b
call fcn.00457a0a
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.004439b7
add esp, 0x14
test al, al
jne 0x411bbe
lea eax, [ebp - 0x44]
push eax
call fcn.00457917
mov esi, 0x49ab64
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.00427d0e
add esp, 0x18
lea ecx, [ebp - 0x44]
call fcn.00425c1b
cmp dword [ebp - 0x10], ebx
push ebx
cmovne esi, dword [ebp - 0x10]
push esi
call fcn.004435cd
pop ecx
pop ecx
jmp 0x411c03
or dword [0x4d9958], 0x4000
mov ecx, 0x49ab64
mov eax, dword [0x4d995c]
cmp dword [ebp - 0x10], ebx
mov dword [0x4d995c], 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.00427d0e
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov byte [eax], 1
lea ecx, [ebp - 0x10]
jmp 0x411c3a
lea eax, [ebp - 0x44]
push eax
call fcn.00457917
mov edx, 0x49ab64
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.00427d0e
add esp, 0x14
lea ecx, [ebp - 0x44]
call fcn.00425c1b
lea ecx, [ebp - 0x1c]
call fcn.00425c1b
cmp byte [ebp - 2], bl
jne 0x4119d8
lea eax, [ebp - 0x28]
push eax
call fcn.0040ea8a
pop ecx
jmp 0x4119e4