Function at 0x401041
Capabilities:
Read .ini file

Disassembly:
jmp 0x4079e0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4535e0
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
sub esp, 0x24
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x3e9
je 0x407e43
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x13
push 0x6e
push 0x18
push 0x38a
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x3f3
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x24
push 0x6e
push 0x32
push 0x38a
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x40a
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xf
push 0x48
push 0x5e
push 0x388
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x409
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x15
push 0x21
push 0x5e
push 0x3d4
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x60b
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x47
push 0x70
push 0x81
push 0x388
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x3f0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xf
push 0x5f
push 0x8b
push 0x391
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x3f1
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xf
push 0x60
push 0xa1
push 0x391
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x3f2
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xf
push 0x60
push 0xb6
push 0x391
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x612
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x3a
push 0x70
push 0xc8
push 0x388
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x614
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xf
push 0x62
push 0xd7
push 0x391
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x615
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xf
push 0x62
push 0xec
push 0x391
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x62f
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x11
push 0x60
push 0x106
push 0x391
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 5
push 0x52d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
push 0x610
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
lea ebp, [ebx + 5]
sub edi, 5
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea edx, [edi - 0x12]
lea eax, [ebp + 0x96]
push 0x52d
mov ecx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub edi, ecx
push 1
sub edx, ebp
push edi
push edx
push ecx
push ebp
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov edi, dword [esp + 0x50]
add ebx, 0x12c
sub edi, 5
push 0x610
mov ecx, esi
lea ebp, [ebx + 0x96]
lea eax, [edi - 0x12]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [esp + 0x18]
push 1
sub edi, ecx
sub ebp, ebx
push edi
push ebp
push ecx
push ebx
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [0x46b73c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
push 0
push str.RemoteLogging
push str.LogFile
call ebx
mov edx, dword [0x46b73c]
mov edi, eax
push edx
push 0x14
push str.LoggingPCNUM
push str.LogFile
call ebx
cmp edi, 1
mov ebp, eax
jne 0x407e14
push 5
push 0x60d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0x60d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xf1
push eax
call edi
push 5
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push str.None
push 0
push 0x143
push ecx
mov dword [esp + 0x54], eax
call edi
mov edi, 1
cmp ebp, edi
jb 0x407d77
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString_3
push edi
lea edx, [esp + 0x58]
push str.PC_d
push edx
mov dword [esp + 0x48], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov edx, dword [ecx + 0x20]
push eax
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x54]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
inc edi
cmp edi, ebp
jbe 0x407d23
push str.C:PCNUM.ini
push 0
push str.PCNUM
push str.SETTING
call ebx
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x54], al
mov eax, dword [esp + 0x54]
push 0
mov edx, dword [ecx + 0x20]
and eax, 0xff
push eax
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov ecx, dword [esp + 0x18]
push 0x60e
add ecx, 0x8c
mov dword [esp + 0x24], ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
sub edx, ecx
push 1
push edx
mov edx, dword [esp + 0x1c]
sub esi, edx
push esi
push ecx
push edx
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
jmp 0x40831c
push 0
push 0x60d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
jmp 0x40831c
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xf
push 0x69
push 0xb
push 0x383
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x3f3
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x1f
push 0x69
push 0x1e
push 0x383
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x40a
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x10
push 0x48
push 0x42
push 0x382
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x409
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x11
push 0x1f
push 0x42
push 0x3ca
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x60b
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x3a
push 0x6f
push 0x55
push 0x380
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x3f0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xc
push 0x5b
push 0x5d
push 0x389
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x3f1
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xc
push 0x5d
push 0x6f
push 0x389
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x3f2
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xc
push 0x5d
push 0x80
push 0x389
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x612
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x32
push 0x6f
push 0x90
push 0x380
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x614
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xc
push 0x5e
push 0x9f
push 0x389
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x615
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xc
push 0x5e
push 0xb0
push 0x389
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x62f
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0xe
push 0x5d
push 0xc5
push 0x389
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 0x3e8
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x1e
push 0x63
push 0x196
push 0x382
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, esi
call fcn.0040169a
push 0x52b
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push 1
push 0x91
push 0x81
push 0xdd
push 0x373
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
push 1
push 0x91
push 0x7c
push 0xec
push 0x376
lea ecx, [esi + 0xfbec]
call sub.MFC42.DLL_CWnd::MoveWindow
push 1
push 0x91
push 0x7c
push 0xfd
push 0x376
lea ecx, [esi + 0xfc2c]
call sub.MFC42.DLL_CWnd::MoveWindow
push 1
push 0x91
push 0x7c
push 0x10e
push 0x376
lea ecx, [esi + 0xfcac]
call sub.MFC42.DLL_CWnd::MoveWindow
push 1
push 0x91
push 0x7c
push 0x11f
push 0x376
lea ecx, [esi + 0xfd2c]
call sub.MFC42.DLL_CWnd::MoveWindow
push 1
push 0xa0
push 0x7c
push 0x130
push 0x376
lea ecx, [esi + 0xfc6c]
call sub.MFC42.DLL_CWnd::MoveWindow
push 1
push 0xa2
push 0x7c
push 0x14e
push 0x376
lea ecx, [esi + 0xfcec]
call sub.MFC42.DLL_CWnd::MoveWindow
push 0
push 0x52d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0
push 0x610
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
mov eax, dword [0x46b73c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.RemoteLogging
push str.LogFile
call ebx
mov ecx, dword [0x46b73c]
mov edi, eax
push ecx
push 0x14
push str.LoggingPCNUM
push str.LogFile
call ebx
cmp edi, 1
mov ebp, eax
jne 0x40829c
push 5
push 0x60d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0x60d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xf1
push edx
call edi
push 5
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov dword [esp + 0x54], eax
mov eax, dword [eax + 0x20]
push str.None
push 0
push 0x143
push eax
call edi
mov edi, 1
cmp ebp, edi
jb 0x408201
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString_3
push edi
lea ecx, [esp + 0x48]
push str.PC_d
push ecx
mov dword [esp + 0x48], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
add esp, 0xc
mov ecx, dword [eax + 0x20]
push edx
push 0
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
inc edi
cmp edi, ebp
jbe 0x4081ad
push str.C:PCNUM.ini
push 0
push str.PCNUM
push str.SETTING
call ebx
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
push 0
mov ecx, dword [eax + 0x20]
and edx, 0xff
push edx
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::ScreenToClient
mov edx, dword [esp + 0x28]
push 0x60e
add edx, 0x8c
mov ecx, esi
mov dword [esp + 0x34], edx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
sub edx, ecx
push 1
push edx
mov edx, dword [esp + 0x2c]
sub edi, edx
push edi
push ecx
push edx
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
jmp 0x4082c6
push 0
push 0x60d
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0
push 0x60e
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov ebx, eax
call edi
cmp eax, 0x2d5
jae 0x4082e1
xor edx, edx
jmp 0x4082e9
lea edx, [eax - 0x2d5]
shr edx, 1
cmp ebx, 0x3fe
lea edi, [edx + 0x2d5]
jae 0x4082fb
xor eax, eax
jmp 0x408303
lea eax, [ebx - 0x3fe]
shr eax, 1
lea ecx, [eax + 0x3fe]
sub edi, edx
push 0x40
sub ecx, eax
push edi
push ecx
push edx
push eax
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowPos
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x14