Function at 0x404cd0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43a2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x44c5c0]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x4e40]
lea ecx, [esi + 0x4e40]
mov dword [esp + 0x130], 0
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00420bbe
lea ecx, [esi + 0x4e44]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x13c], 1
call fcn.00427370
push str..ini
push eax
lea eax, [esp + 0x28]
mov bl, 2
push eax
mov byte [esp + 0x13c], bl
call fcn.004273d6
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 3
call fcn.00427544
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], bl
call fcn.00427141
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
call fcn.00427141
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 0
call fcn.00427141
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push ecx
push 0x104
push edx
push str.linkerror
push str.LinkType
push str.Link
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ebp, [esi + 0x5ee0]
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.004272ca
mov ecx, ebp
call fcn.00427605
mov ecx, dword [ebp]
lea edi, [esi + 0x12c]
mov dword [esp + 0x1c], edi
mov eax, dword [ecx - 8]
mov ecx, ebp
push eax
call fcn.0042755c
mov edx, dword [eax]
mov dword [edi], edx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov eax, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebp
mov dword [edi + 0xc], eax
call fcn.004275ab
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
push 0
push str.Switch
push str.Link
call ebx
test eax, eax
jne 0x404e3f
mov byte [esi + 0x13c], al
jmp 0x404e46
mov byte [esi + 0x13c], 1
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x104
push eax
push str.192.168.1.1
push str.LocalIP
push str.Link
mov byte [esi + 0x14d], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.004272ca
mov ecx, ebp
call fcn.00427605
mov edx, dword [ebp]
mov ecx, ebp
mov eax, dword [edx - 8]
push eax
call fcn.0042755c
mov edx, dword [eax]
lea ecx, [esi + 0xdc]
push 0xffffffffffffffff
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004275ab
mov ecx, dword [esp + 0x10]
push ecx
push 0x26c2
push str.LocalPort
push str.Link
call ebx
mov edx, dword [esp + 0x10]
mov dword [esi + 0xd0], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0x104
push eax
push str.192.168.1.1
push str.MasterIP
push str.Link
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.004272ca
mov ecx, ebp
call fcn.00427605
mov edx, dword [ebp]
mov ecx, ebp
mov eax, dword [edx - 8]
push eax
call fcn.0042755c
mov edx, dword [eax]
lea ecx, [esi + 0xec]
push 0xffffffffffffffff
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004275ab
mov ecx, dword [esp + 0x10]
push ecx
push 0x26c2
push str.MasterPort
push str.Link
call ebx
mov edx, dword [esp + 0x10]
mov dword [esi + 0xd4], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0x104
push eax
push str.192.168.1.1
push str.SlaverIp
push str.Link
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.004272ca
mov ecx, ebp
call fcn.00427605
mov edx, dword [ebp]
mov ecx, ebp
mov eax, dword [edx - 8]
push eax
call fcn.0042755c
mov edx, dword [eax]
lea ecx, [esi + 0xfc]
push 0xffffffffffffffff
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, ebp
call fcn.004275ab
mov ecx, dword [esp + 0x10]
push ecx
push 0x26c2
push str.SlaverPort
push str.Link
call ebx
mov edx, dword [esp + 0x10]
mov dword [esi + 0xd8], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0x104
push eax
push str.1_9600_n_8_1
push str.MasterCom
push str.Link
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.004272ca
mov ecx, ebp
call fcn.00427605
mov edx, dword [ebp]
mov ecx, ebp
mov eax, dword [edx - 8]
push eax
call fcn.0042755c
mov edx, dword [eax]
lea ecx, [esi + 0x10c]
mov dword [esi + 0x10c], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
push 0xffffffffffffffff
mov ecx, ebp
call fcn.004275ab
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push ecx
push 0x104
push edx
push 0x44b8c4
push str.SlaverCom
push str.Link
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.004272ca
mov ecx, ebp
call fcn.00427605
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
mov ecx, ebp
push eax
call fcn.0042755c
mov ecx, dword [eax]
lea edx, [esi + 0x11c]
push 0xffffffffffffffff
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, ebp
mov dword [edx + 0xc], eax
call fcn.004275ab
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
push str.ModType
push str.System
call ebx
mov edx, dword [esp + 0x10]
mov byte [esi + 0x14e], al
push edx
push 0
push str.StationID
push str.MNPType
call ebx
mov dword [esi + 0x6ef8], eax
mov eax, dword [esp + 0x10]
push eax
push 0
push str.TransWay
push str.MNPType
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x6ef4], eax
push ecx
push 0x1e
push str.YXMNPDelay
push str.MNPType
call ebx
mov edx, dword [esp + 0x10]
mov word [esi + 0x6efc], ax
push edx
push 0
push str.IsInitShow
push str.MNPType
call ebx
mov byte [esi + 0x6efe], al
mov eax, dword [esp + 0x10]
push eax
push 0
push str.SelfAutoYKPermit
push str.MNPType
call ebx
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x6eff], al
push ecx
push 1
push str.ReSendTimes
push str.System
call ebx
cmp eax, 1
jl 0x4051b4
cmp eax, 6
jg 0x4051b4
mov dword [esi + 0xc0], eax
jmp 0x4051be
mov dword [esi + 0xc0], 1
mov edx, dword [esp + 0x10]
push edx
push 0xbb8
push str.ReSendDelay
push str.System
call ebx
cmp eax, 0x64
jl 0x4051e8
cmp eax, 0xea60
jg 0x4051e8
mov dword [esi + 0xbc], eax
jmp 0x4051f2
mov dword [esi + 0xbc], 0xbb8
mov eax, dword [esp + 0x10]
push eax
push 0
push str.TxDebug
push str.System
call ebx
mov ecx, dword [esp + 0x10]
mov byte [esi + 0x178], al
push ecx
push 0xa
push str.AutoExitCnt
push str.Link
call ebx
mov dword [esi + 0xcc], eax
mov esi, dword [esp + 0x1c]
mov ecx, 9
mov edi, str.linkerror
xor edx, edx
mov dword [esp + 0x130], 0xffffffff
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
pop ebp
pop ebx
lea ecx, [esp]
jne 0x405267
call fcn.00427141
xor eax, eax
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
add esp, 0x124
ret
call fcn.00427141
mov ecx, dword [esp + 0x118]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x124
ret