Function at 0x4aeda0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a41d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 0
jne 0x4aef05
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b88f4], 0
jne 0x4aee41
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4aee36
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b88f4
sub esp, 0xc
push 0x9e3
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIMainDlg.cpp
push 0x20
call fcn.00516700
jmp 0x4aee38
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x7baf08], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7baf08]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7baf08]
mov esi, dword [ebx + 4]
mov eax, dword [eax]
mov edi, dword [eax + 0x48]
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4af59f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004990b0
test al, al
jne 0x4aee9a
push esi
lea ecx, [ebp + 8]
call fcn.00498590
mov byte [ebp - 4], 3
mov esi, dword [ebp + 8]
push esi
push 0x773220
push dword [0x7baf08]
call edi
add esp, 0xc
add esi, 0xfffffff0
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4aeece
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [0x7baf08]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7baf08]
add ecx, 0xd0
call fcn.00516640
mov eax, dword [ebx + 4]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, dword [ebx]
call fcn.004b86a0
jmp 0x4af069
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b8916], 0
jne 0x4aef73
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 5
xorps xmm0, xmm0
movsd qword [ebp - 0x34], xmm0
test eax, eax
je 0x4aef67
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8916
sub esp, 0xc
push 0x9e9
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIMainDlg.cpp
push 0x48
call fcn.00516700
mov byte [ebp - 4], 0
mov dword [0x7bae20], eax
jmp 0x4aef7b
xor eax, eax
mov byte [ebp - 4], al
mov dword [0x7bae20], eax
jmp 0x4aef7b
xorps xmm0, xmm0
movsd qword [ebp - 0x34], xmm0
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bae20]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bae20]
mov esi, dword [ebx + 4]
mov eax, dword [eax]
mov edi, dword [eax + 0x48]
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4af5a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.004990b0
test al, al
jne 0x4aefd4
push esi
lea ecx, [ebp - 0x24]
call fcn.00498590
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x24]
push esi
push str.Read_log_from___s_...
push dword [0x7bae20]
call edi
add esp, 0xc
add esi, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 8
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4af00a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [0x7bae20]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bae20]
lea ecx, [ecx + 0xd0]
call fcn.00516640
mov edx, ebx
lea ecx, [ebp - 0x20]
call fcn.004e3ab0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x20], 0
jne 0x4af07f
mov eax, dword [ebx + 4]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, dword [ebx]
call fcn.004b88c0
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4af069
mov ecx, esi
call fcn.004ed410
push 0xc
push esi
call fcn.0066a2e8
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004a13a0
push str.SysWOW64_
lea edx, [ebx + 8]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24]
call fcn.00498800
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
push ecx
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.004988e0
add esp, 4
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4af0d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.System32_
lea edx, [ebx + 8]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.00498800
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.004988e0
add esp, 4
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x12
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4af11e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
push dword [ebp - 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x4af2d9
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b888d], 0
jne 0x4af196
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x4af18b
movsd xmm0, qword [ebp - 0x34]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b888d
sub esp, 0xc
push 0x9f8
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIMainDlg.cpp
push 0x48
call fcn.00516700
jmp 0x4af18d
xor eax, eax
mov byte [ebp - 4], 0x11
mov dword [0x7bae60], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bae60]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bae60]
mov esi, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x2c], eax
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4af5b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x14
call fcn.004990b0
test al, al
jne 0x4af1f2
push esi
lea ecx, [ebp + 8]
call fcn.00498590
mov byte [ebp - 4], 0x15
mov esi, dword [ebp + 8]
push esi
push str.Found_log_file:__s
push dword [0x7bae60]
call dword [ebp - 0x2c]
add esp, 0xc
add esi, 0xfffffff0
mov byte [ebp - 4], 0x16
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4af226
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov ecx, dword [0x7bae60]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bae60]
lea ecx, [ecx + 0xd0]
call fcn.00516640
mov edx, dword [ebx]
lea ecx, [ebp - 0x18]
call fcn.004a0ac0
mov edx, dword [ebp - 0x14]
mov bl, al
add edx, 0xfffffff0
mov byte [ebp - 4], 0x17
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4af270
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x18
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4af28e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x19
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4af2aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4af2c3
mov ecx, esi
call fcn.004ed410
push 0xc
push esi
call fcn.0066a2e8
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x4af41f
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b88e5], 0
jne 0x4af347
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x4af33c
movsd xmm0, qword [ebp - 0x34]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b88e5
sub esp, 0xc
push 0x9fd
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIMainDlg.cpp
push 0x48
call fcn.00516700
jmp 0x4af33e
xor eax, eax
mov byte [ebp - 4], 0x11
mov dword [0x7baef8], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7baef8]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7baef8]
lea ecx, [ebp + 8]
push dword [ebp - 0x14]
mov eax, dword [eax]
mov esi, dword [eax + 0x48]
call fcn.00498630
mov byte [ebp - 4], 0x1b
push dword [eax]
push str.Found_log_file:__s
push dword [0x7baef8]
call esi
mov edx, dword [ebp + 8]
add esp, 0xc
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1c
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4af3a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov ecx, dword [0x7baef8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7baef8]
lea ecx, [ecx + 0xd0]
call fcn.00516640
mov edx, dword [ebx]
lea ecx, [ebp - 0x14]
call fcn.004a0ac0
mov edx, dword [ebp - 0x14]
mov bl, al
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1d
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4af3f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1e
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4af410
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1f
jmp 0x4af298
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b888f], 0
jne 0x4af480
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x20
test eax, eax
je 0x4af475
movsd xmm0, qword [ebp - 0x34]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b888f
sub esp, 0xc
push 0xa02
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIMainDlg.cpp
push 0x20
call fcn.00516700
jmp 0x4af477
xor eax, eax
mov byte [ebp - 4], 0x11
mov dword [0x7baf44], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7baf44]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov ecx, dword [0x7baf44]
push str.Missing_log_file
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x7baf44]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7baf44]
lea ecx, [ecx + 0xd0]
call fcn.00516640
mov esi, dword [ebx]
lea ecx, [ebp - 0x2c]
push 0xc8
call fcn.0049a680
mov byte [ebp - 4], 0x21
mov eax, dword [eax]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.004b8ae0
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x22
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4af50a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x23
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4af528
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x24
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4af546
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0x25
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4af050
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4af050
push 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
int3