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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73f725
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 0x75d218
lea eax, [ebp - 0x43c]
push 0x104
push eax
call fcn.0047b540
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 0x4789e7
call fcn.004794e0
mov edi, eax
test esi, esi
je 0x478d04
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x478d16
jmp 0x478d04
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0x102
je 0x478a0f
test eax, eax
je 0x478a08
cmp eax, 0x80
jne 0x478d29
mov eax, esi
mov dword [ebp - 0x24], esi
jmp 0x478a14
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 0x478a5e
movzx eax, word [edi + ecx]
test ax, ax
je 0x478a5e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x478a40
lea eax, [ecx - 2]
test edx, edx
push 0x75d20c
cmovne eax, ecx
xor ecx, ecx
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x234]
push eax
call fcn.0047b410
lea eax, [ebp - 0x234]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov edi, eax
test edi, edi
jne 0x478aca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x478ac2
mov eax, dword [ebp + 4]
push 0x75d174
push 0xc9
push eax
call fcn.0047a660
mov edi, eax
add esp, 0xc
test edi, edi
js 0x478b0f
mov eax, dword [ebp - 0x18]
jmp 0x478b6d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push edi
call fcn.00479950
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x478b50
push eax
mov eax, dword [ebp + 4]
push 0x75d174
push 0xcf
push eax
call fcn.0047a6b0
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
push edi
call eax
test eax, eax
je 0x478d3c
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 4]
push edi
push 0x75d174
push 0x62
push eax
call fcn.0047a6b0
mov eax, dword [ebp + 4]
push edi
push 0x75d174
push 0x6b
push eax
call fcn.0047a6b0
mov eax, dword [ebp + 4]
push edi
push 0x75d174
push pe_nt_image_headers32
push eax
call fcn.0047a6b0
mov esi, dword [ebp - 0x1c]
add esp, 0x30
jmp 0x478ce5
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 0x478d4f
mov eax, dword [ebp - 0x10]
shl eax, 2
test eax, eax
je 0x478b88
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 0x478ce3
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 [0x9087ec]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x478bbe
push eax
call edi
push eax
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x478be7
mov eax, dword [ebp + 4]
push 0x8007000e
push 0x75d174
push 0x144
push eax
call fcn.0047a6b0
add esp, 0x10
mov edi, 0x8007000e
jmp 0x478c6e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test al, 3
jne 0x478d62
push 0
shr eax, 2
lea ecx, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x43c]
push eax
call fcn.00478db0
mov edi, eax
test edi, edi
jns 0x478c8a
mov eax, dword [ebp + 4]
push edi
push 0x75d174
push 0x147
push eax
call fcn.0047a6b0
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x478c49
push eax
call esi
test eax, eax
je 0x478d67
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x478c5b
push eax
call esi
test eax, eax
je 0x478d7a
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 0x75d174
push 0x130
push eax
call fcn.0047a6b0
mov esi, dword [ebp - 0x1c]
add esp, 0x10
jmp 0x478ce5
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.007051b0
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 0x4789cb
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
je 0x478d8d
jmp 0x4789cb
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.0047b7a0
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0xb6d
push eax
call fcn.00478fd0
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.0047b7a0
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.0047b7a0
call fcn.0047b790
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.0047b7a0
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.0047b7a0
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x941
push eax
call fcn.0047b7a0
int3