Function at 0x4d3af0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b0f59
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x7adbc4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0
mov edi, dword [esi]
mov ecx, dword [eax]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], edi
call fcn.004ec0a0
test al, al
jne 0x4d3dde
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b89bc], 0
jne 0x4d3bb3
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4d3ba8
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b89bc
sub esp, 0xc
push 0x12c
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUI_agent_install_action.cpp
push 0x20
call fcn.00516700
jmp 0x4d3baa
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x7bb238], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bb238]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb238]
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax]
mov esi, dword [ecx]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x44], eax
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4d44a0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004990b0
test al, al
jne 0x4d3c13
push esi
lea ecx, [ebp - 0x40]
call fcn.00498590
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x40]
push esi
push str.MSI_file___s_does_not_exist
push dword [0x7bb238]
call dword [ebp - 0x44]
add esp, 0xc
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 4
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d3c4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [0x7bb238]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb238]
lea ecx, [ecx + 0xd0]
call fcn.00516640
mov byte [ebp - 4], 5
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4d44aa
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
push 0x70
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.004989a0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
push dword [ebp - 0x58]
push ecx
mov ecx, edi
call fcn.004dcfd0
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d3cc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004954b0
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0xa
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4d44b4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
push 0x81
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.004989a0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
push dword [ebp - 0x44]
push eax
push ecx
mov ecx, edi
call fcn.004dc8b0
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d3d3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d3d5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 0x2c], 3
mov byte [ebp - 4], 0xf
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4d44be
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
push 0x81
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.004989a0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x11
push eax
mov ecx, edi
call fcn.004dcad0
mov eax, dword [ebp - 0x40]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0x12
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4d3dc0
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00669a8a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 1
mov eax, str.Agent.msi
je 0x4d3dec
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00498dc0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x13
push eax
lea edx, [esi + 0x10]
lea ecx, [ebp - 0x54]
call fcn.004988e0
add esp, 4
mov byte [ebp - 4], 0x14
call fcn.00516890
mov edi, eax
mov ecx, edi
call fcn.00516630
cmp byte [0x7b8a46], 0
jne 0x4d3e6e
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x4d3e63
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8a46
sub esp, 0xc
push pe_nt_image_headers32
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUI_agent_install_action.cpp
push 0x48
call fcn.00516700
jmp 0x4d3e65
xor eax, eax
mov byte [ebp - 4], 0x14
mov dword [0x7bb1ec], eax
mov ecx, edi
call fcn.00516640
mov ecx, dword [0x7bb1ec]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb1ec]
mov esi, dword [esi + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x50], eax
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4d44c8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x16
call fcn.004990b0
test al, al
jne 0x4d3ecc
push esi
lea ecx, [ebp - 0x40]
call fcn.00498590
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0x17
mov esi, dword [eax]
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4d44d2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x18
call fcn.004990b0
test al, al
jne 0x4d3f0b
push esi
lea ecx, [ebp - 0x48]
call fcn.00498590
mov byte [ebp - 4], 0x19
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x48]
push edi
push esi
push str.Copying_file___s__to___s_...
push dword [0x7bb1ec]
call dword [ebp - 0x50]
add esp, 0x10
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0x1a
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d3f46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0x1b
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4d3f61
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov ecx, dword [0x7bb1ec]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb1ec]
lea ecx, [ecx + 0xd0]
call fcn.00516640
xor dl, dl
lea ecx, [ebp - 0x54]
call fcn.00511760
mov edi, dword [ebp - 0x6c]
cmp byte [edi + 0x15], 0
jne 0x4d3fa1
push ecx
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x54]
push eax
call fcn.00511570
mov byte [ebp - 4], 0x1c
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4d44dc
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
push 0x72
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1d
call fcn.004989a0
lea eax, [edi + 0x1c]
mov byte [ebp - 4], 0x1e
push eax
mov edx, 0x775a2c
lea ecx, [ebp - 0x6c]
call fcn.004b4c40
add esp, 4
push 0x775a30
mov edx, eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x64]
call fcn.00498800
add esp, 4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x20
push ecx
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.004988e0
add esp, 4
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x23
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d4030
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x25
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d404e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x27
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d406c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x26
push dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
add eax, 0x34
push str._s...
push eax
call fcn.00499dc0
mov ecx, dword [ebp - 0x44]
add esp, 0xc
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x4d44e6
mov eax, dword [ecx]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x74], edi
movups xmm0, xmmword [ebp - 0x80]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x3c], vtable.std::_Func_impl_no_alloc_class__lambda_813d9cfec1dbf79d82e84ef9528c0282___unsigned_long_int__union__LARGE_INTEGER__union__LARGE_INTEGER__union__LARGE_INTEGER__union__LARGE_INTEGER__unsigned_long_int__unsigned_long_int__void___void__.0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x28
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x58]
push 0x4d3430
push dword [ebp - 0x54]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4d4370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
call fcn.00516890
mov edi, eax
mov ecx, edi
call fcn.00516630
cmp byte [0x7b8a34], 0
jne 0x4d4159
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0x29
test eax, eax
je 0x4d4152
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8a34
sub esp, 0xc
push 0x155
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUI_agent_install_action.cpp
push 0x20
call fcn.00516700
jmp 0x4d4154
xor eax, eax
mov dword [0x7bb2a4], eax
mov ecx, edi
call fcn.00516640
mov ecx, dword [0x7bb2a4]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb2a4]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 0x44]
call fcn.004954b0
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x40]
push dword [eax]
call fcn.00498630
mov edx, dword [ebp - 0x50]
mov edi, eax
mov dword [ebp - 0x4c], 1
add edx, 0xfffffff0
mov byte [ebp - 4], 0x2c
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d41c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2a
push dword [edi]
push dword [0x7bb2a4]
call dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
add esp, 8
add edx, 0xfffffff0
mov byte [ebp - 4], 0x2d
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d41f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x28
mov ecx, dword [0x7bb2a4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb2a4]
lea ecx, [ecx + 0xd0]
call fcn.00516640
push 0x72
lea ecx, [ebp - 0x4c]
call fcn.0049a680
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x2e
mov edi, dword [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x58]
push ecx
push eax
push ecx
mov ecx, edi
call fcn.004dcdb0
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x2f
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d4252
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x44]
call fcn.004954b0
mov dword [ebp - 0x4c], eax
push 0x81
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x30
call fcn.0049a680
mov byte [ebp - 4], 0x31
push dword [ebp - 0x4c]
push eax
push ecx
mov ecx, edi
call fcn.004dc8b0
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x32
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d42a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x33
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d42c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x4c]
push 0x81
mov dword [edi + 0x2c], 3
call fcn.0049a680
push eax
mov ecx, edi
mov byte [ebp - 4], 0x34
call fcn.004dcad0
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x35
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d4303
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x36
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d4325
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x3c]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x37
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d4343
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x38
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d4361
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x68]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0x39
jmp 0x4d3dae
mov byte [ebp - 4], 0x3a
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d4392
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x3c]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x3b
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d43b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x3c
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d43ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x3d
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4d43ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x4d3dc2
push 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
push 0x80004005
call fcn.00490960
call fcn.006509c6
int3