Function at 0x4d2860
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b0ca1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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 eax, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov edi, dword [eax]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d2b84
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4d2b84
push 0x72
lea ecx, [ebp + 8]
call fcn.0049a680
mov byte [ebp - 4], 1
lea ecx, [edi + 0x34]
push dword [eax]
push dword [ebx]
push str.__s_:__s...
push ecx
call fcn.00499dc0
mov edx, dword [ebp + 8]
add esp, 0x10
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d290b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x4d2b98
mov eax, dword [ecx]
push dword [ebp - 0x18]
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
call fcn.00516890
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.00516630
cmp byte [0x7b8a3a], 0
jne 0x4d298a
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4d2983
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8a3a
sub esp, 0xc
push 0xa3
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUI_agent_install_action.cpp
push 0x20
call fcn.00516700
jmp 0x4d2985
xor eax, eax
mov dword [0x7bb184], eax
mov ecx, dword [ebp - 0x18]
call fcn.00516640
mov ecx, dword [0x7bb184]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb184]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 8]
call fcn.004954b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
push dword [eax]
call fcn.00498630
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 6
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4d29f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
push dword [eax]
push 0x771868
push dword [0x7bb184]
call dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
add esp, 0xc
add edx, 0xfffffff0
mov byte [ebp - 4], 7
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d2a2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [0x7bb184]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb184]
lea ecx, [ecx + 0xd0]
call fcn.00516640
push 0x134
lea ecx, [ebp - 0x1c]
call fcn.0049a680
mov dword [ebp - 0x24], eax
push 0x81
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.0049a680
push ebx
mov byte [ebp - 4], 9
push dword [ebp - 0x24]
push eax
push ecx
mov ecx, edi
call fcn.004dc690
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d2a9d
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], 0xb
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d2abb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov edx, dword [ebp + 8]
call fcn.004954b0
mov ebx, eax
push 0x81
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call fcn.0049a680
push ebx
push eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.004dc8b0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d2b09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d2b27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
cmp dword [ebp + 8], 0xb7
je 0x4d2b84
push 0x81
lea ecx, [ebp - 0x18]
mov dword [edi + 0x2c], 3
call fcn.0049a680
push eax
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.004dcad0
mov eax, dword [ebp - 0x18]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0x11
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4d2b70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.006509c6
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b8a24], 0
jne 0x4d2bfc
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x4d2bf1
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8a24
sub esp, 0xc
push 0xb2
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUI_agent_install_action.cpp
push 0x50
call fcn.00516700
jmp 0x4d2bf3
xor eax, eax
mov byte [ebp - 4], 0x12
mov dword [0x7bb044], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bb044]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb044]
push str.Exception
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x7bb044]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb044]
lea ecx, [ecx + 0xd0]
call fcn.00516640
push 0
push 0
call fcn.0066d7ed
int3