Function at 0x42f660
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da2b1
mov eax, dword fs:[0]
push eax
sub esp, 0x7b8
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x7c4]
call fcn.0043f130
mov dword [ebp - 4], 0
lea edi, [ebp - 0x7c4]
cmp dword [ebp - 0x7b0], 8
cmovae edi, dword [ebp - 0x7c4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f94b
push 0x65fb10
push edi
mov edx, str.ThinkBrand
mov ecx, str.BasicMachineInfo
call fcn.0043f060
mov ecx, dword [0x65fb10]
or esi, 0xffffffff
test eax, eax
mov edx, str.GamingDevice
push 0x65fb14
cmove ecx, esi
mov dword [0x65fb10], ecx
mov ecx, str.BasicMachineInfo
push edi
call fcn.0043f060
mov ecx, dword [0x65fb14]
test eax, eax
push 0x65fb18
cmove ecx, esi
mov edx, str.AioDesktop
mov dword [0x65fb14], ecx
mov ecx, str.BasicMachineInfo
push edi
call fcn.0043f060
mov ecx, dword [0x65fb18]
test eax, eax
push 0x200
lea eax, [ebp - 0x390]
cmove ecx, esi
push 0
push eax
mov dword [0x65fb18], ecx
call fcn.005aaec0
add esp, 0x24
lea eax, [ebp - 0x390]
mov ecx, 0x200
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x42f760
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test edi, edi
je 0x42f7ec
push edi
push 0xff
lea eax, [ebp - 0x390]
push eax
push ecx
push str.FamilyName
push str.BasicMachineInfo
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x42f7d6
test eax, eax
jne 0x42f7d6
xor ecx, ecx
test esi, esi
setg cl
test ecx, ecx
je 0x42f7ec
lea ecx, [ebp - 0x390]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f7b3
sub ecx, edx
lea eax, [ebp - 0x390]
sar ecx, 1
push ecx
push eax
mov ecx, 0x669aa0
call fcn.00403300
jmp 0x42f7ec
mov ecx, 0x200
lea eax, [ebp - 0x390]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x42f7e1
push 0x200
lea eax, [ebp - 0x590]
push 0
push eax
call fcn.005aaec0
add esp, 0xc
lea eax, [ebp - 0x590]
mov ecx, 0x200
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x42f810
test edi, edi
je 0x42f89b
push edi
push 0xff
lea eax, [ebp - 0x590]
push eax
push ecx
push str.Serialnumber
push str.BasicMachineInfo
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x42f884
test eax, eax
jne 0x42f884
xor ecx, ecx
test esi, esi
setg cl
test ecx, ecx
je 0x42f89b
lea ecx, [ebp - 0x590]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f861
sub ecx, edx
lea eax, [ebp - 0x590]
sar ecx, 1
push ecx
push eax
mov ecx, 0x669aa4
call fcn.00403300
jmp 0x42f89b
mov ecx, 0x200
lea eax, [ebp - 0x590]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x42f890
push 0x200
lea eax, [ebp - 0x790]
push 0
push eax
call fcn.005aaec0
add esp, 0xc
lea eax, [ebp - 0x790]
mov ecx, 0x200
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x42f8c0
test edi, edi
je 0x42f94b
push edi
push 0xff
lea eax, [ebp - 0x790]
push eax
push ecx
push 0x634528
push str.BasicMachineInfo
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x42f934
test eax, eax
jne 0x42f934
xor ecx, ecx
test esi, esi
setg cl
test ecx, ecx
je 0x42f94b
lea ecx, [ebp - 0x790]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f911
sub ecx, edx
lea eax, [ebp - 0x790]
sar ecx, 1
push ecx
push eax
mov ecx, 0x669aa8
call fcn.00403300
jmp 0x42f94b
mov ecx, 0x200
lea eax, [ebp - 0x790]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x42f940
cmp dword [0x65fb10], 0xffffffff
je 0x42f98b
cmp dword [0x65fb14], 0xffffffff
je 0x42f98b
cmp dword [0x65fb18], 0xffffffff
je 0x42f98b
mov eax, dword [0x669aa0]
cmp dword [eax - 0xc], 0
je 0x42f98b
mov eax, dword [0x669aa4]
cmp dword [eax - 0xc], 0
je 0x42f98b
mov eax, dword [0x669aa8]
cmp dword [eax - 0xc], 0
jne 0x42fc21
mov dword [0x65fb10], 0
call fcn.0042fc90
mov esi, dword [0x669ac8]
movzx eax, al
mov dword [0x65fb14], eax
test esi, esi
je 0x42fc21
mov dword [ebp - 0x7a0], 0
mov dword [ebp - 0x7a4], 0
mov dword [ebp - 0x7a8], 0
mov dword [ebp - 0x79c], 0
mov dword [ebp - 0x798], 0
mov dword [ebp - 0x794], 0
lea ecx, [ebp - 0x7ac]
mov byte [ebp - 4], 3
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x794]
mov dword [ebp - 0x7ac], 0
push ecx
lea ecx, [ebp - 0x798]
push ecx
lea ecx, [ebp - 0x79c]
push ecx
lea ecx, [ebp - 0x7a8]
push ecx
lea ecx, [ebp - 0x7a4]
push ecx
lea ecx, [ebp - 0x7a0]
push ecx
push esi
call dword [eax + 0x198]
test eax, eax
jns 0x42fa44
push 0x629b58
push esi
push eax
call fcn.00591020
mov eax, dword [ebp - 0x7a0]
mov dword [0x65fb10], eax
mov eax, dword [ebp - 0x7a4]
mov dword [0x65fb14], eax
mov eax, dword [ebp - 0x7a8]
mov dword [0x65fb18], eax
mov eax, dword [ebp - 0x79c]
test eax, eax
jne 0x42fa73
xor edx, edx
jmp 0x42fa8f
mov edx, eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x42fa80
sub edx, esi
sar edx, 1
push edx
push eax
mov ecx, 0x669aa0
call fcn.00403300
mov eax, dword [ebp - 0x798]
test eax, eax
jne 0x42faa9
xor edx, edx
jmp 0x42fabf
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x42fab0
sub edx, esi
sar edx, 1
push edx
push eax
mov ecx, 0x669aa4
call fcn.00403300
mov eax, dword [ebp - 0x794]
test eax, eax
jne 0x42fad9
xor edx, edx
jmp 0x42faef
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x42fae0
sub edx, esi
sar edx, 1
push edx
push eax
mov ecx, 0x669aa8
call fcn.00403300
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.005aaec0
push dword [0x65fb10]
lea eax, [ebp - 0x90]
push 0x629b68
push 0x3f
push eax
call fcn.00409ef0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x90]
add esp, 0x1c
push edi
push eax
push str.ThinkBrand
push str.BasicMachineInfo
call esi
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.005aaec0
push dword [0x65fb14]
lea eax, [ebp - 0x110]
push 0x629b68
push 0x3f
push eax
call fcn.00409ef0
add esp, 0x1c
lea eax, [ebp - 0x110]
push edi
push eax
push str.GamingDevice
push str.BasicMachineInfo
call esi
push 0x80
lea eax, [ebp - 0x190]
push 0
push eax
call fcn.005aaec0
push dword [0x65fb18]
lea eax, [ebp - 0x190]
push 0x629b68
push 0x3f
push eax
call fcn.00409ef0
add esp, 0x1c
lea eax, [ebp - 0x190]
push edi
push eax
push str.AioDesktop
push str.BasicMachineInfo
call esi
push edi
push dword [0x669aa0]
push str.FamilyName
push str.BasicMachineInfo
call esi
push edi
push dword [0x669aa4]
push str.Serialnumber
push str.BasicMachineInfo
call esi
push edi
push dword [0x669aa8]
push 0x634528
push str.BasicMachineInfo
call esi
push dword [ebp - 0x794]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x798]
call esi
push dword [ebp - 0x79c]
call esi
mov ecx, dword [ebp - 0x7b0]
cmp ecx, 8
jb 0x42fc5d
mov edx, dword [ebp - 0x7c4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42fc53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42fc7b
push ecx
push edx
call fcn.0058fc74
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
call fcn.005ae1ee
int3