Function at 0x404cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6101f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x6e0ea0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x41c]
lea ecx, [esp + 0xc]
push eax
push 0x6c2acc
push ecx
mov byte [esp + 0x30], 1
call fcn.004ec2c0
mov edx, dword [0x65329c]
add esp, 0xc
lea ecx, [esp + 0x18]
push edx
push 0
push str.Port
call fcn.004e9b90
mov eax, dword [0x65329c]
lea ecx, [esp + 0x14]
push eax
push 0
push str.ComPort
mov byte [esp + 0x30], 2
call fcn.004e9b90
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
lea edi, [esi + 0x44c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x30], 3
call fcn.0044da50
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x404d97
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x404d97
mov ebx, dword [sym.imp.MSVCRT.dll_free]
push eax
call ebx
add esp, 4
jmp 0x404d9d
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0x18]
mov byte [esp + 0x24], 1
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x404dbe
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x404dbe
push eax
call ebx
add esp, 4
mov ecx, dword [esi + 0x42c]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0xc]
shr eax, 0x1f
add edx, eax
push edx
push 0x6c2acc
push ecx
call fcn.004ec2c0
mov edx, dword [0x65329c]
add esp, 0xc
lea ecx, [esp + 0x14]
push edx
push 0
push str.Times
call fcn.004e9b90
mov eax, dword [0x65329c]
lea ecx, [esp + 0x18]
push eax
push 0
push str.AlarmOutLong
mov byte [esp + 0x30], 4
call fcn.004e9b90
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x30], 5
call fcn.0044da50
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x404e51
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x404e51
push eax
call ebx
add esp, 4
mov edx, dword [esp + 0x14]
mov byte [esp + 0x24], 1
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x404e72
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x404e72
push eax
call ebx
add esp, 4
mov eax, dword [0x65329c]
lea ecx, [esp + 0x14]
push eax
push 0
push str.Name
call fcn.004e9b90
mov ecx, dword [0x65329c]
mov byte [esp + 0x24], 6
push ecx
push 0
push str.Protocol
lea ecx, [esp + 0x24]
call fcn.004e9b90
lea edx, [esi + 0x3f8]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x30], 7
call fcn.0044da50
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x404edd
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x404edd
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x14]
mov byte [esp + 0x24], 1
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404efd
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x404efd
push eax
call ebx
add esp, 4
mov ecx, dword [esi + 0x438]
lea edx, [esp + 0xc]
push ecx
push 0x6c2acc
push edx
call fcn.004ec2c0
mov eax, dword [0x65329c]
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
push 0
push 0x6c2a60
call fcn.004e9b90
mov ecx, dword [0x65329c]
mov byte [esp + 0x24], 8
push ecx
push 0
push str.AlarmGlobal
lea ecx, [esp + 0x24]
call fcn.004e9b90
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x30], 9
call fcn.0044da50
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x404f7f
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x404f7f
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x14]
mov byte [esp + 0x24], 1
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404f9f
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x404f9f
push eax
call ebx
add esp, 4
mov ecx, dword [0x6fea94]
xor eax, eax
test ecx, ecx
jle 0x405137
add esi, 0x4a4
mov bl, 0xa
push ebp
lea ebp, [eax + 1]
lea ecx, [esp + 0x14]
push ebp
push str.Cam_02d
push ecx
call fcn.004ec2c0
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, dword [esi - 4]
push edx
mov edx, dword [esi - 8]
push eax
mov eax, dword [esi - 0xc]
push ecx
mov ecx, dword [esi - 0x10]
push edx
mov edx, dword [esi - 0x14]
push eax
mov eax, dword [esi - 0x18]
push ecx
mov ecx, dword [esi - 0x1c]
push edx
mov edx, dword [esi - 0x20]
push eax
mov eax, dword [esi - 0x24]
push ecx
mov ecx, dword [esi - 0x28]
push edx
mov edx, dword [esi - 0x2c]
push eax
mov eax, dword [esi - 0x30]
push ecx
mov ecx, dword [esi - 0x34]
push edx
mov edx, dword [esi - 0x38]
push eax
push ecx
push edx
lea eax, [esp + 0x5c]
push 0x6c29d8
push eax
call fcn.004ec2c0
mov ecx, dword [0x65329c]
add esp, 0x54
push ecx
push 0
push str.AlarmIn
lea ecx, [esp + 0x28]
call fcn.004e9b90
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x34], bl
call fcn.0044da50
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x28], 1
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x405072
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x405072
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x34]
push edx
mov edx, dword [esi + 0x30]
push eax
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x28]
push edx
mov edx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
push 0x6c29d8
push ecx
call fcn.004ec2c0
mov edx, dword [0x65329c]
add esp, 0x48
lea ecx, [esp + 0x18]
push edx
push 0
push str.AlarmOut
call fcn.004e9b90
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x34], 0xb
call fcn.0044da50
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], 1
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40511a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40511a
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [0x6fea94]
mov eax, ebp
add esi, 0x80
cmp eax, ecx
jl 0x404fb8
mov ebx, dword [sym.imp.MSVCRT.dll_free]
pop ebp
mov ecx, edi
call fcn.0044d8a0
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x40515a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40515a
push eax
call ebx
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x405176
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x405176
push eax
call ebx
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret