Function at 0x406fb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468da0
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x218]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x224], eax
mov edx, 0x104
movlpd qword [ebp - 0x220], xmm0
mov dword [eax], 0
mov eax, ecx
sub esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40702e
movzx eax, word [esi + ecx]
test ax, ax
je 0x40702e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x407010
lea eax, [ecx - 2]
test edx, edx
push 0x46c5cc
cmovne eax, ecx
xor ecx, ecx
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call fcn.00406d50
lea eax, [ebp - 0x218]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.DLL_OpenSemaphoreW]
mov esi, eax
test esi, esi
setne bl
test esi, esi
jne 0x4070f6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x407094
test bl, bl
je 0x4070c3
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x40719f
jmp 0x4070c3
mov eax, dword [ebp + 4]
push 0x46c4e4
push 0xc9
push eax
call fcn.00405fa0
add esp, 0xc
mov edi, eax
test bl, bl
je 0x4070bf
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x4071b2
test edi, edi
js 0x407140
mov edi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
lea eax, [edi*4]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push esi
call fcn.00405660
mov edi, eax
add esp, 8
test edi, edi
jns 0x40716c
mov eax, dword [ebp + 4]
push edi
push 0x46c4e4
push 0xcf
push eax
call fcn.00405ff0
add esp, 0x10
test bl, bl
je 0x407140
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x4071c5
mov eax, dword [ebp + 4]
push edi
push 0x46c4e4
push 0x62
push eax
call fcn.00405ff0
mov ecx, dword [ebp + 4]
push edi
push 0x46c4e4
push 0x6b
push ecx
call fcn.00405ff0
add esp, 0x20
mov eax, edi
jmp 0x4070da
mov eax, dword [ebp - 0x21c]
cdq
mov edi, eax
test bl, bl
je 0x4070c9
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x4070c9
mov eax, dword [ebp + 4]
push str.C:ITSAzure_Agent_01_work58_sITSEdgeSecureBrowserpackagesMicrosoft.Windows.ImplementationLibrary.1.0.200519.2includewil_resource.h
push 0x924
push eax
call fcn.004072f0
mov eax, dword [ebp + 4]
push str.C:ITSAzure_Agent_01_work58_sITSEdgeSecureBrowserpackagesMicrosoft.Windows.ImplementationLibrary.1.0.200519.2includewil_resource.h
push 0x924
push eax
call fcn.004072f0
mov eax, dword [ebp + 4]
push str.C:ITSAzure_Agent_01_work58_sITSEdgeSecureBrowserpackagesMicrosoft.Windows.ImplementationLibrary.1.0.200519.2includewil_resource.h
push 0x924
push eax
call fcn.004072f0
mov eax, dword [ebp + 4]
push str.C:ITSAzure_Agent_01_work58_sITSEdgeSecureBrowserpackagesMicrosoft.Windows.ImplementationLibrary.1.0.200519.2includewil_resource.h
push 0x924
push eax
call fcn.004072f0
int3