Function at 0x4118f9
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 0x411916
push ebx
push 5
call fcn.0040a031
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.00447d79
push eax
call fcn.00438727
pop ecx
test al, al
jne 0x4119fe
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc8]
push dword [ebp + 0xc]
call fcn.00448999
test al, al
je 0x4119fe
lea ecx, [ebp - 0xcc]
call fcn.00441776
mov eax, dword [0x4ddec8]
and eax, 0x40000
or eax, ebx
je 0x411a51
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0044339a
add esp, 0xc
test al, al
jne 0x411a51
test edi, edi
jne 0x411a48
lea ecx, [ebp - 0x10]
call fcn.00428bf1
lea ecx, [ebp - 0x28]
call fcn.00428bf1
push closesocket
push esi
lea ecx, [ebp - 0x28]
call fcn.0042f82b
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446303
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00426528
call fcn.00458ba7
cmp dword [ebp - 0x10], ebx
mov eax, 0x49bb64
cmovne eax, dword [ebp - 0x10]
push eax
push dword [ebp + 0x18]
call fcn.0040eb94
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
jmp 0x411baf
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x2c], eax
cmp edi, 2
jne 0x411a3c
cmp eax, 3
jne 0x411a17
push esi
call fcn.00441e04
pop ecx
mov eax, dword [0x4ddec8]
and eax, 0x80000
or eax, ebx
je 0x411a40
lea ecx, [ebp - 0xcc]
call fcn.00441776
push ebx
push 7
push esi
call fcn.00443244
add esp, 0xc
test edi, edi
je 0x411ab5
push 0x32
call fcn.00458bc7
pop ecx
sub edi, 1
jns 0x41192c
mov edi, dword [ebp + 0x14]
cmp dword [edi + 4], ebx
je 0x411a8c
cmp dword [edi + 0xc], ebx
jl 0x411a8c
push 0x80
push 0x301
push esi
lea ecx, [ebp - 0xcc]
call fcn.00447d79
push edi
lea ecx, [ebp - 0xcc]
call fcn.00441c20
push edi
lea ecx, [ebp - 0xcc]
call fcn.00441cee
lea ecx, [ebp - 0xcc]
call fcn.00441776
cmp dword [ebp + 0x1c], 0xffffffff
je 0x411aae
push 0x1127
push dword [ebp + 0x1c]
push esi
call fcn.004432cc
add esp, 0xc
mov bl, 1
jmp 0x411bb4
lea ecx, [ebp - 0x38]
call fcn.00428bf1
lea ecx, [ebp - 0x10]
call fcn.00428bf1
push closesocket
push esi
lea ecx, [ebp - 0x10]
call fcn.0042f82b
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00446303
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00426528
lea ecx, [ebp - 0x28]
call fcn.00428bf1
cmp dword [ebp - 0x38], ebx
lea eax, [ebp - 0x10]
mov edi, dword [0x4d13a4]
mov esi, 0x49bb64
cmovne esi, dword [ebp - 0x38]
push 0x1f
push eax
call fcn.00408c01
push ebx
push edi
push esi
cmp dword [eax], ebx
mov ecx, 0x49bb64
push 0x49ce70
cmovne ecx, dword [eax]
lea eax, [ebp - 0x28]
push ecx
push dword [0x4d13a4]
push eax
call fcn.0042fa2c
add esp, 0x24
lea ecx, [ebp - 0x10]
call fcn.00426528
cmp byte [ebp + 0x20], bl
jne 0x411b53
mov eax, dword [0x4ddec8]
and eax, 0x800
or eax, ebx
mov al, bl
je 0x411b55
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.0044537e
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.004429d8
add esp, 0xc
test al, al
jne 0x411bc6
movsx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x28]
push str.Drive__c:_is_not_present._r_n
push eax
call fcn.00428639
add esp, 0xc
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.00423f7f
lea ecx, [ebp - 0x28]
call fcn.00426528
lea ecx, [ebp - 0x38]
call fcn.00426528
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.0045895f
pop ecx
pop ecx
cmp dword [ebp - 0xc], ebx
jle 0x411be9
push dword [0x4d13a8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042460b
lea ecx, [ebp - 0x10]
call fcn.00426528
mov byte [ebp - 2], 1
cmp byte [ebp - 0x2c], bl
je 0x411b98
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00445218
mov esi, 0x49bb60
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.00443732
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.00426528
cmp dword [ebp - 0x18], ebx
jle 0x411dc8
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.004436a0
push eax
call fcn.00438727
add esp, 0x10
test al, al
jne 0x411dc8
cmp dword [ebp - 0x1c], ebx
mov eax, esi
push ebx
cmovne eax, dword [ebp - 0x1c]
push eax
call fcn.00461031
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
cmp dword [edi + 4], ebx
je 0x411cc4
cmp dword [edi + 0xc], ebx
jl 0x411cc4
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.00447d79
push edi
lea ecx, [ebp - 0x154]
call fcn.00441c20
push edi
lea ecx, [ebp - 0x154]
call fcn.00441cee
lea ecx, [ebp - 0x154]
call fcn.00401af4
lea ecx, [ebp - 0x10]
call fcn.00428bf1
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00446303
cmp dword [ebp - 0x1c], ebx
mov eax, esi
cmovne eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00446191
add esp, 0x14
lea ecx, [ebp - 0x1c]
push eax
call fcn.00408887
lea ecx, [ebp - 0x44]
call fcn.00426528
call fcn.00458ba7
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.004444d0
add esp, 0x14
test al, al
jne 0x411d7e
lea eax, [ebp - 0x44]
push eax
call fcn.00458b07
mov esi, 0x49bb64
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.00428639
add esp, 0x18
lea ecx, [ebp - 0x44]
call fcn.00426528
cmp dword [ebp - 0x10], ebx
push ebx
cmovne esi, dword [ebp - 0x10]
push esi
call fcn.004440e6
pop ecx
pop ecx
jmp 0x411dc3
or dword [0x4ddec8], 0x4000
mov ecx, 0x49bb64
mov eax, dword [0x4ddecc]
cmp dword [ebp - 0x10], ebx
mov dword [0x4ddecc], 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.00428639
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov byte [eax], 1
lea ecx, [ebp - 0x10]
jmp 0x411dfa
lea eax, [ebp - 0x44]
push eax
call fcn.00458b07
mov edx, 0x49bb64
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.00428639
add esp, 0x14
lea ecx, [ebp - 0x44]
call fcn.00426528
lea ecx, [ebp - 0x1c]
call fcn.00426528
cmp byte [ebp - 2], bl
jne 0x411b98
lea eax, [ebp - 0x28]
push eax
call fcn.0040ea79
pop ecx
jmp 0x411ba4