Function at 0x44a640
Capabilities:
Check for time delay via gettickcount
Resume thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4b59b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea eax, [esi + 0x1a4ac]
mov ebp, 1
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esi + 0x1a4a8], ebp
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x17c], ebx
call sub.MFC42.DLL_CSingleLock::Lock
mov ecx, esi
mov dword [esi + 0x1a4a8], ebx
call fcn.0044e0b0
mov eax, dword [esi + 0x1a484]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
cmp eax, ebx
jne 0x44a6ba
cmp dword [esi + 0x1a488], ebx
je 0x44a9e0
mov eax, dword [esp + 0x184]
dec eax
je 0x44b151
dec eax
je 0x44a757
dec eax
je 0x44a71c
cmp dword [esi + 0x1d7c8], 3
jne 0x44aa04
cmp dword [esi + 0x1a4b4], 0x1000006
jne 0x44aa04
mov ecx, dword [esi + 0x1d7cc]
push 2
push ecx
mov ecx, esi
call fcn.0044a640
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x178], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, esi
jmp 0x44b16a
mov ecx, dword [esp + 0x180]
xor edx, edx
cmp ecx, 2
lea ecx, [esp + 0x14]
sete dl
inc edx
mov dword [esi + 0x1d7c8], 3
mov dword [esi + 0x1d7cc], edx
mov dword [esp + 0x178], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
xor eax, eax
jmp 0x44b16a
mov eax, dword [esi + 0x1a07c]
mov dword [esi + 0x1d7c8], 2
cmp eax, ebx
jne 0x44a797
mov ecx, esi
call fcn.00449ef0
mov eax, dword [0x4fa100]
mov ecx, dword [eax + 0x3f2c]
push ecx
push esi
call fcn.0044dff0
add esp, 8
mov dword [esp + 0x178], 0xffffffff
jmp 0x44abdf
mov eax, dword [esi + 0x1a49c]
mov dword [esi + 0x1a4a4], ebp
cmp eax, ebx
je 0x44a7b3
cmp eax, 0xffffffff
je 0x44a7b3
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x1a498], ebx
je 0x44a866
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
mov dword [esp + 0x14], 0x104
call ebp
mov eax, dword [esi + 0x22ea4]
xor edi, edi
lea edx, [eax + eax*4]
shl edx, 1
test edx, edx
jle 0x44a818
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [esi + 0x1a498]
lea eax, [esp + 0x10]
push eax
push ecx
call ebx
test eax, eax
je 0x44a818
cmp dword [esp + 0x10], 0x103
jne 0x44a818
push 0x64
call ebp
mov eax, dword [esi + 0x22ea4]
inc edi
lea edx, [eax + eax*4]
shl edx, 1
cmp edi, edx
jl 0x44a7e8
mov eax, dword [esi + 0x22ea4]
lea eax, [eax + eax*4]
shl eax, 1
cmp edi, eax
jl 0x44a836
mov ecx, dword [esi + 0x1a498]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.00465a30
test eax, eax
je 0x44a84d
push edi
push str.Port_shutdown_count:__d
call fcn.00465a40
add esp, 8
mov edx, dword [esi + 0x1a498]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1a498], 0
xor ebx, ebx
mov eax, dword [esi + 0x1a07c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ProtocolStop
push eax
call ebp
mov ecx, dword [esi + 0x1a07c]
push str.ProtocolDelete
push ecx
mov edi, eax
call ebp
cmp edi, ebx
mov ebp, eax
je 0x44a896
push esi
call edi
add esp, 4
cmp ebp, ebx
je 0x44a8a0
push esi
call ebp
add esp, 4
mov edx, dword [0x4fa100]
mov eax, dword [edx + 0x3f24]
push eax
push esi
call fcn.0044e050
mov al, byte [esi + 0x1d784]
add esp, 8
test al, al
je 0x44a8e5
push 0x1000007
lea ecx, [esp + 0x54]
push str.Stat:_08X
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x50]
mov ecx, esi
push ebx
push edx
call fcn.0044b380
lea eax, [esi + 0x1b2e0]
push ebx
push eax
lea ecx, [esp + 0x2c]
mov dword [esi + 0x1a4b4], 0x1000007
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 1
call sub.MFC42.DLL_CSingleLock::Lock
cmp dword [esi + 0x1b2d8], ebx
jle 0x44a9b6
mov eax, dword [esi + 0x1b2dc]
mov dword [esi + 0x1b2d8], ebx
cmp eax, 0x100
jae 0x44a9b6
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov dword [esi + ecx*4 + 0x132c0], ebx
mov eax, dword [esi + 0x1b2dc]
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov dword [esi + edx*4 + 0x132c4], ebx
mov eax, dword [esi + 0x1b2dc]
mov edx, dword [esi + 0xe9c]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov dword [esi + ecx*4 + 0x132bc], edx
mov eax, dword [esi + 0x1b2dc]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
mov dword [esi + ecx*4 + 0x132c8], 0x201
mov eax, dword [esi + 0x1b2dc]
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [esi + 0x19f5c]
mov dword [esi + edx*4 + 0x132b8], eax
mov eax, dword [esi + 0x1b2dc]
inc eax
mov dword [esi + 0x1b2dc], eax
mov ecx, esi
call fcn.00449ef0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x24]
mov dword [esi + 0x22ea0], eax
mov byte [esp + 0x178], 0
call sub.MFC42.DLL_CSingleLock::Unlock
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
cmp dword [esi + 0x1a484], ebx
jne 0x44b151
cmp dword [esi + 0x1a488], ebx
jne 0x44b151
mov eax, dword [esp + 0x180]
sub eax, 2
je 0x44aa1f
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
xor eax, eax
jmp 0x44b16a
mov ecx, dword [0x4fa100]
mov edx, dword [ecx + 0x3fb8]
push edx
push esi
call fcn.0044e050
mov eax, dword [esi + 0x22e98]
add esp, 8
cmp eax, ebx
je 0x44aa99
mov eax, dword [esi + 0x22e9c]
or ebp, 0xffffffff
push ebp
push eax
call fcn.0046c290
mov ecx, dword [esi + 0x22e98]
add esp, 8
cmp eax, ecx
jb 0x44aa82
mov ecx, dword [esi + 0x22ea0]
push ebp
push ecx
call fcn.0046c290
mov ecx, dword [esi + 0x22e98]
add esp, 8
cmp eax, ecx
jae 0x44aa9c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x22e9c], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], ebp
call sub.MFC42.DLL_CSingleLock::Unlock
xor eax, eax
jmp 0x44b16a
or ebp, 0xffffffff
mov al, byte [esi + 0x1d7d1]
mov dword [esi + 0x22e9c], ebx
test al, al
mov dword [esi + 0x1dc1c], ebx
mov dword [esi + 0x22eac], ebx
mov dword [esi + 0x1a4a4], ebx
je 0x44ab15
mov edx, dword [0x4fa100]
mov eax, dword [edx + 0x3f38]
push eax
push esi
call fcn.0044dff0
mov al, byte [esi + 0x1d784]
add esp, 8
test al, al
je 0x44aaff
push 0x1000003
lea ecx, [esp + 0x54]
push str.Stat:_08X
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x50]
mov ecx, esi
push ebx
push edx
call fcn.0044b380
mov dword [esi + 0x1a4b4], 0x1000003
mov dword [esp + 0x178], ebp
jmp 0x44ae68
mov al, byte [esi + 0x1a080]
test al, al
jne 0x44ab84
mov al, byte [esi + 0x1d784]
test al, al
je 0x44ab4a
push 0x1000004
lea eax, [esp + 0x54]
push str.Stat:_08X
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x50]
push ebx
push ecx
mov ecx, esi
call fcn.0044b380
mov dword [esi + 0x1a4b4], 0x1000004
mov edx, dword [0x4fa100]
mov eax, dword [edx + 0x3f34]
push eax
push esi
call fcn.0044dff0
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], ebp
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, 0x132
jmp 0x44b16a
mov eax, dword [esi + 0x1a07c]
cmp eax, ebx
jne 0x44abf2
mov al, byte [esi + 0x1d784]
test al, al
je 0x44abb9
push 0x1000004
lea ecx, [esp + 0x54]
push str.Stat:_08X
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x50]
mov ecx, esi
push ebx
push edx
call fcn.0044b380
mov dword [esi + 0x1a4b4], 0x1000004
mov eax, dword [0x4fa100]
mov ecx, dword [eax + 0x3f3c]
push ecx
push esi
call fcn.0044dff0
add esp, 8
mov dword [esp + 0x178], ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, 0x133
jmp 0x44b16a
push str.ProtocolStart
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x44ac6b
mov al, byte [esi + 0x1d784]
test al, al
je 0x44ac31
push 0x1000004
lea edx, [esp + 0x54]
push str.Stat:_08X
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x50]
mov ecx, esi
push ebx
push eax
call fcn.0044b380
mov dword [esi + 0x1a4b4], 0x1000004
mov ecx, dword [0x4fa100]
mov edx, dword [ecx + 0x3f40]
push edx
push esi
call fcn.0044dff0
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], ebp
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, 0x134
jmp 0x44b16a
mov eax, dword [esi + 0x1e9d8]
cmp dword [eax + 0xf8e0], ebx
je 0x44af84
lea ecx, [esp + 0x30]
push 0x20
push ecx
xor ebp, ebp
push str.COMPORT
push str.COMPORTSETTINGS
mov ecx, esi
mov dword [esp + 0x20], ebp
call fcn.00454090
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x30]
push str.DIRECT
push edx
call ebx
add esp, 8
test eax, eax
jne 0x44acb8
mov byte [esp + 0x30], al
mov al, byte [esp + 0x30]
test al, al
je 0x44ad66
mov eax, dword [esi + 0x1e9d8]
mov ecx, dword [eax + 0x8000]
cmp ebp, ecx
jge 0x44ad66
xor edi, edi
test ebp, ebp
jl 0x44acfb
cmp ebp, ecx
jge 0x44ace9
mov edi, dword [eax + ebp*4 + 0x4000]
test ebp, ebp
jne 0x44acfb
mov ecx, dword [eax + 0x4000]
mov edx, ecx
cmp edx, ecx
je 0x44acfb
mov edi, ecx
test edi, edi
je 0x44ad59
test dword [edi + 0x1a4b4], 0x1000000
jne 0x44ad59
lea eax, [esp + 0x150]
push 0x20
push eax
push str.COMPORT
push str.COMPORTSETTINGS
mov ecx, edi
call fcn.00454090
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x150]
inc eax
push ecx
push edx
mov dword [esp + 0x18], eax
call ebx
add esp, 8
test eax, eax
jne 0x44ad59
mov eax, dword [edi + 0x19f5c]
mov ecx, dword [esi + 0x19f5c]
cmp eax, ecx
jne 0x44ae7b
mov al, byte [esp + 0x30]
inc ebp
test al, al
jne 0x44acc4
mov eax, dword [esi + 0x1e9d8]
mov ebx, dword [esp + 0x10]
xor ebp, ebp
cmp ebx, dword [eax + 0xf8e0]
jl 0x44ae33
mov ecx, dword [eax + 0x8000]
cmp ebp, ecx
jge 0x44ae33
xor edi, edi
test ebp, ebp
jl 0x44adaf
cmp ebp, ecx
jge 0x44ad9d
mov edi, dword [eax + ebp*4 + 0x4000]
test ebp, ebp
jne 0x44adaf
mov ecx, dword [eax + 0x4000]
mov edx, ecx
cmp edx, ecx
je 0x44adaf
mov edi, ecx
test edi, edi
je 0x44ae20
mov eax, dword [edi + 0x1a4b4]
cmp eax, 0x2000001
je 0x44adc7
cmp eax, 0x1000002
jne 0x44ae20
push 2
push 1
mov ecx, edi
call fcn.0044a640
push 0
push str.ACTIVE
push str.INFO
mov ecx, edi
call fcn.00454480
mov al, byte [edi + 0x1d784]
test al, al
je 0x44ae15
push 0x1000003
lea eax, [esp + 0x54]
push str.Stat:_08X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x50]
push 0
push ecx
mov ecx, edi
call fcn.0044b380
mov dword [edi + 0x1a4b4], 0x1000003
dec ebx
mov eax, dword [esi + 0x1e9d8]
inc ebp
cmp ebx, dword [eax + 0xf8e0]
jge 0x44ad7e
mov edx, dword [esi + 0x1e9d8]
mov eax, dword [edx + 0xf8e0]
cmp ebx, eax
jl 0x44af84
push eax
mov eax, dword [0x4fa100]
mov ecx, dword [eax + 0x7d70]
push ecx
push esi
call fcn.0044dff0
add esp, 0xc
mov dword [esp + 0x178], 0xffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, 0x12b
jmp 0x44b16a
mov edx, dword [edi + 0x19f5c]
test edx, edx
je 0x44ad66
mov ebp, dword [esi + 0x1e9d8]
mov eax, edx
shr eax, 0x10
mov ecx, edx
and eax, 0xfff
and ecx, 0xfff
xor eax, ecx
xor ecx, ecx
lea edi, [ecx + eax]
and edi, 0xfff
mov edi, dword [ebp + edi*4]
test edi, edi
je 0x44ad66
cmp dword [edi + 0x19f5c], edx
je 0x44aed0
inc ecx
cmp ecx, 0x1000
jl 0x44aea5
jmp 0x44ad66
test edi, edi
je 0x44ad66
cmp dword [edi + 0x1a4b4], 0x2000001
jne 0x44af4a
push 2
push 1
mov ecx, edi
call fcn.0044a640
push 0
push str.ACTIVE
push str.INFO
mov ecx, edi
call fcn.00454480
mov al, byte [esi + 0x1d784]
test al, al
je 0x44af32
push 0x1000003
lea edx, [esp + 0x54]
push str.Stat:_08X
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x50]
mov ecx, esi
push 0
push eax
call fcn.0044b380
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1a4b4], 0x1000003
dec eax
mov dword [esp + 0x10], eax
jmp 0x44ad66
mov eax, dword [0x4fa100]
mov ecx, dword [eax + 0x4a8]
mov edx, dword [eax + 0x3f44]
push ecx
push edx
push esi
call fcn.0044dff0
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, 0x12a
jmp 0x44b16a
mov ecx, dword [esi + 0x1a524]
xor ebp, ebp
or ebx, 0xffffffff
and ecx, 0xe0000000
mov dword [esi + 0x1a4b4], 0x1000001
mov dword [esi + 0x1a4b8], ebp
mov dword [esi + 0x1a4bc], ebx
mov dword [esi + 0x1a4c0], ebp
mov dword [esi + 0x1a4c4], ebx
mov dword [esi + 0x1a4c8], ebx
mov dword [esi + 0x1a4cc], ebx
mov dword [esi + 0x1a4d8], 0xbf800000
mov dword [esi + 0x1a4d0], ebp
mov dword [esi + 0x1a4dc], ebx
mov dword [esi + 0x1a4e0], ebx
mov dword [esi + 0x1a4e4], ebx
mov dword [esi + 0x1a4e8], ebx
mov dword [esi + 0x1a4ec], ebx
mov dword [esi + 0x1a52c], 0xab53e06f
mov dword [esi + 0x1a4d4], ebp
mov dword [esi + 0x1a528], ebp
mov dword [esi + 0x1a4f0], ebp
mov dword [esi + 0x1a524], ecx
mov al, byte [esi + 0x1d784]
test al, al
je 0x44b042
push 0x1000005
lea edx, [esp + 0x54]
push str.Stat:_08X
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x50]
mov ecx, esi
push ebp
push eax
call fcn.0044b380
push esi
mov dword [esi + 0x1a4b4], 0x1000005
call dword [esp + 0x24]
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x44b0c3
mov eax, dword [0x4fa100]
mov ecx, dword [eax + edi*4]
mov edx, dword [eax + 0x3f44]
push ecx
push edx
push esi
call fcn.0044dff0
mov al, byte [esi + 0x1d784]
add esp, 0xc
test al, al
je 0x44b0a2
push 0x1000004
lea eax, [esp + 0x54]
push str.Stat:_08X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x50]
push ebp
push ecx
mov ecx, esi
call fcn.0044b380
lea ecx, [esp + 0x14]
mov dword [esi + 0x1a4b4], 0x1000004
mov dword [esp + 0x178], ebx
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, edi
jmp 0x44b16a
cmp dword [esi + 0x1a490], ebp
je 0x44b13a
cmp dword [esi + 0x1a494], ebp
je 0x44b13a
push ebp
push 4
push 0x40000
push ebp
push esi
push 0x44b190
call sub.MFC42.DLL_AfxBeginThread
mov edi, eax
cmp edi, ebp
je 0x44b134
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
add esi, 0x1a498
push 0
push 0
push esi
call ebp
mov edx, dword [edi + 0x2c]
push eax
push edx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x44b116
mov dword [esi], eax
mov eax, dword [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], ebx
call sub.MFC42.DLL_CSingleLock::Unlock
xor eax, eax
jmp 0x44b16a
mov dword [esi + 0x1a498], ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], ebx
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, 8
jmp 0x44b16a
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, 0xa
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x16c
ret 8