Function at 0x416c40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc66c
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x5062f0]
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 esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046ce10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.DrvMgrDrvMgr.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416ee2
mov eax, dword [0x52e3f4]
test al, 1
jne 0x416d10
or eax, 1
mov dword [0x52e3f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x4d35e0
mov dword [0x52e3e8], 0x4d8344
mov dword [0x52e3ec], eax
mov byte [0x52e3f0], 0
call fcn.00453c50
mov eax, dword [0x52e3f4]
add esp, 4
test al, 2
jne 0x416d6c
or eax, 2
mov dword [0x52e3f8], 0x4d835c
mov dword [0x52e3f4], eax
xor eax, eax
push 0x4d3610
mov dword [0x52e3fc], 0x52e3e8
mov dword [0x52e40c], 2
mov dword [0x52e404], 0
mov dword [0x52e408], 0
mov dword [0x52e410], eax
mov dword [0x52e400], 0x52e3f8
call fcn.00453c50
add esp, 4
mov eax, dword [0x52e3f8]
mov ecx, 0x52e3f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x24c]
push dword [esi + 4]
mov dword [ebp - 4], 0
je 0x416d9f
push str._ludashi__noui__hosthwnd_d__cn__ma
jmp 0x416da4
push str._ludashi__hosthwnd_d__cn__ma
push eax
call fcn.0040bf10
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0
push 0
push 1
push esi
push eax
call fcn.0040c9c0
mov ebx, eax
mov dword [ebp - 0x250], ebx
call fcn.0044fb70
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
test al, al
je 0x416ec1
push 0x79
push str.c:_vmagent_new_binjoblist545637_srcc_capitalcomputerzservicecomputerzservicecomputerzservicedriverscanproxywnd.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.00409e80
push 3
push 0x4d8d38
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00409e80
mov byte [ebp - 4], 2
call fcn.0044fb70
mov ebx, eax
lea ecx, [ebp - 0x2e8]
push 0xc1
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040dcd0
mov edi, eax
push str.RunDriverMgr_result:
push edi
mov byte [ebp - 4], 3
call fcn.004142d0
add esp, 8
mov ecx, edi
push dword [ebp - 0x250]
call fcn.00415410
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2e8]
call fcn.0040e8a0
lea ecx, [ebp - 0x230]
call fcn.00406820
lea ecx, [ebp - 0x248]
call fcn.00406820
mov ebx, dword [ebp - 0x250]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x416ee0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.004537ea
mov esp, ebp
pop ebp
ret 4