Function at 0x404cb1
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x44fbe9
call fcn.0041db18
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, ecx
call fcn.00404c40
and dword [ebp - 4], 0
mov esi, str.ATMCNFG.ini
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404b41
add esp, 0x10
push dword [eax]
lea ecx, [edi + 0x128]
push 0x10
push 0x10
mov byte [ebp - 4], 1
call fcn.004046ab
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push str.127.0.0.1
push str.HOST_IP
push 0x457954
call ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x160]
push 0x10
push 0x10
mov byte [ebp - 4], 2
call fcn.004046ab
push eax
push str.127.0.0.1
push str.HOST_MONITOR_IP
push 0x457954
call ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
push 0x2711
push str.FEP_PORT
push 0x457934
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov dword [edi + 0x7c], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x80]
push 0x10
push 0x10
mov byte [ebp - 4], 3
call fcn.004046ab
push eax
push str.192.168.0.1
push str.ATM_IP
push 0x45791c
call ebx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x84]
push 0x10
push 0x10
mov byte [ebp - 4], 4
call fcn.004046ab
push eax
push str.255.255.255.1
push str.ATM_MASK
push 0x45791c
call ebx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x88]
push 0x10
push 0x10
mov byte [ebp - 4], 5
call fcn.004046ab
push eax
push str.192.168.0.1
push str.ATM_GATEWAY
push 0x45791c
call ebx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x8c]
push 0x10
push 0x10
mov byte [ebp - 4], 6
call fcn.004046ab
push eax
push str.192.168.0.1
push str.CDM_IP
push 0x45791c
call ebx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x90]
push 0x10
push 0x10
mov byte [ebp - 4], 7
call fcn.004046ab
push eax
push str.255.255.255.1
push str.CDM_MASK
push 0x45791c
call ebx
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x94]
push 0x10
push 0x10
mov byte [ebp - 4], 8
call fcn.004046ab
push eax
push str.192.168.0.1
push str.CDM_GATEWAY
push 0x45791c
call ebx
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011ce
mov eax, dword [edi + 0x7c]
test eax, eax
jle 0x404f57
cmp eax, 0xffff
jle 0x404f5e
mov dword [edi + 0x7c], 0x2711
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
push 0x2710
push str.HOST_PORT
push 0x457954
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov dword [edi + 0x78], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
push 0x7db
push str.LISTEN_PORT_CONTROL
push 0x457954
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov dword [edi + 0x158], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
push 5
push str.SAVETIME
push str.Parameter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov dword [edi + 0x70], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
push 0
push str.COMPDATE
push str.Parameter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov dword [edi + 0x74], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
push 0x7d1
push str.HOST_MONITOR_PORT
push 0x457954
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [edi + 0x15c], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
push 1
push str.TCPIP_SDLC
push str.ComProtocol
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [edi + 0x174], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404b41
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x170]
push 0x10
push 0x10
mov byte [ebp - 4], 9
call fcn.004046ab
push eax
mov eax, str.LinkID
push eax
push eax
push str.ComProtocol
call ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004011ce
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret