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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72eb35
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 0x749e58
lea eax, [ebp - 0x43c]
push 0x104
push eax
call fcn.00473410
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 0x4708b7
call fcn.004713b0
mov edi, eax
test esi, esi
je 0x470bd4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x470be6
jmp 0x470bd4
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0x102
je 0x4708df
test eax, eax
je 0x4708d8
cmp eax, 0x80
jne 0x470bf9
mov eax, esi
mov dword [ebp - 0x24], esi
jmp 0x4708e4
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 0x47092e
movzx eax, word [edi + ecx]
test ax, ax
je 0x47092e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x470910
lea eax, [ecx - 2]
test edx, edx
push 0x749e4c
cmovne eax, ecx
xor ecx, ecx
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x234]
push eax
call fcn.004732e0
lea eax, [ebp - 0x234]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov edi, eax
test edi, edi
jne 0x47099a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x470992
mov eax, dword [ebp + 4]
push 0x749db4
push 0xc9
push eax
call fcn.00472530
mov edi, eax
add esp, 0xc
test edi, edi
js 0x4709df
mov eax, dword [ebp - 0x18]
jmp 0x470a3d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push edi
call fcn.00471820
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x470a20
push eax
mov eax, dword [ebp + 4]
push 0x749db4
push 0xcf
push eax
call fcn.00472580
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
push edi
call eax
test eax, eax
je 0x470c0c
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 4]
push edi
push 0x749db4
push 0x62
push eax
call fcn.00472580
mov eax, dword [ebp + 4]
push edi
push 0x749db4
push 0x6b
push eax
call fcn.00472580
mov eax, dword [ebp + 4]
push edi
push 0x749db4
push 0x128
push eax
call fcn.00472580
mov esi, dword [ebp - 0x1c]
add esp, 0x30
jmp 0x470bb5
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 0x470c1f
mov eax, dword [ebp - 0x10]
shl eax, 2
test eax, eax
je 0x470a58
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 0x470bb3
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 [0x8f28ec]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x470a8e
push eax
call edi
push eax
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x470ab7
mov eax, dword [ebp + 4]
push 0x8007000e
push 0x749db4
push 0x144
push eax
call fcn.00472580
add esp, 0x10
mov edi, 0x8007000e
jmp 0x470b3e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test al, 3
jne 0x470c32
push 0
shr eax, 2
lea ecx, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x43c]
push eax
call fcn.00470c80
mov edi, eax
test edi, edi
jns 0x470b5a
mov eax, dword [ebp + 4]
push edi
push 0x749db4
push 0x147
push eax
call fcn.00472580
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x470b19
push eax
call esi
test eax, eax
je 0x470c37
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x470b2b
push eax
call esi
test eax, eax
je 0x470c4a
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 0x749db4
push 0x130
push eax
call fcn.00472580
mov esi, dword [ebp - 0x1c]
add esp, 0x10
jmp 0x470bb5
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.006f4b50
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 0x47089b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x470c5d
jmp 0x47089b
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.00473670
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0xb6d
push eax
call fcn.00470ea0
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00473670
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00473670
call fcn.00473660
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00473670
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00473670
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x941
push eax
call fcn.00473670
int3