Function at 0x4118ae
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 0x4118cb
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.00447c77
push eax
call fcn.00438625
pop ecx
test al, al
jne 0x4119b3
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc8]
push dword [ebp + 0xc]
call fcn.00448897
test al, al
je 0x4119b3
lea ecx, [ebp - 0xcc]
call fcn.00441674
mov eax, dword [0x4ddea8]
and eax, 0x40000
or eax, ebx
je 0x411a06
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00443298
add esp, 0xc
test al, al
jne 0x411a06
test edi, edi
jne 0x4119fd
lea ecx, [ebp - 0x10]
call fcn.00428af1
lea ecx, [ebp - 0x28]
call fcn.00428af1
push closesocket
push esi
lea ecx, [ebp - 0x28]
call fcn.0042f72b
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446201
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00426428
call fcn.00458877
cmp dword [ebp - 0x10], ebx
mov eax, 0x49bb64
cmovne eax, dword [ebp - 0x10]
push eax
push dword [ebp + 0x18]
call fcn.0040ec51
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
jmp 0x411b64
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x2c], eax
cmp edi, 2
jne 0x4119f1
cmp eax, 3
jne 0x4119cc
push esi
call fcn.00441d02
pop ecx
mov eax, dword [0x4ddea8]
and eax, 0x80000
or eax, ebx
je 0x4119f5
lea ecx, [ebp - 0xcc]
call fcn.00441674
push ebx
push 7
push esi
call fcn.00443142
add esp, 0xc
test edi, edi
je 0x411a6a
push 0x32
call fcn.00458897
pop ecx
sub edi, 1
jns 0x4118e1
mov edi, dword [ebp + 0x14]
cmp dword [edi + 4], ebx
je 0x411a41
cmp dword [edi + 0xc], ebx
jl 0x411a41
push 0x80
push 0x301
push esi
lea ecx, [ebp - 0xcc]
call fcn.00447c77
push edi
lea ecx, [ebp - 0xcc]
call fcn.00441b1e
push edi
lea ecx, [ebp - 0xcc]
call fcn.00441bec
lea ecx, [ebp - 0xcc]
call fcn.00441674
cmp dword [ebp + 0x1c], 0xffffffff
je 0x411a63
push 0x1127
push dword [ebp + 0x1c]
push esi
call fcn.004431ca
add esp, 0xc
mov bl, 1
jmp 0x411b69
lea ecx, [ebp - 0x38]
call fcn.00428af1
lea ecx, [ebp - 0x10]
call fcn.00428af1
push closesocket
push esi
lea ecx, [ebp - 0x10]
call fcn.0042f72b
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00446201
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00426428
lea ecx, [ebp - 0x28]
call fcn.00428af1
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 0x49ce6c
cmovne ecx, dword [eax]
lea eax, [ebp - 0x28]
push ecx
push dword [0x4d13a4]
push eax
call fcn.0042f92c
add esp, 0x24
lea ecx, [ebp - 0x10]
call fcn.00426428
cmp byte [ebp + 0x20], bl
jne 0x411b08
mov eax, dword [0x4ddea8]
and eax, 0x800
or eax, ebx
mov al, bl
je 0x411b0a
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.0044527c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.004428d6
add esp, 0xc
test al, al
jne 0x411b7b
movsx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x28]
push str.Drive__c:_is_not_present._r_n
push eax
call fcn.00428539
add esp, 0xc
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.00423e7f
lea ecx, [ebp - 0x28]
call fcn.00426428
lea ecx, [ebp - 0x38]
call fcn.00426428
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.0045862f
pop ecx
pop ecx
cmp dword [ebp - 0xc], ebx
jle 0x411b9e
push dword [0x4d13a8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042450b
lea ecx, [ebp - 0x10]
call fcn.00426428
mov byte [ebp - 2], 1
cmp byte [ebp - 0x2c], bl
je 0x411b4d
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00445116
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.00443630
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.00426428
cmp dword [ebp - 0x18], ebx
jle 0x411d7d
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.0044359e
push eax
call fcn.00438625
add esp, 0x10
test al, al
jne 0x411d7d
cmp dword [ebp - 0x1c], ebx
mov eax, esi
push ebx
cmovne eax, dword [ebp - 0x1c]
push eax
call fcn.00460baa
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
cmp dword [edi + 4], ebx
je 0x411c79
cmp dword [edi + 0xc], ebx
jl 0x411c79
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.00447c77
push edi
lea ecx, [ebp - 0x154]
call fcn.00441b1e
push edi
lea ecx, [ebp - 0x154]
call fcn.00441bec
lea ecx, [ebp - 0x154]
call fcn.00401af4
lea ecx, [ebp - 0x10]
call fcn.00428af1
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00446201
cmp dword [ebp - 0x1c], ebx
mov eax, esi
cmovne eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0044608f
add esp, 0x14
lea ecx, [ebp - 0x1c]
push eax
call fcn.00408887
lea ecx, [ebp - 0x44]
call fcn.00426428
call fcn.00458877
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.004443ce
add esp, 0x14
test al, al
jne 0x411d33
lea eax, [ebp - 0x44]
push eax
call fcn.004587d7
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.00428539
add esp, 0x18
lea ecx, [ebp - 0x44]
call fcn.00426428
cmp dword [ebp - 0x10], ebx
push ebx
cmovne esi, dword [ebp - 0x10]
push esi
call fcn.00443fe4
pop ecx
pop ecx
jmp 0x411d78
or dword [0x4ddea8], 0x4000
mov ecx, 0x49bb64
mov eax, dword [0x4ddeac]
cmp dword [ebp - 0x10], ebx
mov dword [0x4ddeac], 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.00428539
mov eax, dword [ebp + 0x24]
add esp, 0x10
mov byte [eax], 1
lea ecx, [ebp - 0x10]
jmp 0x411daf
lea eax, [ebp - 0x44]
push eax
call fcn.004587d7
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.00428539
add esp, 0x14
lea ecx, [ebp - 0x44]
call fcn.00426428
lea ecx, [ebp - 0x1c]
call fcn.00426428
cmp byte [ebp - 2], bl
jne 0x411b4d
lea eax, [ebp - 0x28]
push eax
call fcn.0040eb36
pop ecx
jmp 0x411b59