Function at 0x4011cc
Capabilities:
Read .ini file

Disassembly:
jmp 0x416030
sub esp, 0x514
xor eax, eax
lea edx, [esp + 0x14]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x3f
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str..STBs_
or ecx, 0xffffffff
xor eax, eax
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]
mov ecx, ebx
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x528]
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]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
and ecx, 3
lea eax, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x1fa]
push eax
push 0x14
push edi
push 0x433900
push str.VGATYPE
push 0x4331e4
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4160dc
mov dword [ebp + 4], eax
lea ecx, [esp + 0x24]
lea edx, [ebp + 0x23]
push ecx
push 0xd
push edx
push 0x433900
push 0x4331e0
push 0x4331e4
call ebx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push 0xd
push ecx
push 0x433900
push 0x4331e0
push 0x4331e4
call ebx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xc
je 0x416135
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x514
ret 4
xor esi, esi
lea edi, [esp + 0x14]
mov ax, word [edi]
xor edx, edx
mov word [esp + 0x10], dx
push 0x10
lea ecx, [esp + 0x14]
push edx
push ecx
mov byte [esp + 0x1e], dl
mov word [esp + 0x1c], ax
call dword [sym.imp.MSVCRT.dll_strtol]
add esp, 0xc
mov byte [esi + ebp + 0x1c], al
inc esi
add edi, 2
cmp esi, 6
jl 0x41613b
lea edx, [esp + 0x24]
lea eax, [ebp + 0x30]
push edx
push 0x10
push eax
push 0x433900
push 0x4331dc
push 0x4331e4
call ebx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push 0xd
push ecx
push 0x432cf8
push str.SCREENMODE
push 0x4331e4
call ebx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4161c1
mov dl, byte [esp + 0x14]
mov byte [ebp + 0x8e], dl
jmp 0x4161c8
mov byte [ebp + 0x8e], 0x31
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push 0xd
push ecx
push 0x432cf8
push str.VGARES
push 0x4331e4
call ebx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416201
mov dl, byte [esp + 0x14]
mov byte [ebp + 0x90], dl
jmp 0x416208
mov byte [ebp + 0x90], 0x31
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push 0xd
push ecx
push 0x432cf8
push str.TVMODE
push 0x4331e4
call ebx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x416241
mov dl, byte [esp + 0x14]
mov byte [ebp + 0x8f], dl
jmp 0x416248
mov byte [ebp + 0x8f], 0x31
lea eax, [esp + 0x24]
lea edi, [ebp + 0x60]
push eax
push 0x10
push edi
push str.0.0.0.0
push 0x4331b8
push 0x4331e4
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x416291
mov edi, str.0.0.0.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x24]
lea edi, [ebp + 0x50]
push eax
push 0x10
push edi
push str.0.0.0.0
push str.GATEWAY
push 0x4331e4
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4162da
mov edi, str.0.0.0.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x24]
lea edi, [ebp + 0x70]
push eax
push 0x1e
push edi
push 0x433900
push str.SERVER
push 0x4331e4
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x416323
mov edi, str.192.168.0.201
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x70]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x24]
lea ecx, [ebp + 0x190]
push eax
push 0x14
lea eax, [ebp + 0x1c]
push ecx
push eax
push str.Name
push 0x4331e4
call ebx
lea edx, [esp + 0x24]
lea eax, [ebp + 0x91]
push edx
push 0xff
push eax
push 0x433900
push str.OtherSettings
push 0x4331e4
call ebx
lea ecx, [esp + 0x24]
lea edi, [ebp + 0x40]
push ecx
push 0x10
push edi
push str.255.255.255.0
push str.NMASK
push 0x4331e4
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4163ac
mov edi, str.255.255.255.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x24]
lea edi, [ebp + 0x1b8]
push eax
push 0x1e
push edi
push str.pxelinux.0
push str.BootFile
push 0x4331e4
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4163fb
mov edi, str.pxelinux.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x1b8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x24]
lea ecx, [ebp + 0x1d6]
push eax
push 0x10
push ecx
push 0x433900
push str.DefaultRouter
push 0x4331e4
call ebx
lea edx, [esp + 0x24]
lea eax, [ebp + 0x1e6]
push edx
push 0x14
push eax
push 0x433900
push str.DomainName
push 0x4331e4
call ebx
lea ecx, [esp + 0x24]
lea edx, [ebp + 0x1a4]
push ecx
push 0x14
push edx
push 0x433900
push str.STBType
push 0x4331e4
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [esp + 0x24]
push eax
push 0
push str.DYNCONFIG
push 0x4331e4
call esi
lea ecx, [esp + 0x24]
lea edx, [ebp + 0x614]
push ecx
push 0x12
push edx
push 0x433900
push str.RecordSvr
push 0x4331e4
mov dword [ebp], eax
call ebx
lea eax, [esp + 0x24]
lea ebx, [ebp + 0x214]
push eax
push 0x400
push ebx
push str.PROSET
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea ecx, [esp + 0x24]
push ecx
push 0
push str.CLIENTTYPE
push 0x4331e4
call esi
test eax, eax
mov dword [ebp + 0x210], eax
je 0x4164d2
mov dword [ebp + 0x210], eax
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x124]
mov esi, ecx
mov dword [esp + 0x10], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
cmp byte [ebx], 0
je 0x416587
mov cl, byte [ebx + edx]
mov eax, edx
test cl, cl
je 0x416519
mov cl, byte [ebx + edx + 1]
inc edx
test cl, cl
jne 0x416510
lea edi, [ebx + eax]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x124]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4323d4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp + 0x214]
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebx + edx]
mov eax, edx
test cl, cl
jne 0x416510
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x4165c8
cmp dword [ebp], 0
jne 0x4165c8
mov dword [ebp + 4], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x514
ret 4