Function at 0x1039ecc
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.010720e0
mov eax, dword [0x1080bec]
mov dword [ebp - 4], eax
movzx eax, byte [0x1085d6c]
push ebx
lea eax, [eax + eax*2]
push esi
lea eax, [eax*4 + 4]
mov esi, ecx
push eax
mov dword [ebp - 0x100c], esi
call sub.NMSUPP.dll_AllocMemory
mov ebx, eax
test ebx, ebx
je 0x103a153
mov eax, dword [esi + 0xd8]
and dword [ebp - 0x1008], 0
mov dword [eax + 0x6f4], ebx
cmp byte [0x1085d6c], 0
jbe 0x103a145
push edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
cmp dword [ebp + 8], 1
jne 0x103a013
mov eax, dword [0x1085d70]
mov ecx, dword [ebp - 0x1008]
push dword [eax + ecx*4]
mov eax, dword [esi + 0xd8]
push dword [eax + 0x10]
call sub.NMAPI.dll_EnableProtocol
test eax, eax
je 0x103a013
call sub.NMAPI.dll_BHGetLastError
mov ecx, dword [ebp - 0x1008]
mov dword [ebp - 0x1014], eax
mov eax, dword [0x1085d70]
push dword [eax + ecx*4]
call sub.NMAPI.dll_GetProtocolDLLName
mov ecx, dword [ebp - 0x1008]
mov dword [ebp - 0x1010], eax
mov eax, dword [0x1085d70]
push dword [eax + ecx*4]
call sub.NMAPI.dll_GetProtocolInfo
test eax, eax
mov dword [ebp - 0x1018], eax
je 0x1039fad
cmp dword [ebp - 0x1010], 0
jne 0x103a013
push dword [ebp - 0x1014]
push 0
call fcn.0106bdff
push dword [ebp - 0x1010]
mov eax, dword [ebp - 0x1018]
add eax, 8
push eax
push 0x1592
call fcn.0106bcca
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x1389
lea ecx, [esi + 0x3d4]
call sub.MFC42u.dll_CString::LoadStringW
push 0x10
push 0
lea ecx, [esi + 0x3d4]
call sub.MFC42u.dll_CString::GetBuffer
push eax
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
call sub.MFC42u.dll_CWnd::MessageBoxW
mov eax, dword [0x1085d70]
mov ecx, dword [ebp - 0x1008]
push dword [eax + ecx*4]
call sub.NMAPI.dll_GetProtocolInfo
movzx eax, word [ebx]
mov ecx, dword [ebp - 0x1008]
lea eax, [eax + eax*2]
lea esi, [ebx + eax*4 + 4]
mov eax, dword [0x1085d70]
mov eax, dword [eax + ecx*4]
push 8
mov dword [esi], eax
call edi
push 5
mov dword [esi + 8], eax
call edi
mov ecx, dword [ebp - 0x100c]
push 0x158d
add ecx, 0x3d4
mov dword [esi + 4], eax
call sub.MFC42u.dll_CString::LoadStringW
push dword [esi]
call sub.NMAPI.dll_GetProtocolInfo
mov ecx, dword [ebp - 0x100c]
add eax, 8
push eax
push 0
add ecx, 0x3d4
call sub.MFC42u.dll_CString::GetBuffer
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x100c]
add esp, 0xc
push 0x158e
add ecx, 0x3d4
call sub.MFC42u.dll_CString::LoadStringW
mov ecx, dword [ebp - 0x100c]
push 0x10854d8
push 0x3ff
lea eax, [ebp - 0x1004]
push eax
push 0x1002088
lea eax, [ebp - 0x804]
push eax
push 0
add ecx, 0x3d4
call sub.MFC42u.dll_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1004]
push 0x10032c4
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
test eax, eax
pop ecx
pop ecx
je 0x103a122
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
mov dword [esp], 0x10032c4
push 0
mov dword [esi + 8], eax
call dword [sym.imp.msvcrt.dll_wcstok]
test eax, eax
pop ecx
pop ecx
je 0x103a122
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [esi + 4], eax
inc word [ebx]
movzx eax, byte [0x1085d6c]
inc dword [ebp - 0x1008]
cmp dword [ebp - 0x1008], eax
mov esi, dword [ebp - 0x100c]
jl 0x1039f35
pop edi
push 0x10020e0
mov ecx, esi
call fcn.01039068
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01070ac3
leave
ret 4