Function at 0x40afa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443d11
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 6
xor eax, eax
push str._start
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00405570
mov dword [ebp - 4], 0
mov eax, dword [0x469f34]
mov esi, dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
test eax, eax
jne 0x40b03f
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40b034
mov ecx, eax
call fcn.0040dc50
jmp 0x40b036
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x469f34], eax
cmp dword [eax + 0x14], 8
jb 0x40b047
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x44acac
push eax
call ebx
test eax, eax
je 0x40b0b0
mov edi, dword [0x469f34]
test edi, edi
jne 0x40b092
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40b086
mov ecx, eax
call fcn.0040dc50
mov edi, eax
jmp 0x40b088
xor edi, edi
mov byte [ebp - 4], 0
mov dword [0x469f34], edi
push 7
push str.__ptid
lea ecx, [ebp - 0x438]
call fcn.00404020
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00405470
mov eax, dword [0x469f34]
test eax, eax
jne 0x40b0e5
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x40b0da
mov ecx, eax
call fcn.0040dc50
jmp 0x40b0dc
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x469f34], eax
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x40b0f0
mov eax, dword [eax]
push 0x44acac
push eax
call ebx
test eax, eax
je 0x40b156
mov edi, dword [0x469f34]
test edi, edi
jne 0x40b135
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x40b129
mov ecx, eax
call fcn.0040dc50
mov edi, eax
jmp 0x40b12b
xor edi, edi
mov byte [ebp - 4], 0
mov dword [0x469f34], edi
push 0xa
push str.__disname
lea ecx, [ebp - 0x438]
call fcn.00404020
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x18]
push ecx
mov ecx, eax
call fcn.00405470
mov eax, dword [0x469f34]
test eax, eax
jne 0x40b18b
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x40b180
mov ecx, eax
call fcn.0040dc50
jmp 0x40b182
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x469f34], eax
add eax, 0x30
cmp dword [eax + 0x14], 8
jb 0x40b196
mov eax, dword [eax]
push 0x44acac
push eax
call ebx
test eax, eax
je 0x40b1fc
mov edi, dword [0x469f34]
test edi, edi
jne 0x40b1db
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40b1cf
mov ecx, eax
call fcn.0040dc50
mov edi, eax
jmp 0x40b1d1
xor edi, edi
mov byte [ebp - 4], 0
mov dword [0x469f34], edi
push 7
push str.__desc
lea ecx, [ebp - 0x438]
call fcn.00404020
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x30]
push ecx
mov ecx, eax
call fcn.00405470
mov eax, dword [0x469f34]
test eax, eax
jne 0x40b231
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x40b226
mov ecx, eax
call fcn.0040dc50
jmp 0x40b228
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x469f34], eax
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x40b23c
mov eax, dword [eax]
push 0x44acac
push eax
call ebx
test eax, eax
je 0x40b2a2
mov edi, dword [0x469f34]
test edi, edi
jne 0x40b281
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x40b275
mov ecx, eax
call fcn.0040dc50
mov edi, eax
jmp 0x40b277
xor edi, edi
mov byte [ebp - 4], 0
mov dword [0x469f34], edi
push 0xa
push str.__channel
lea ecx, [ebp - 0x438]
call fcn.00404020
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x48]
push ecx
mov ecx, eax
call fcn.00405470
call fcn.00408df0
test al, al
je 0x40b345
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x420]
call fcn.0040a8b0
mov eax, dword [0x469f34]
test eax, eax
jne 0x40b30d
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x40b302
mov ecx, eax
call fcn.0040dc50
jmp 0x40b304
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x469f34], eax
cmp word [ebp - 0x420], 0
lea edx, [eax + 0x78]
jne 0x40b31e
xor ecx, ecx
jmp 0x40b336
lea ecx, [ebp - 0x420]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b327
sub ecx, edi
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
mov ecx, edx
call fcn.00405570
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x469f34]
add esp, 0xc
test eax, eax
jne 0x40b394
push 0xe4
call esi
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x40b38d
mov ecx, eax
call fcn.0040dc50
jmp 0x40b38f
xor eax, eax
mov dword [0x469f34], eax
add eax, 0x78
cmp dword [eax + 0x14], 8
jb 0x40b39f
mov eax, dword [eax]
push str.iSafeSvc.exe
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b47b
cmp dword [ebp - 0x424], 8
mov eax, dword [0x469f0c]
lea esi, [ebp - 0x438]
cmovae esi, dword [ebp - 0x438]
test al, 1
jne 0x40b3f9
or eax, 1
push 0x4486e0
mov dword [0x469f0c], eax
call fcn.00441527
add esp, 4
push ecx
push 0
push 1
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00432ee0
mov eax, dword [0x469f0c]
test al, 1
jne 0x40b429
or eax, 1
push 0x4486e0
mov dword [0x469f0c], eax
call fcn.00441527
add esp, 4
push ecx
call fcn.00432fe0
test al, al
jne 0x40b477
cmp dword [ebp - 0x424], 8
mov eax, dword [0x469f0c]
lea esi, [ebp - 0x438]
cmovae esi, dword [ebp - 0x438]
test al, 1
jne 0x40b465
or eax, 1
push 0x4486e0
mov dword [0x469f0c], eax
call fcn.00441527
add esp, 4
push ecx
push 0
push 1
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.00432ee0
mov bl, 1
jmp 0x40b47d
xor bl, bl
cmp dword [ebp - 0x424], 8
jb 0x40b495
push dword [ebp - 0x438]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret