Function at 0x49f380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d4f6
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x58], 0
push str.entpub.dat
lea eax, [ebp - 0x5c]
push eax
call fcn.0041acc0
add esp, 8
mov dword [ebp - 4], 0
mov byte [ebp - 0x54], 0
push 0x3f
push 0
lea ecx, [ebp - 0x53]
push ecx
call fcn.004b0ac0
add esp, 0xc
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x5c]
call fcn.0043e290
push eax
call fcn.004a78a0
add esp, 8
push 0x10
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.0041c260
add esp, 0xc
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x84
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00401eb0
push 3
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0x94]
add ecx, 0x84
call fcn.00409410
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x84
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401eb0
lea ecx, [ebp - 0x80]
push ecx
call fcn.004014a0
add esp, 4
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x70
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00401eb0
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push ecx
call fcn.0041ad90
add esp, 4
mov dword [ebp - 0xb0], eax
lea edx, [ebp - 0x88]
push edx
call fcn.00401620
add esp, 8
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb8]
push ecx
mov ecx, dword [ebp - 0x94]
add ecx, 0x6c
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00401eb0
lea edx, [ebp - 0x8c]
push edx
call fcn.00401030
add esp, 4
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xc0]
push ecx
mov ecx, dword [ebp - 0x94]
add ecx, 0x68
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00401eb0
push 0x540868
mov edx, dword [ebp - 0x94]
add edx, 0x68
push edx
call fcn.00428460
add esp, 8
movzx eax, al
test eax, eax
je 0x49f5b8
push 0x54964c
push 0x58f750
call fcn.004045b0
add esp, 8
jmp 0x49f9b9
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x68]
push edx
push 0x549630
push 0x58f750
call fcn.004045b0
add esp, 0xc
push str.NLibDomainWhite.dat
lea eax, [ebp - 0x68]
push eax
call fcn.00401270
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x68]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49f674
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x68]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x49f630
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x68]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49f660
cmp dword [0x58fb50], 0
je 0x49f65e
push 0x54bb10
push 0x58f750
call fcn.004045b0
add esp, 8
jmp 0x49f672
push 0x54bac0
push 0x58f750
call fcn.004045b0
add esp, 8
jmp 0x49f68f
cmp dword [0x58fb50], 0
je 0x49f68f
push 0x54ba78
push 0x58f750
call fcn.004045b0
add esp, 8
push str.safelive.dll
mov ecx, dword [ebp - 0x94]
add ecx, 0x68
call fcn.0043e290
push eax
lea edx, [ebp - 0x60]
push edx
call fcn.0041afc0
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
call fcn.0043e290
push eax
call section..text
add esp, 4
mov ecx, dword [ebp - 0x94]
mov dword [ecx + 0x98], eax
mov edx, dword [ebp - 0x94]
cmp dword [edx + 0x98], 0
jne 0x49f70e
push 0x549618
push 0x58f750
call fcn.004045b0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401eb0
jmp 0x49f9b9
mov dword [ebp - 0x64], 0
push str.CreateUpdateServer
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x49f753
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401eb0
jmp 0x49f9b9
call dword [ebp - 0x64]
mov edx, dword [ebp - 0x94]
mov dword [edx + 0x9c], eax
mov eax, dword [ebp - 0x94]
cmp dword [eax + 0x9c], 0
jne 0x49f7a0
push str.v3_fnCreateUpdateServer__
push 0x58f750
call fcn.004045b0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401eb0
jmp 0x49f9b9
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x9c]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x9c]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 1
jae 0x49f7f6
push str.v3_dwSafeliveVersion___1_fail
push 0x58f750
call fcn.004045b0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401eb0
jmp 0x49f9b9
mov ecx, dword [ebp - 0x94]
push ecx
mov ecx, dword [ebp - 0x94]
add ecx, 0x78
call fcn.0043e290
push eax
push str.EntUpdate
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 0x9c]
mov ecx, dword [ebp - 0x94]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x49f868
push str.v3_CreateUpdater
push 0x58f750
call fcn.004045b0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401eb0
jmp 0x49f9b9
mov ecx, dword [ebp - 0x94]
add ecx, 0x68
call fcn.0043e290
push eax
push str.instdir
push 0
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x9c]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x9c]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x68
call fcn.0043e290
push eax
push 0x549508
push 0
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x9c]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x9c]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
push 0x540b3c
push 0x5494f8
push 0
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x9c]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x9c]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
push 0x5452a0
push str.userid
push 0
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x9c]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x9c]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x6c
call fcn.0043e290
push eax
push str.version
push 0
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x9c]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x9c]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x70
call fcn.0043e290
push eax
push 0x5494cc
push 0
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x9c]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x9c]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x58], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401eb0
xor ecx, ecx
jne 0x49f496
cmp dword [ebp - 0x58], 0
jne 0x49f9ca
mov ecx, dword [ebp - 0x94]
call fcn.0049fac0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x90], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401eb0
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret