Function at 0x406670
Capabilities:
Access peb ldr_data
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x410103
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x538
push ebp
push esi
mov esi, ecx
push edi
push 0x41646c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
xor ebp, ebp
push 0x41646c
lea ecx, [esp + 0x14]
mov dword [esp + 0x550], ebp
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x33c]
mov byte [esp + 0x54c], 1
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x440]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x238]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push 0x419
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x64]
call fcn.004099e0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x550], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x54c], 1
call fcn.0040f2ca
lea edx, [esp + 0xc]
push 0x4161ec
lea eax, [esp + 0x30]
push edx
push eax
call sub.MFC42.DLL_operator
push 0x4165d4
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x558], 3
call sub.MFC42.DLL_operator_1
push str.KM_TWAIN_
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x558], 4
call sub.MFC42.DLL_operator
push 0x4161d4
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x554], 5
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x54c], 6
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call sub.MFC42.DLL_operator_1
push str..ini
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x554], 7
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x550], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x54c], 7
call fcn.0040f2ca
lea ecx, [esp + 0x20]
mov byte [esp + 0x54c], 6
call fcn.0040f2ca
lea ecx, [esp + 0x28]
mov byte [esp + 0x54c], 5
call fcn.0040f2ca
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54c], 4
call fcn.0040f2ca
lea ecx, [esp + 0x24]
mov byte [esp + 0x54c], 3
call fcn.0040f2ca
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54c], 1
call fcn.0040f2ca
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esp + 0x340]
push 0x104
push edx
push 0x416090
push str.Auth
push str.Authentication
call esi
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x134]
push eax
push 0x104
push ecx
push 0x416090
push str.Account
push str.Authentication
call esi
lea edx, [esp + 0x33c]
mov ecx, 0x4165d8
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x134]
mov ecx, 0x4165dc
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x238]
push ecx
push 0x104
push edx
push 0x41646c
push 0x41625c
push str.Authentication
call esi
lea eax, [esp + 0x238]
mov ecx, 0x4165cc
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x440]
push ecx
push 0x104
push edx
push 0x41646c
push str.UserName
push str.Authentication
call esi
lea eax, [esp + 0x440]
mov ecx, 0x4165e8
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x30]
push ecx
push 0x104
push edx
push 0x41646c
push str.Password
push str.Authentication
call esi
push 0x80
mov dword [esp + 0x1c], ebp
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4069dc
mov ecx, 0x20
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea edi, [esp + 0x30]
push eax
or ecx, 0xffffffff
xor eax, eax
push 0x80
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
push ecx
lea ecx, [esp + 0x40]
push ecx
push 0x416244
push eax
call fcn.00402500
add esp, 0x1c
test al, al
je 0x4069c4
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x30]
mov esi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
lea edi, [esp + 0x30]
mov edx, ecx
lea eax, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4069c9
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x4165e0
call sub.MFC42.DLL_CString::operator
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x54c], 0
call fcn.0040f2ca
lea ecx, [esp + 0xc]
mov dword [esp + 0x54c], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x544]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x544
ret