Function at 0x402ba4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
and byte [ebp - 0x11c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
stosb byte es:[edi], al
mov ebx, str.coder.ini
mov edi, 0x409d8c
push ebx
push 0xa
push edi
push 0x40c794
push str.prefix
push 0x408850
call esi
mov eax, dword [ebp - 0x10]
push edi
push 0x3f9
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push ebx
mov ebx, 0x100
lea eax, [ebp - 0x11c]
push ebx
mov edi, 0x408d14
push eax
push edi
push str.tone
push 0x408850
call esi
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004059a0
pop ecx
pop ecx
test eax, eax
push 1
jne 0x402c58
mov eax, dword [ebp - 0x10]
push 0x41a
push dword [eax + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov byte [0x40a08c], 1
jmp 0x402c70
mov eax, dword [ebp - 0x10]
push 0x419
push dword [eax + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
and byte [0x40a08c], 0
push str.coder.ini
lea eax, [ebp - 0x21c]
push ebx
push eax
push 0x40c794
push str.modem
push 0x408850
call esi
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 0xc], ebx
call dword [0x409234]
cmp eax, 0x25b
jne 0x402f3b
push dword [ebp - 4]
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [eax], 0x98
call dword [0x409234]
test eax, eax
jne 0x402f32
cmp dword [ebp - 0x14], ebx
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov esi, 0x409c8c
jbe 0x402ef3
mov eax, dword [ebp - 0x1c]
add eax, 0x15
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push str.modem
add eax, 0xffffffef
push eax
call fcn.00405ac0
pop ecx
test eax, eax
pop ecx
je 0x402d2d
mov eax, dword [ebp - 8]
push str.isdn
add eax, 0xffffffef
push eax
call fcn.00405ac0
pop ecx
test eax, eax
pop ecx
jne 0x402edd
push 0x408d44
push dword [ebp - 8]
call fcn.00404934
pop ecx
test eax, eax
pop ecx
jne 0x402edd
push str.Ethernet
push dword [ebp - 8]
call fcn.00404934
pop ecx
test eax, eax
pop ecx
jne 0x402edd
push dword [ebp - 8]
lea eax, [ebp - 0x11c]
push eax
call fcn.00405820
lea eax, [ebp - 0x11c]
push 0x408668
push eax
call fcn.00405830
mov eax, dword [ebp - 8]
add eax, 0xffffffef
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00405830
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.00405820
add esp, 0x20
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x10]
push 0xffffffffffffffff
push 0x14a
push 0x3f6
push dword [eax + 4]
call edi
cmp dword [ebp - 0xc], 6
jae 0x402df1
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00405ac0
pop ecx
test eax, eax
pop ecx
jne 0x402df1
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
push esi
mov dword [ebp - 0xc], 6
call fcn.00405820
pop ecx
pop ecx
cmp dword [ebp - 0xc], 5
jae 0x402e23
push dword [ebp - 8]
push 0x408d34
call fcn.00405ac0
pop ecx
test eax, eax
pop ecx
jne 0x402e23
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
push esi
mov dword [ebp - 0xc], 5
call fcn.00405820
pop ecx
pop ecx
cmp dword [ebp - 0xc], 4
jae 0x402e55
push dword [ebp - 8]
push str.internet
call fcn.00405ac0
pop ecx
test eax, eax
pop ecx
jne 0x402e55
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
push esi
mov dword [ebp - 0xc], 4
call fcn.00405820
pop ecx
pop ecx
cmp dword [ebp - 0xc], 3
jae 0x402e87
push dword [ebp - 8]
push str.capi
call fcn.00405ac0
pop ecx
test eax, eax
pop ecx
jne 0x402e87
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
push esi
mov dword [ebp - 0xc], 3
call fcn.00405820
pop ecx
pop ecx
cmp dword [ebp - 0xc], 2
jae 0x402ebd
mov eax, dword [ebp - 8]
add eax, 0xffffffef
push eax
push str.isdn
call fcn.00405ac0
pop ecx
test eax, eax
pop ecx
jne 0x402ebd
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
push esi
mov dword [ebp - 0xc], 2
call fcn.00405820
pop ecx
pop ecx
push 1
pop eax
cmp dword [ebp - 0xc], eax
jae 0x402eda
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.00405820
pop ecx
pop ecx
inc dword [ebp - 4]
add dword [ebp - 8], 0x98
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jb 0x402cfb
mov eax, dword [ebp - 0x10]
push 0
push ebx
push 0x14e
push 0x3f6
push dword [eax + 4]
call edi
mov eax, dword [ebp - 0x10]
push esi
push ebx
push 0x148
push 0x3f6
push dword [eax + 4]
call edi
push str.coder.ini
push esi
push str.modem
push 0x408850
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret