Function at 0x40f530
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436769
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5f0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
call fcn.0040ee10
test eax, eax
je 0x40fb52
push 0
push str.DateOfModify
push str.AdditionMsg
mov ecx, 0x4461b8
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc8]
push eax
lea eax, [ebp - 0x5fc]
push 0x400
push eax
push 0x446190
push str.Server
push 0x445244
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [ebp - 0x5fc]
test al, al
jne 0x40f5d2
push 0xffffffffffffffff
push 0
push 0xef2b
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc8]
push eax
push 0x7d3
push str.ServerPort
push 0x445244
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebx + 0x360]
lea ecx, [ebx + 0x360]
push 1
push eax
lea eax, [ebp - 0x5fc]
push eax
call dword [edx + 0x50]
test eax, eax
jne 0x40f62b
push 0xffffffffffffffff
push eax
push 0x74d5
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x68]
mov dword [ebp - 0x18], eax
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 0xe0]
or ecx, 0xffffffff
mov dword [ebp - 0x68], 0x801
mov dword [ebp - 0x64], 0x38
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x4c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0xdc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xf4]
mov dword [ebp - 0x34], edx
mov edx, dword [ebx + 0xe74]
mov dword [ebp - 0x38], ecx
mov cl, byte [ebx + 0x104]
test edx, edx
setne al
inc eax
mov byte [ebp - 0x2b], cl
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x2c], al
call sub.MFC42.DLL_CString::CString_2
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x28]
push eax
push ecx
push 0x445244
mov dword [ebp - 4], 0
call fcn.00426460
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, eax
and eax, 0xff0000
and edx, 0xff
and ecx, 0xff
shl edx, 8
add edx, eax
xor eax, eax
mov ah, byte [ebp - 0x22]
push 1
shl edx, 8
add edx, eax
lea eax, [ebp - 0x4c]
add edx, ecx
push eax
mov dword [ebp - 0x30], edx
mov edx, dword [0x445c84]
mov dword [ebp - 0x3c], edx
call fcn.00427e90
add esp, 0x18
lea ecx, [ebx + 0x360]
mov edx, dword [ecx]
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp - 0x68]
push eax
call dword [edx + 0x54]
test eax, eax
je 0x40fb43
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40f946
cmp ecx, 0xffffffff
jne 0x40f9d3
push ecx
push 0
push 0x74db
call sub.MFC42.DLL_AfxMessageBox
push 0
lea ecx, [ebp - 0x198]
call fcn.00401870
lea esi, [ebx + 0xdc]
lea ecx, [ebp - 0xf0]
push esi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
lea edi, [ebx + 0xe0]
lea ecx, [ebp - 0xf4]
push edi
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x198]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 2
je 0x40f964
lea ecx, [ebp - 0xf0]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
lea edx, [ebp - 0xf4]
mov ecx, edi
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x78]
mov dword [ebx + 0xe74], eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0xb
call fcn.00413d70
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x68], 0x801
mov dword [ebp - 0x64], 0x38
lea edx, [ebp - 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0xdc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xf4]
mov dword [ebp - 0x34], edx
mov edx, dword [ebx + 0xe74]
mov dword [ebp - 0x38], ecx
mov cl, byte [ebx + 0x104]
test edx, edx
setne al
inc eax
mov byte [ebp - 0x2b], cl
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x2c], al
call sub.MFC42.DLL_CString::CString_2
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x28]
push eax
push ecx
push 0x445244
mov dword [ebp - 4], 0
call fcn.00426460
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, eax
and eax, 0xff0000
and edx, 0xff
and ecx, 0xff
shl edx, 8
add edx, eax
xor eax, eax
mov ah, byte [ebp - 0x22]
push 1
shl edx, 8
add edx, eax
lea eax, [ebp - 0x4c]
add edx, ecx
push eax
mov dword [ebp - 0x30], edx
mov edx, dword [0x445c84]
mov dword [ebp - 0x3c], edx
call fcn.00427e90
mov edx, dword [ebx + 0x360]
add esp, 0x18
lea eax, [ebp - 0x18]
lea ecx, [ebx + 0x360]
push 0
push eax
lea eax, [ebp - 0x68]
push eax
call dword [edx + 0x54]
test eax, eax
jne 0x40f73f
jmp 0x40fb43
push 0xffffffffffffffff
push 0
push 0xef2c
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40fb43
jmp 0x40fb3a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40f974
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 6
call fcn.00413d70
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CDialog::CDialog
jmp 0x40fb43
mov ecx, dword [eax + 8]
cmp ecx, 0xfffffffe
jne 0x40fb1c
push 0xffffffffffffffff
push 0
mov byte [ebp - 4], 0xc
push 0xef4d
jmp 0x40f94f
mov ecx, dword [eax + 0x24]
add eax, 0xc
mov dword [ebx + 0x100], ecx
mov edx, dword [eax + 0x14]
mov dword [ebx + 0x12c], edx
mov ecx, dword [eax + 0x22c]
mov dword [ebx + 0x124], ecx
mov edx, dword [eax + 0x1c]
push eax
lea ecx, [ebx + 0xe4]
mov dword [ebx + 0x130], edx
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [ebp - 0x18]
or ecx, 0xffffffff
lea esi, [ebx + 0x138]
mov eax, dword [edx + 0x234]
lea edi, [edx + 0x2c]
mov dword [ebx + 0x338], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x20], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [edx + 0x23c]
mov esi, dword [edx + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 0x22c]
mov edi, 0x3a8
lea eax, [ecx + ecx*2]
lea eax, [ecx + eax*4]
shl eax, 3
sub esi, eax
sub esi, 0x230
cmp esi, 4
jb 0x40faac
mov esi, dword [ebp - 0x1c]
mov edi, dword [eax + esi]
test ecx, ecx
mov dword [ebp - 0x20], 0
jle 0x40fba0
mov esi, dword [ebp - 0x1c]
push str.message
lea ecx, [ebp - 0x1c]
call fcn.00422114
mov edx, dword [esi + 0x64]
lea ecx, [ebp - 0x74]
push 0xa
push ecx
push edx
mov byte [ebp - 4], 0xe
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [0x445c84]
cmp edi, eax
je 0x40fb65
mov ecx, dword [0x447894]
test ecx, ecx
je 0x40fb65
push 0x5f5f
push eax
lea eax, [ebp - 0x1fc]
push edi
push eax
push esi
call ecx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1fc]
push ecx
push edx
jmp 0x40fb6a
cmp ecx, 0xfffffffd
jne 0x40fa0a
push 0xffffffffffffffff
push 0
push 0xef54
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40fb43
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
push esi
push eax
push str.AdditionMsg
mov ecx, 0x4461b8
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
inc eax
add esi, 0x68
mov ecx, dword [edx + 0x22c]
mov dword [ebp - 0x20], eax
cmp eax, ecx
jl 0x40fabe
mov ecx, dword [edx + 0x230]
push ecx
push str.DateOfModify
push str.AdditionMsg
mov ecx, 0x4461b8
call sub.MFC42.DLL_CWinApp::WriteProfileInt
push 0
push str.ShowResult
push str.Settings
mov ecx, 0x4461b8
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0
push str.PlaySound
push str.Settings
mov ecx, 0x4461b8
mov esi, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0
push str.AlarmTime
push str.Settings
mov ecx, 0x4461b8
mov dword [ebx + 0x114], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
test esi, esi
setne dl
and edx, 0xff
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x11c], eax
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x110], edx
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret