Function at 0x402c30
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20dc
call fcn.004154c0
mov eax, dword [0x4237c8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebp
push esi
push edi
xor esi, esi
push eax
push esi
push str.HostNum
push 0x4202f4
mov ebp, ecx
call ebx
mov edi, eax
mov eax, dword [ebp + 4]
lea ecx, [esp + 0xe8]
lea edx, [esp + 0xe8]
push 0x3e8
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x34], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp edi, esi
mov ebp, eax
jle 0x402ed3
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402cbe
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
lea ecx, [esp + 0x6c]
push str.IP_d
push ecx
mov dword [esp + 0x50], esi
call fcn.004151c1
mov edx, dword [0x4237c8]
add esp, 0xc
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x68]
push edx
push 0x1001
push eax
push 0x4237d4
push ecx
push str.HOST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 1
jae 0x402d0b
mov byte [esp + 0xe8], 0
lea edx, [esp + 0x40]
push edx
push 0
push 0x1007
push ebp
call edi
push esi
lea eax, [esp + 0x6c]
push str.PORT_d
push eax
mov dword [esp + 0x2c], 1
call fcn.004151c1
mov ecx, dword [0x4237c8]
add esp, 0xc
lea edx, [esp + 0x68]
push ecx
push 0x1965
push edx
push str.HOST
call ebx
lea ecx, [esp + 0xe8]
push 0xa
push ecx
push eax
call fcn.0041bf50
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push esi
push 0x102e
push ebp
call edi
push esi
lea eax, [esp + 0x6c]
push str.StartPort_d
push eax
mov dword [esp + 0x2c], 2
call fcn.004151c1
mov ecx, dword [0x4237c8]
add esp, 0xc
lea edx, [esp + 0x68]
push ecx
push 1
push edx
push str.HOST
call ebx
mov ebx, eax
lea eax, [esp + 0xe8]
push 0xa
push eax
lea ecx, [ebx + 1]
push ecx
call fcn.0041bf50
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push esi
push 0x102e
push ebp
call edi
push esi
lea eax, [esp + 0x6c]
push str.EndPort_d
push eax
mov dword [esp + 0x2c], 3
call fcn.004151c1
mov ecx, dword [0x4237c8]
add esp, 0xc
lea edx, [esp + 0x68]
push ecx
push 0x10
push edx
push str.HOST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xe8]
push 0xa
inc eax
push ecx
push eax
call fcn.0041bf50
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push esi
push 0x102e
push ebp
call edi
push esi
lea eax, [esp + 0x6c]
push str.UserNum_d
push eax
call fcn.004151c1
mov ecx, dword [0x4237c8]
add esp, 0xc
lea edx, [esp + 0xe8]
lea eax, [esp + 0x68]
push ecx
push 0x1001
push edx
push 0
push eax
push str.HOST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x10]
mov ecx, 1
sub ecx, ebx
mov dword [esp + 0x20], eax
add edx, ecx
mov byte [esp + eax + 0xe8], 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10ec]
push 0xff
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0xf0]
push eax
push ecx
call fcn.00401e50
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xf8]
push edx
lea ecx, [esp + 0x1100]
push eax
push ecx
mov dword [esp + 0x3c], 4
call fcn.00401ef0
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
push esi
push 0x102e
push ebp
call edi
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x402cb8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20dc
ret