Function at 0x401091
Capabilities:
Create process on windows
Read .ini file

Disassembly:
jmp 0x402d70
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4532e6
push eax
mov dword fs:[0], esp
sub esp, 0x36c
push ebx
push ebp
push esi
push edi
push str.SerialTrayIcon
mov esi, ecx
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
jne 0x402e81
mov eax, dword [0x46b740]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x178]
push str._sSerialTrayIcon.exe
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x174]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call ebp
cmp eax, 0xffffffff
je 0x403010
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x278]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x174]
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
push 0x4658d4
push edx
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x34], eax
call ebx
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x278]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402e6b
push eax
push eax
push str.CreateProcess_failed.
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
jmp 0x402e87
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [esi + 0x16bb8]
push str.Com.ini
or bl, 1
lea edx, [esp + 0x18]
push 0x46b740
mov byte [esi + 0x16bb8], bl
mov bl, byte [0x46b9ac]
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call ebp
cmp eax, 0xffffffff
je 0x402ed6
push eax
call edi
mov edi, 1
jmp 0x402ed8
xor edi, edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x40307f
push str.Com.ini
lea eax, [esp + 0x18]
push 0x46b740
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ecx, [esp + 0x70]
push eax
push 0x104
push ecx
push 0x46b324
push str.File_Watch
push 0x465898
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x6f], 0x2b
jne 0x402f4f
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x6f], al
lea edx, [esp + 0x70]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [esp + 0x3a0], 0
call ebp
or edi, 0xffffffff
cmp eax, edi
je 0x40306f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x46b73c
call sub.MFC42.DLL_CString::operator
mov edx, dword [0x46b73c]
mov ecx, esi
push edx
call fcn.004010d7
test eax, eax
jne 0x40302b
push 0x465894
lea eax, [esp + 0x1c]
push str.IDS_MAIN_ERR_NO_CONFIG_FILE
push eax
call fcn.00401154
add esp, 0xc
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x390], 1
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x18]
mov byte [esp + 0x384], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x384], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x37c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x378
ret
mov ecx, esi
call fcn.0040145b
mov ecx, esi
call fcn.00401302
mov edx, dword [0x46b73c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
cmp bl, byte [0x46b9ac]
je 0x40305a
mov ecx, esi
call fcn.004019b0
test eax, eax
je 0x403000
mov al, byte [esi + 0x16bb8]
mov ecx, esi
or al, 2
mov byte [esi + 0x16bb8], al
call fcn.0040180c
lea ecx, [esp + 0x10]
mov dword [esp + 0x384], edi
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x403012