Function at 0x438ef0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e5d3
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x544070]
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 edi, edx
test edi, edi
je 0x438f27
mov byte [edi], 1
test cl, cl
je 0x438ff0
push str.Globalcollect_info_stop_dhcp
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
jne 0x438f8c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x438f64
test edi, edi
je 0x4391c3
mov byte [edi], 0
jmp 0x4391c3
mov eax, dword [0x56f420]
cmp dword [eax], 0
je 0x438f85
call esi
push eax
push str.OpenEvent_failed:__0x_08x_
push str._CI__::_DhcpMonitor____
push 0
call fcn.00406440
add esp, 0x10
xor al, al
jmp 0x4391c5
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x438faf
mov eax, dword [0x56f420]
cmp dword [eax], 0
je 0x438f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetEvent_failed:__0x_08x_
jmp 0x438f76
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x4391bc
mov ecx, dword [0x56f420]
cmp dword [ecx], 0
je 0x438f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.WaitForSingleObject_result:___d__LastError__0x_08x_
push str._CI__::_DhcpMonitor____
push 0
call fcn.00406440
add esp, 0x14
xor al, al
jmp 0x4391c5
call fcn.00425d10
push str.Globalcollect_info_stop_dhcp
push 0
push 0
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
jne 0x43902c
mov eax, dword [0x56f420]
cmp dword [eax], esi
je 0x438f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEvent_failed:__0x_08x_
jmp 0x438f76
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x439055
mov eax, dword [0x56f420]
cmp dword [eax], 0
je 0x438f85
push str.Another_monitor_instance_is_running__bye_
push 0
jmp 0x438f76
push ecx
lea ecx, [ebp - 0x54]
call fcn.004072b0
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
mov edx, 0x56f388
lea ecx, [ebp - 0x6c]
call fcn.00410af0
add esp, 4
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00410be0
lea ecx, [ebp - 0x6c]
call fcn.00404f50
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00404f50
cmp dword [ebp - 0x2c], 0
jbe 0x4391b4
sub esp, 8
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x11c]
push 0xa
push eax
call fcn.0043b790
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x110], 6
je 0x439102
call fcn.00480aab
push dword [eax]
lea eax, [ebp - 0x24]
push 0x14
push eax
call fcn.0047bc88
mov eax, dword [0x56f420]
add esp, 0xc
cmp dword [eax], 0
je 0x439192
lea eax, [ebp - 0x24]
push eax
push str.Open_log_file_error__s
jmp 0x439183
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, ebx
call fcn.00426a90
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, ebx
call fcn.00426d10
lea ecx, [ebp - 0x11c]
call fcn.0040f020
lea ecx, [ebp - 0x118]
call fcn.00424fb0
test eax, eax
jne 0x439166
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.0040f470
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4391a9
mov eax, dword [0x56f420]
cmp dword [eax], 0
je 0x439192
call edi
push eax
push str.SetEvent_failed:__0x_08x_
push str._CI__::_DhcpMonitor____
push 0
call fcn.00406440
add esp, 0x10
lea ecx, [ebp - 0x11c]
call fcn.004391f0
lea ecx, [ebp - 0x3c]
call fcn.00404f50
xor al, al
jmp 0x4391c5
lea ecx, [ebp - 0x11c]
call fcn.004391f0
lea ecx, [ebp - 0x3c]
call fcn.00404f50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
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.0045bdad
mov esp, ebp
pop ebp
ret