Function at 0x42c350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f610
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x473b80]
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 + 8]
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x1a4], edi
mov dword [ebp - 0x194], eax
cmp byte [edi + 0x530], dl
jne 0x42ca40
sub esp, 0x18
mov dword [ebp - 0x19c], esp
mov eax, esp
je 0x42c3b6
mov dword [eax], vtable.std::tr1::_Impl_base1_void__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [eax], vtable.._AV___Impl_no_alloc1_U___Callable_obj_V_lambda0___A0x88c81df2_LanAgent___0A__tr1_std__XABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__3__tr1_std__.0
mov dword [eax + 0x10], eax
push str.LanAgent::laDevMonitor::writeLog
sub esp, 0x1c
mov dword [ebp - 4], edx
mov ecx, esp
mov dword [ebp - 0x1b0], esp
mov dword [ecx + 0x10], edx
push 0x14
xor edx, edx
mov dword [ecx + 0x14], 7
push str.__s_Befor_log_guard.
mov word [ecx], dx
call fcn.00403570
lea ebx, [ebp - 0x2c]
call fcn.0040e7c0
add esp, 0x20
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 2
call fcn.00413dd0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 8
jb 0x42c41d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00444884
add esp, 4
mov eax, dword [0x477d70]
xor edx, edx
mov word [ebp - 0x2c], dx
mov edx, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov esi, dword [eax + 0x54]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esi + 4]
mov esi, dword [ecx + eax*4]
mov edx, dword [esi]
push 0x1388
push edx
mov dword [ebp - 0x1a8], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x42c46b
mov byte [ebp - 0x195], bl
cmp eax, 0x80
jne 0x42c472
mov byte [ebp - 0x195], 1
mov al, byte [ebp - 0x195]
mov byte [ebp - 0x1ac], al
sub esp, 0x18
mov dword [ebp - 0x1b0], esp
mov eax, esp
je 0x42c497
mov dword [eax], vtable.std::tr1::_Impl_base1_void__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [eax], vtable.._AV___Impl_no_alloc1_U___Callable_obj_V_lambda1___A0x88c81df2_LanAgent___0A__tr1_std__XABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__3__tr1_std__.0
mov dword [eax + 0x10], eax
push str.LanAgent::laDevMonitor::writeLog
sub esp, 0x1c
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x19c], esp
push 0x14
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push str.__s_After_log_guard.
mov word [ecx], dx
call fcn.00403570
lea ebx, [ebp - 0x2c]
call fcn.0040e7c0
add esp, 0x20
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x190]
push eax
mov byte [ebp - 4], 8
call fcn.00413dd0
mov bl, 0xa
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x42c500
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00444884
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp byte [ebp - 0x195], dl
jne 0x42c5a4
mov ecx, dword [esi]
lea esi, [ebp - 0x58]
call fcn.0040e6d0
mov ebx, eax
push 5
push 3
lea esi, [ebp - 0xf0]
mov byte [ebp - 4], 0xb
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0xc
cmp dword [ebx + 0x14], 8
jb 0x42c54d
mov ebx, dword [ebx]
mov eax, dword [edi]
mov edx, dword [eax + 4]
push ebx
mov ecx, edi
call edx
push eax
push str.LanAgent::laDevMonitor::writeLog
push str.__s_Unable_to_acquire_log_guard__d_.__s
call fcn.00405b80
add esp, 0x10
lea esi, [ebp - 0xf0]
call fcn.00405e90
cmp dword [ebp - 0x44], 8
jb 0x42c587
mov eax, dword [ebp - 0x58]
push eax
call fcn.00444884
add esp, 4
lea esi, [ebp - 0x190]
mov byte [ebp - 4], 5
call fcn.00413c60
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx]
push edx
jmp 0x42ca28
push 0xb
push 0
lea esi, [ebp - 0xf0]
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0xd
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
push eax
push str.LanAgent::laDevMonitor::writeLog
push str.__s_Log_guard__d__acquired
call fcn.00405b80
add esp, 0xc
lea esi, [ebp - 0xf0]
mov byte [ebp - 4], bl
call fcn.00405e90
mov eax, dword [edi + 0x10]
push 0x1000
push 0
push eax
call fcn.00449a10
mov esi, dword [edi + 0x10]
xor eax, eax
mov dword [ebp - 0x1a0], 0
mov dword [esi], 0xfeed2011
mov dword [esi + 4], 0
add esp, 0xc
lea edx, [ebp - 0x3c]
xor ecx, ecx
push edx
add esi, 8
mov word [ebp - 0x3c], cx
mov dword [ebp - 0x3a], eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov word [ebp - 0x2e], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x10
lea eax, [ebp - 0x3c]
push eax
push 0x10
push esi
call fcn.00444f59
mov ebx, dword [ebp - 0x194]
mov ecx, dword [ebp + 0xc]
imul ebx, ebx, 0x2c
mov dword [esi + 0x10], ecx
mov dx, word [ebx + edi + 0x28]
add ebx, edi
mov word [esi + 0x14], dx
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x16], eax
mov ecx, dword [ebx + 0x38]
mov dword [esi + 0x1a], ecx
mov edx, dword [ebx + 0x3c]
mov dword [esi + 0x1e], edx
mov eax, dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x42c69b
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c680
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x194], eax
jmp 0x42c6ab
mov dword [ebp - 0x194], 2
mov eax, dword [ebp - 0x194]
mov dword [esi + 0x22], eax
mov ecx, dword [ebx + 0x30]
add esi, 0x26
test ecx, ecx
je 0x42c6cd
add eax, 0xfffffffe
push eax
push ecx
push eax
push esi
call fcn.00444f59
mov eax, dword [ebp - 0x194]
add esp, 0x10
add esi, eax
lea edx, [eax + 0x32]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x42c701
lea ecx, [eax + 2]
mov dword [ebp - 0x194], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c6e2
sub eax, dword [ebp - 0x194]
sar eax, 1
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x194], ecx
jmp 0x42c711
mov dword [ebp - 0x194], 2
mov ecx, dword [ebp - 0x194]
mov dword [esi], ecx
mov eax, dword [ebx + 0x34]
add esi, 4
mov dword [ebp - 0x19c], edx
test eax, eax
je 0x42c73e
add ecx, 0xfffffffe
push ecx
push eax
push ecx
push esi
call fcn.00444f59
mov ecx, dword [ebp - 0x194]
mov edx, dword [ebp - 0x19c]
add esp, 0x10
mov edi, dword [edi + 0x51c]
lea eax, [edi + edi + 2]
add esi, ecx
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x19c], eax
lea edi, [edx + ecx + 4]
test eax, eax
je 0x42c783
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x50c
cmp dword [ecx + 0x14], 8
jb 0x42c771
mov ecx, dword [ecx]
push eax
push ecx
push eax
push esi
call fcn.00444f59
mov eax, dword [ebp - 0x19c]
add esp, 0x10
add edi, eax
add esi, eax
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x42c7ac
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c791
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x194], eax
jmp 0x42c7bc
mov dword [ebp - 0x194], 2
mov eax, dword [ebp - 0x194]
mov dword [esi], eax
mov ecx, dword [ebx + 0x48]
add edi, 4
add esi, 4
test ecx, ecx
je 0x42c7e0
add eax, 0xfffffffe
push eax
push ecx
push eax
push esi
call fcn.00444f59
mov eax, dword [ebp - 0x194]
add esp, 0x10
add edi, eax
add esi, eax
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x42c80b
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c7f0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x194], eax
jmp 0x42c81b
mov dword [ebp - 0x194], 2
mov eax, dword [ebp - 0x194]
mov dword [esi], eax
mov ecx, dword [ebx + 0x4c]
add edi, 4
add esi, 4
test ecx, ecx
je 0x42c83f
add eax, 0xfffffffe
push eax
push ecx
push eax
push esi
call fcn.00444f59
mov eax, dword [ebp - 0x194]
add esp, 0x10
add edi, eax
add esi, eax
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x42c86b
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c850
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x194], eax
jmp 0x42c87b
mov dword [ebp - 0x194], 2
mov eax, dword [ebp - 0x194]
mov dword [esi], eax
mov ebx, dword [ebx + 0x50]
add edi, 4
add esi, 4
test ebx, ebx
je 0x42c89f
add eax, 0xfffffffe
push eax
push ebx
push eax
push esi
call fcn.00444f59
mov eax, dword [ebp - 0x194]
add esp, 0x10
mov esi, dword [ebp - 0x1a4]
add edi, eax
mov edx, edi
and edx, 7
mov eax, 8
sub eax, edx
add edi, eax
mov eax, dword [esi + 0x10]
push 0x20
mov dword [eax + 4], edi
call fcn.00444804
add esp, 4
test eax, eax
je 0x42c904
mov dword [eax], 0xfaed6622
mov dword [eax + 4], 0xbec8751a
mov dword [eax + 8], 0xcc12af81
mov dword [eax + 0xc], 0x2487bc
mov dword [eax + 0x10], 0x7581236e
mov dword [eax + 0x14], 0xcba88573
mov dword [eax + 0x18], 0xe856cdd1
mov dword [eax + 0x1c], 0x87530112
mov ebx, eax
jmp 0x42c906
xor ebx, ebx
mov edx, dword [esi + 0x10]
push edi
mov ecx, ebx
call fcn.0042f030
test ebx, ebx
je 0x42c91e
push ebx
call fcn.00444884
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push 0
lea ecx, [ebp - 0x1a0]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x4f0]
push 0
push 0x80000080
push 4
push 0
push 0
push 0x10000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42c987
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x10]
push 0
lea edx, [ebp - 0x1a0]
push edx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42c9b4
push 4
push 2
lea esi, [ebp - 0xf0]
call fcn.00405930
push str.alarmFile_INVALID_HANDLE_VALUE
mov esi, eax
mov byte [ebp - 4], 0xe
call fcn.00405b80
add esp, 4
lea esi, [ebp - 0xf0]
call fcn.00405e90
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x42ca10
push 0x100
push str.mssystem
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x42ca0d
xor eax, eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x81
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
lea esi, [ebp - 0x190]
mov byte [ebp - 4], 5
call fcn.00413c60
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea esi, [ebp - 0x140]
mov dword [ebp - 4], 0xffffffff
call fcn.00413c60
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.00444627
mov esp, ebp
pop ebp
ret 8