Function at 0x405204
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4505b3
call fcn.0041e4b8
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, ecx
call fcn.00405193
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.00405094
add esp, 0x10
push dword [eax]
lea ecx, [edi + 0x134]
push 0x10
push 0x10
mov byte [ebp - 4], 1
call fcn.00404bd3
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push str.127.0.0.1
push str.HOST_IP
push 0x457a24
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.00405094
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x16c]
push 0x10
push 0x10
mov byte [ebp - 4], 2
call fcn.00404bd3
push eax
push str.127.0.0.1
push str.HOST_MONITOR_IP
push 0x457a24
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.00405094
add esp, 0xc
push dword [eax]
push 0x2711
push str.FEP_PORT
push 0x457a04
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.00405094
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x80]
push 0x10
push 0x10
mov byte [ebp - 4], 3
call fcn.00404bd3
push eax
push str.192.168.0.1
push str.ATM_IP
push 0x4579ec
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.00405094
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x84]
push 0x10
push 0x10
mov byte [ebp - 4], 4
call fcn.00404bd3
push eax
push str.255.255.255.1
push str.ATM_MASK
push 0x4579ec
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.00405094
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x88]
push 0x10
push 0x10
mov byte [ebp - 4], 5
call fcn.00404bd3
push eax
push str.192.168.0.1
push str.ATM_GATEWAY
push 0x4579ec
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.00405094
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x8c]
push 0x10
push 0x10
mov byte [ebp - 4], 6
call fcn.00404bd3
push eax
push str.192.168.0.1
push str.CDM_IP
push 0x4579ec
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.00405094
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x90]
push 0x10
push 0x10
mov byte [ebp - 4], 7
call fcn.00404bd3
push eax
push str.255.255.255.1
push str.CDM_MASK
push 0x4579ec
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.00405094
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x94]
push 0x10
push 0x10
mov byte [ebp - 4], 8
call fcn.00404bd3
push eax
push str.192.168.0.1
push str.CDM_GATEWAY
push 0x4579ec
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 0x4054aa
cmp eax, 0xffff
jle 0x4054b1
mov dword [edi + 0x7c], 0x2711
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00405094
add esp, 0xc
push dword [eax]
push 0x2710
push str.HOST_PORT
push 0x457a24
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.00405094
add esp, 0xc
push dword [eax]
push 0x7db
push str.LISTEN_PORT_CONTROL
push 0x457a24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov dword [edi + 0x164], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405094
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.00405094
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.00405094
add esp, 0xc
push dword [eax]
push 0x7d1
push str.HOST_MONITOR_PORT
push 0x457a24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [edi + 0x168], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00405094
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 + 0x180], eax
call fcn.004011ce
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405094
add esp, 0xc
push dword [eax]
lea ecx, [edi + 0x17c]
push 0x10
push 0x10
mov byte [ebp - 4], 9
call fcn.00404bd3
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