Function at 0x406f70
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8fc
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x84c], ecx
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x850], eax
push 0x454cd0
push 0x454ce8
push 0
mov eax, dword [ebp - 0x850]
push eax
mov ecx, dword [ebp - 0x850]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
add esp, 0x10
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x834]
push edx
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx ecx, word [ebp - 0x82c]
cmp ecx, 0x17
jne 0x4073c7
movzx edx, word [ebp - 0x82a]
cmp edx, 0x3b
jne 0x40717f
movzx eax, word [ebp - 0x828]
cmp eax, 0x3b
jne 0x40717f
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x854], eax
movzx ecx, word [ebp - 0x828]
push ecx
movzx edx, word [ebp - 0x82a]
push edx
push 0x454cf0
push str._s____CheckTimer_IN___d__d__23:59:59
push 0xa
mov eax, dword [ebp - 0x854]
push eax
mov ecx, dword [ebp - 0x854]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
add esp, 0x18
push 0
lea ecx, [ebp - 0x868]
push ecx
push 0x800
lea edx, [ebp - 0x804]
push edx
push 0x17
push 0x454d30
push 0x454d48
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov dword [ebp - 0x848], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x858], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x848]
push eax
push 0x454d58
push 0x454d70
push 0x454d88
push 0xa
mov ecx, dword [ebp - 0x858]
push ecx
mov edx, dword [ebp - 0x858]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
add esp, 0x1c
xor edx, edx
mov word [ebp - 0x80a], dx
xor eax, eax
mov word [ebp - 0x808], ax
xor ecx, ecx
mov word [ebp - 0x806], cx
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0x8cc]
call fcn.004068f0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x890]
call fcn.00406810
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x890]
mov dword [eax], ecx
mov edx, dword [ebp - 0x88c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x888]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x8cc]
call fcn.004069f0
lea edx, [ebp - 0x824]
push edx
lea ecx, [ebp - 0x8cc]
call fcn.00406940
lea eax, [ebp - 0x844]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov dword [ebp - 0x874], 0
lea edx, [ebp - 0x874]
push edx
lea eax, [ebp - 0x824]
push eax
mov ecx, dword [ebp - 0x84c]
call fcn.00406cc0
jmp 0x4073c2
movzx ecx, word [ebp - 0x82a]
test ecx, ecx
jne 0x40730d
movzx edx, word [ebp - 0x828]
test edx, edx
jne 0x40730d
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x85c], eax
movzx eax, word [ebp - 0x828]
push eax
movzx ecx, word [ebp - 0x82a]
push ecx
push 0x454dbc
push str._s____CheckTimer_IN___d__d___23:00:00
push 0xa
mov edx, dword [ebp - 0x85c]
push edx
mov eax, dword [ebp - 0x85c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x18
push 0
lea eax, [ebp - 0x868]
push eax
push 0x800
lea ecx, [ebp - 0x804]
push ecx
push 0x11
push 0x454dfc
push 0x454e10
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov dword [ebp - 0x848], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x860], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x848]
push edx
push 0x454e20
push 0x454e34
push 0x454e4c
push 0xa
mov eax, dword [ebp - 0x860]
push eax
mov ecx, dword [ebp - 0x860]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
add esp, 0x1c
xor ecx, ecx
mov word [ebp - 0x80a], cx
xor edx, edx
mov word [ebp - 0x808], dx
xor eax, eax
mov word [ebp - 0x806], ax
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x8d8]
call fcn.004068f0
push 0x3b
push 0x3b
push 0
push 0
lea ecx, [ebp - 0x89c]
call fcn.00406810
sub esp, 0xc
mov edx, esp
mov eax, dword [ebp - 0x89c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x898]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x894]
mov dword [edx + 8], eax
lea ecx, [ebp - 0x8d8]
call fcn.004069f0
lea ecx, [ebp - 0x824]
push ecx
lea ecx, [ebp - 0x8d8]
call fcn.00406940
lea edx, [ebp - 0x844]
push edx
lea eax, [ebp - 0x824]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov dword [ebp - 0x878], 0
lea ecx, [ebp - 0x878]
push ecx
lea edx, [ebp - 0x824]
push edx
mov ecx, dword [ebp - 0x84c]
call fcn.00406cc0
jmp 0x4073c2
xor eax, eax
mov word [ebp - 0x80a], ax
xor ecx, ecx
mov word [ebp - 0x808], cx
xor edx, edx
mov word [ebp - 0x806], dx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x8e4]
call fcn.004068f0
push 0x3b
push 0x3b
push 0
push 0
lea ecx, [ebp - 0x8a8]
call fcn.00406810
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0x8a8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x8a4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x8a0]
mov dword [ecx + 8], edx
lea ecx, [ebp - 0x8e4]
call fcn.004069f0
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x8e4]
call fcn.00406940
lea ecx, [ebp - 0x844]
push ecx
lea edx, [ebp - 0x824]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov dword [ebp - 0x87c], 0
lea eax, [ebp - 0x87c]
push eax
lea ecx, [ebp - 0x824]
push ecx
mov ecx, dword [ebp - 0x84c]
call fcn.00406cc0
jmp 0x40760a
movzx edx, word [ebp - 0x82a]
test edx, edx
jne 0x407555
movzx eax, word [ebp - 0x828]
test eax, eax
jne 0x407555
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x864], eax
movzx ecx, word [ebp - 0x828]
push ecx
movzx edx, word [ebp - 0x82a]
push edx
push 0x454e80
push str._s_____CheckTimer_IN___d__d__XX:00:00
push 0xa
mov eax, dword [ebp - 0x864]
push eax
mov ecx, dword [ebp - 0x864]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
add esp, 0x18
push 0
lea ecx, [ebp - 0x868]
push ecx
push 0x800
lea edx, [ebp - 0x804]
push edx
push 0x11
push 0x454ec0
push 0x454ed4
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov dword [ebp - 0x848], eax
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x86c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x848]
push eax
push 0x454ee4
push 0x454ef8
push str._s_____Send_to_Pipe____s___result___d__err___d
push 0xa
mov ecx, dword [ebp - 0x86c]
push ecx
mov edx, dword [ebp - 0x86c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
add esp, 0x1c
xor edx, edx
mov word [ebp - 0x80a], dx
xor eax, eax
mov word [ebp - 0x808], ax
xor ecx, ecx
mov word [ebp - 0x806], cx
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0x8f0]
call fcn.004068f0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x8b4]
call fcn.00406810
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x8b4]
mov dword [eax], ecx
mov edx, dword [ebp - 0x8b0]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x8ac]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x8f0]
call fcn.004069f0
lea edx, [ebp - 0x824]
push edx
lea ecx, [ebp - 0x8f0]
call fcn.00406940
lea eax, [ebp - 0x844]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov dword [ebp - 0x880], 0
lea edx, [ebp - 0x880]
push edx
lea eax, [ebp - 0x824]
push eax
mov ecx, dword [ebp - 0x84c]
call fcn.00406cc0
jmp 0x40760a
xor ecx, ecx
mov word [ebp - 0x80a], cx
xor edx, edx
mov word [ebp - 0x808], dx
xor eax, eax
mov word [ebp - 0x806], ax
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x8fc]
call fcn.004068f0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x8c0]
call fcn.00406810
sub esp, 0xc
mov edx, esp
mov eax, dword [ebp - 0x8c0]
mov dword [edx], eax
mov ecx, dword [ebp - 0x8bc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x8b8]
mov dword [edx + 8], eax
lea ecx, [ebp - 0x8fc]
call fcn.004069f0
lea ecx, [ebp - 0x824]
push ecx
lea ecx, [ebp - 0x8fc]
call fcn.00406940
lea edx, [ebp - 0x844]
push edx
lea eax, [ebp - 0x824]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov dword [ebp - 0x884], 0
lea ecx, [ebp - 0x884]
push ecx
lea edx, [ebp - 0x824]
push edx
mov ecx, dword [ebp - 0x84c]
call fcn.00406cc0
mov ecx, 0x460ac4
call fcn.00407650
mov dword [ebp - 0x870], eax
push str.BS2Timer::CheckTimer
push 0x454f5c
push 0
mov eax, dword [ebp - 0x870]
push eax
mov ecx, dword [ebp - 0x870]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret