Function at 0x518870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b36c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, 1
mov ecx, edi
call fcn.0051d5f0
mov esi, eax
mov ecx, esi
call fcn.00548700
test esi, esi
je 0x5188e4
mov eax, dword [esi]
test eax, eax
je 0x5188d2
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
inc edi
cmp edi, 9
jb 0x5188a7
mov ecx, 2
call fcn.0051d5f0
mov esi, eax
test esi, esi
je 0x518925
push str.logs
lea ecx, [ebp - 0x24]
call fcn.005455a0
push eax
mov ecx, esi
mov dword [ebp - 4], 0x16
call fcn.00546600
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00500b70
push ecx
mov ecx, esi
call fcn.00551290
add esp, 4
test esi, esi
je 0x51895d
mov eax, dword [esi]
test eax, eax
je 0x51894b
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
push 0x34
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0x19
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.______Startup_of_FGM_____
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0x1c
push eax
push 0x20
push str.UnifiedStreamingService::initialise
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x2c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5189dc
push 2
push eax
call fcn.0056f898
add esp, 8
xor ebx, ebx
call fcn.00548f30
mov esi, eax
test esi, esi
je 0x518a1b
mov ecx, esi
call fcn.00549210
mov ebx, eax
mov eax, dword [esi]
test eax, eax
je 0x518a09
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
push ebx
lea ecx, [ebp - 0x2c]
call fcn.005456c0
mov dword [ebp - 4], 0x39
mov esi, 0xf
push 0x20
mov dword [ebp - 0x10], 0
call fcn.0056f8a6
push 0xffffffffffffffff
push str.UssWatcher.exe
mov edi, eax
lea eax, [ebp - 0x10]
push 0x10
push edi
push eax
mov dword [ebp - 0x24], edi
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x3a
push eax
lea ecx, [ebp - 0x2c]
call fcn.00546600
mov byte [ebp - 4], 0x39
test edi, edi
je 0x518a86
push 2
push edi
call fcn.0056f898
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
cmp edi, 0xffffffff
je 0x518ba0
mov eax, dword [0x648c6c]
test eax, eax
je 0x518acb
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [0x648c6c], 0
mov esi, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 2
mov dword [0x648c70], 0
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f8a6
add esp, 4
mov dword [0x648c6c], eax
test eax, eax
je 0x518b1b
mov dword [0x648c70], esi
test esi, esi
je 0x518b1b
lea ecx, [esi*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00573870
add esp, 0xc
push 0x2a
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0x14
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.Watcher_found_at:__s
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
push 0x648c6c
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x3b
push eax
push 0x2f
push str.UnifiedStreamingService::initialise
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov byte [ebp - 4], 0x39
add esp, 0x30
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x518b99
push 2
push eax
call fcn.0056f898
add esp, 8
call fcn.0051c550
jmp 0x518c19
push 0x24
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0x11
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.Watcher_Not_Found
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x3c
push eax
push 0x35
push str.UnifiedStreamingService::initialise
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push 0x642c80
call fcn.00550890
mov byte [ebp - 4], 0x39
add esp, 0x2c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x518c19
push 2
push eax
call fcn.0056f898
add esp, 8
test ebx, ebx
je 0x518c46
mov eax, dword [ebx]
test eax, eax
je 0x518c34
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056f898
add esp, 8
xor edx, edx
xor ecx, ecx
call fcn.0054efd0
mov edx, 1
xor ecx, ecx
mov edi, eax
call fcn.0054efd0
mov esi, eax
test edi, edi
je 0x518c7f
test esi, esi
je 0x518c7f
push edi
mov ecx, 0x648c74
call fcn.00546210
push esi
mov ecx, 0x648c7c
call fcn.00546210
jmp 0x518cf7
push 0x86
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0x42
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.Manifest_data_in_exe_is_missing__this_will_affect_service_controls
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x3d
push eax
push 0x43
push str.UnifiedStreamingService::initialise
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcunifiedstreamingservice.cpp
push edx
call fcn.00550890
mov byte [ebp - 4], 0x39
add esp, 0x2c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x518cf7
push 2
push eax
call fcn.0056f898
add esp, 8
test edi, edi
je 0x518d24
mov eax, dword [edi]
test eax, eax
je 0x518d12
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
add esp, 8
test esi, esi
je 0x518d51
mov eax, dword [esi]
test eax, eax
je 0x518d3f
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov ebx, 2
xor ecx, ecx
mov edx, ebx
call fcn.0054efd0
mov esi, eax
test esi, esi
je 0x518d98
push esi
mov ecx, 0x648c64
call fcn.00546210
mov eax, dword [esi]
test eax, eax
je 0x518d86
push ebx
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
push 3
call fcn.004fb1f0
add esp, 4
call fcn.005233f0
call fcn.0051e0a0
mov ecx, ebx
call fcn.0051d5f0
mov edi, eax
test edi, edi
je 0x518ee8
push str.config
lea ecx, [ebp - 0x1c]
call fcn.005455a0
push eax
mov ecx, edi
mov byte [ebp - 4], 0x55
call fcn.00546600
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x39
call fcn.00500b70
push 0x1c
mov dword [ebp - 0x10], 0
mov esi, 0xd
call fcn.0056f8a6
push 0xffffffffffffffff
push str.channels.dat
mov ebx, eax
lea eax, [ebp - 0x10]
push 0xe
push ebx
push eax
mov dword [ebp - 0x24], ebx
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x5a
push eax
mov ecx, edi
call fcn.00546600
mov byte [ebp - 4], 0x39
test ebx, ebx
je 0x518e3c
push 2
push ebx
call fcn.0056f898
add esp, 8
mov ecx, edi
call fcn.004ffe10
mov dword [0x648be0], eax
test eax, eax
je 0x518eba
push 0x63d5c8
mov ecx, eax
call fcn.00500010
test al, al
jne 0x518e6e
mov ecx, dword [0x648be0]
push 0
push 0x63d830
call fcn.005001c0
mov ecx, dword [0x648be0]
push 0x63d668
call fcn.00500010
test al, al
jne 0x518e94
mov ecx, dword [0x648be0]
push 0
push 0x63d510
call fcn.005001c0
mov ecx, dword [0x648be0]
push 0x63d568
call fcn.00500010
test al, al
jne 0x518eba
mov ecx, dword [0x648be0]
push 0
push 0x63d720
call fcn.005001c0
mov eax, dword [edi]
test eax, eax
je 0x518ed1
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
add esp, 8
mov ebx, 2
mov ecx, ebx
call fcn.0051d5f0
mov edi, eax
test edi, edi
je 0x518fd8
push str.config
lea ecx, [ebp - 0x1c]
call fcn.005455a0
push eax
mov ecx, edi
mov byte [ebp - 4], 0x72
call fcn.00546600
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x39
call fcn.00500b70
push 0x16
mov dword [ebp - 0x10], 0
mov esi, 0xa
call fcn.0056f8a6
push 0xffffffffffffffff
push str.games.dat
mov ebx, eax
lea eax, [ebp - 0x10]
push 0xb
push ebx
push eax
mov dword [ebp - 0x24], ebx
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x77
push eax
mov ecx, edi
call fcn.00546600
mov byte [ebp - 4], 0x39
test ebx, ebx
je 0x518f78
push 2
push ebx
call fcn.0056f898
add esp, 8
mov ecx, edi
call fcn.004ffe10
mov dword [0x648be4], eax
test eax, eax
je 0x518faa
push 0x63e788
mov ecx, eax
call fcn.00500010
test al, al
jne 0x518faa
mov ecx, dword [0x648be4]
push 0
push 0x63e9d0
call fcn.005001c0
mov eax, dword [edi]
test eax, eax
je 0x518fc1
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
add esp, 8
mov ebx, 2
call fcn.00510d40
call fcn.0050c630
call fcn.00518520
mov ecx, ebx
call fcn.0051d5f0
mov edi, eax
test edi, edi
je 0x5190d2
push str.config
lea ecx, [ebp - 0x14]
call fcn.005455a0
push eax
mov ecx, edi
mov byte [ebp - 4], 0x8f
call fcn.00546600
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x39
call fcn.00500b70
push 0x1e
mov dword [ebp - 0x18], 0
mov esi, 0xe
call fcn.0056f8a6
push 0xffffffffffffffff
push str._shortcuts.dat
mov ebx, eax
lea eax, [ebp - 0x18]
push 0xf
push ebx
push eax
mov dword [ebp - 0x24], ebx
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x94
push eax
mov ecx, edi
call fcn.00546600
mov byte [ebp - 4], 0x39
test ebx, ebx
je 0x519077
push 2
push ebx
call fcn.0056f898
add esp, 8
mov ecx, edi
call fcn.004ffe10
mov dword [0x648c18], eax
test eax, eax
je 0x5190a9
push 0x6416b8
mov ecx, eax
call fcn.00500010
test al, al
jne 0x5190a9
mov ecx, dword [0x648c18]
push 0
push 0x6418e0
call fcn.005001c0
mov eax, dword [edi]
test eax, eax
je 0x5190c0
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
add esp, 8
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5190e4
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret