Function at 0x401260
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xf4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov edi, 0x40cb90
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._asdpu.cfg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
and ecx, 3
push 0x27
push str.NODE
rep movsb byte es:[edi], byte [esi]
push str.NODE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
mov word [0x40b93c], ax
cmp ax, cx
jbe 0x4012e8
cmp ax, 0x14
jbe 0x4012f4
cmp ax, 0x3c
jbe 0x401306
cmp ax, 0x50
ja 0x401306
mov edx, dword [0x40b93c]
add edx, 0x14
mov word [0x40b942], dx
jmp 0x401335
cmp ax, 0x14
jbe 0x401312
cmp ax, 0x28
jbe 0x40131e
cmp ax, 0x50
jbe 0x40132e
cmp ax, 0x64
ja 0x40132e
mov eax, dword [0x40b93c]
add eax, 0xffffffec
mov word [0x40b942], ax
jmp 0x401335
mov word [0x40b942], cx
mov word [0x40b944], cx
mov edi, str.IODefinition
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep movsb byte es:[edi], byte [esi]
mov edi, str.Alarm
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov word [0x40b920], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
push 0x14
push edx
push 0x40b0fc
lea ecx, [esp + 0x38]
push eax
push ecx
call ebp
mov ebx, dword [sym.imp.MSVCRT.dll__strcmpi]
lea edx, [esp + 0xa0]
push 0x40b0f8
push edx
call ebx
add esp, 8
mov edi, str.Operation
neg eax
sbb eax, eax
or ecx, 0xffffffff
inc eax
lea edx, [esp + 0x14]
mov dword [0x40b904], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
push 0x14
push edx
push 0x40b0fc
lea ecx, [esp + 0x38]
push eax
push ecx
call ebp
push 0x40b0f8
lea edx, [esp + 0xa4]
push edx
call ebx
add esp, 8
test eax, eax
jne 0x401441
mov dword [0x40b8fc], 1
jmp 0x4014a2
lea eax, [esp + 0xa0]
push 0x40b0e8
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40145e
mov dword [0x40b8fc], eax
jmp 0x4014a2
lea ecx, [esp + 0xa0]
mov dword [0x40b8fc], 2
push ecx
call sub.XAPIDB.dll_GetDtID
cmp ax, 0xffff
mov word [0x40b024], ax
jne 0x4014a2
cmp byte [esp + 0xa0], 0x23
jne 0x4014a2
lea edx, [esp + 0xa1]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov word [0x40b024], ax
mov edi, str.SetTime
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
push 0x14
push edx
push 0x40b0fc
lea ecx, [esp + 0x38]
push eax
push ecx
call ebp
lea edx, [esp + 0xa0]
push 0x40b0f8
push edx
call ebx
add esp, 8
mov edi, str.PartnerMMINode
neg eax
sbb eax, eax
or ecx, 0xffffffff
inc eax
lea edx, [esp + 0x14]
mov dword [0x40b900], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
push 0xffff
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xa0]
push ecx
push 0x14
mov word [0x40b8f8], ax
push edx
push 0x40b0c8
lea eax, [esp + 0x38]
push str.BroadType
push eax
call ebp
lea ecx, [esp + 0xa0]
push str.TISNET
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x401589
mov word [0x40cb64], 1
mov edi, str.DefAutoModified
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AutoSetIP
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
push 0x14
push 0x40b908
push 0x40b0fc
push edx
push eax
call ebp
mov edi, str.BasePort
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
push 0xcec
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x40b020], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, 1
mov dword [esp + 0x10], 0x320
mov edi, 0x40ce74
push esi
lea ecx, [esp + 0x18]
push str.IRQ_d
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esi + 9]
lea ecx, [esp + 0x14]
push edx
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [edi - 4], eax
push esi
lea eax, [esp + 0x18]
push str.IOAddr_d
push eax
call ebx
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
lea edx, [esp + 0x18]
push str.DRV_d
push edx
mov dword [edi], eax
call ebx
add esp, 0xc
lea eax, [esp + 0x3c]
lea ecx, [edi + 0x28]
lea edx, [esp + 0x14]
push eax
push 0x1e
push ecx
push str.NE2000
lea eax, [esp + 0x38]
push edx
push eax
call ebp
push esi
lea ecx, [esp + 0x18]
push str.NetIP_d
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [edi + 0x46]
lea ecx, [esp + 0x14]
push edx
push 0x14
push eax
push 0x40ca64
lea edx, [esp + 0x38]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x10]
add edi, 0x5e
inc esi
add edx, 0x20
cmp edi, 0x40ced2
mov dword [esp + 0x10], edx
jle 0x401655
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xf4
ret