Function at 0x475f30
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73b085
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
mov ecx, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 8]
mov dword [ecx], 0
push 0x40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x758118
lea eax, [ebp - 0x43c]
push 0x104
push eax
call fcn.00478b20
add esp, 0x18
push 0x1f0001
push 0
lea eax, [ebp - 0x43c]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x475fc7
call fcn.00476ac0
mov edi, eax
test esi, esi
je 0x4762e4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4762f6
jmp 0x4762e4
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0x102
je 0x475fef
test eax, eax
je 0x475fe8
cmp eax, 0x80
jne 0x476309
mov eax, esi
mov dword [ebp - 0x24], esi
jmp 0x475ff4
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
lea edi, [ebp - 0x43c]
mov eax, ecx
movlpd qword [ebp - 0x18], xmm0
mov edx, 0x104
sub edi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x47603e
movzx eax, word [edi + ecx]
test ax, ax
je 0x47603e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x476020
lea eax, [ecx - 2]
test edx, edx
push 0x75810c
cmovne eax, ecx
xor ecx, ecx
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x234]
push eax
call fcn.004789f0
lea eax, [ebp - 0x234]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov edi, eax
test edi, edi
jne 0x4760aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4760a2
mov eax, dword [ebp + 4]
push 0x758074
push 0xc9
push eax
call fcn.00477c40
mov edi, eax
add esp, 0xc
test edi, edi
js 0x4760ef
mov eax, dword [ebp - 0x18]
jmp 0x47614d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push edi
call fcn.00476f30
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x476130
push eax
mov eax, dword [ebp + 4]
push 0x758074
push 0xcf
push eax
call fcn.00477c90
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
push edi
call eax
test eax, eax
je 0x47631c
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 4]
push edi
push 0x758074
push 0x62
push eax
call fcn.00477c90
mov eax, dword [ebp + 4]
push edi
push 0x758074
push 0x6b
push eax
call fcn.00477c90
mov eax, dword [ebp + 4]
push edi
push 0x758074
push 0x128
push eax
call fcn.00477c90
mov esi, dword [ebp - 0x1c]
add esp, 0x30
jmp 0x4762c5
mov eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [ebp - 0x14], edx
call eax
test eax, eax
je 0x47632f
mov eax, dword [ebp - 0x10]
shl eax, 2
test eax, eax
je 0x476168
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [eax]
mov eax, dword [edx]
inc ecx
mov esi, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x4762c3
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x40
push 8
mov dword [eax], 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x90236c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x47619e
push eax
call edi
push eax
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4761c7
mov eax, dword [ebp + 4]
push 0x8007000e
push 0x758074
push 0x144
push eax
call fcn.00477c90
add esp, 0x10
mov edi, 0x8007000e
jmp 0x47624e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test al, 3
jne 0x476342
push 0
shr eax, 2
lea ecx, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x43c]
push eax
call fcn.00476390
mov edi, eax
test edi, edi
jns 0x47626a
mov eax, dword [ebp + 4]
push edi
push 0x758074
push 0x147
push eax
call fcn.00477c90
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x476229
push eax
call esi
test eax, eax
je 0x476347
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47623b
push eax
call esi
test eax, eax
je 0x47635a
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 4]
push edi
push 0x758074
push pe_nt_image_headers32
push eax
call fcn.00477c90
mov esi, dword [ebp - 0x1c]
add esp, 0x10
jmp 0x4762c5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
push 0x30
mov dword [ecx + 4], esi
lea edi, [ecx + 0x10]
xor esi, esi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14]
push esi
push edi
mov dword [ecx], 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x14], esi
call fcn.007012e0
mov ecx, dword [ebp + 0xc]
mov eax, 0x30
mov word [edi], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [edi + 4], 1
movups xmmword [edi + 8], xmm0
movups xmmword [edi + 0x18], xmm0
movq qword [edi + 0x28], xmm0
mov dword [ecx], eax
xor edi, edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x475fab
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x47636d
jmp 0x475fab
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00478d80
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0xb6d
push eax
call fcn.004765b0
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00478d80
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00478d80
call fcn.00478d70
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00478d80
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00478d80
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x941
push eax
call fcn.00478d80
int3