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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ecx + 0xc]
lea ebx, [ecx + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x10202940
mov dword [ebp - 0x434], edi
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1007f1f6
test dx, dx
je 0x1007f1f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1007f1f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1007f1d0
xor eax, eax
jmp 0x1007f1fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1007f225
lea ecx, [esi - 0x10]
push ecx
call fcn.10002a60
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
call fcn.100de1d0
test eax, eax
je 0x1007f4f3
lea eax, [ebp - 0x418]
push str._systemroot_System32oeminfo.ini
push eax
call fcn.10008d60
mov edi, dword [ebp - 0x418]
add esp, 8
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1007f262
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x1007f275
call eax
jmp 0x1007f27b
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x41c], eax
test esi, esi
je 0x1007f28c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or edi, 0xffffffff
cmp dword [ebp - 0x41c], 0
je 0x1007f4d4
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
add esp, 0xc
push dword [ebp - 0x418]
push 0x104
push eax
push 0x10202940
push 0x1020addc
push str.General
call esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1007f355
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x420]
call fcn.10002490
push eax
lea eax, [ebp - 0x424]
push str.Manufacturer
push eax
call fcn.10021a80
add esp, 0xc
mov ecx, ebx
push eax
call fcn.10002790
mov edx, dword [ebp - 0x424]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007f338
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007f355
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp - 0x418]
push 0x104
push eax
push 0x10202940
push 0x1020ae24
push str.General
call esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1007f4d4
push 0x10202940
push ebx
call fcn.10033f60
add esp, 8
test al, al
je 0x1007f466
mov eax, dword [ebx]
mov esi, 0x10202c44
sub esi, eax
mov dword [ebp - 0x42c], 0x10202c44
push 1
push 0x10202c44
mov eax, dword [eax - 0xc]
sar esi, 1
mov dword [ebp - 0x41c], eax
call fcn.101e6fd0
mov ecx, dword [ebp - 0x41c]
mov edx, eax
mov eax, dword [ebx]
add ecx, edx
mov dword [ebp - 0x424], edx
add esp, 8
mov dword [ebp - 0x428], ecx
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, dword [ebp - 0x428]
or edx, ecx
jge 0x1007f422
push dword [ebp - 0x428]
mov ecx, ebx
call fcn.10003310
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x41c]
cmp esi, ecx
ja 0x1007f435
lea eax, [eax + esi*2]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x424]
add eax, eax
push eax
push dword [ebp - 0x42c]
push eax
mov eax, dword [ebx]
lea eax, [eax + ecx*2]
push eax
call fcn.10004510
mov eax, dword [ebx]
add esp, 0x10
mov ecx, dword [ebp - 0x428]
xor edx, edx
mov dword [eax - 0xc], ecx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x420]
call fcn.10002490
push eax
lea eax, [ebp - 0x424]
push str.Model
push eax
call fcn.10021a80
add esp, 0xc
mov ecx, ebx
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10002970
mov edx, dword [ebp - 0x424]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007f4b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007f4d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1007f82a
mov ecx, dword [edx]
push edx
jmp 0x1007f825
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push 0x208
push 0
mov dword [ebp - 0x42c], 1
lea esi, [eax + 0x10]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x428], 0x208
lea eax, [ebp - 0x428]
push 0x20119
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x1020addc
push str.SOFTWAREMicrosoftWindowsCurrentVersionOEMInformation
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100585c0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
or edi, 0xffffffff
test eax, eax
je 0x1007f625
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10023e80
test al, al
jne 0x1007f5c8
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007f5a6
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x418]
call fcn.10003740
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x420]
push str.Manufacturer
push eax
call fcn.10021a80
add esp, 0xc
mov ecx, ebx
push eax
call fcn.10002790
mov edx, dword [ebp - 0x420]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007f608
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007f625
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x42c], 1
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x428], 0x208
lea eax, [ebp - 0x428]
push 0x20119
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x1020ae24
push str.SOFTWAREMicrosoftWindowsCurrentVersionOEMInformation
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100585c0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1007f815
push 0x10202940
push ebx
call fcn.10033f60
add esp, 8
test al, al
je 0x1007f75d
mov eax, dword [ebx]
mov ecx, 0x10202c44
sub ecx, eax
mov dword [ebp - 0x420], 0x10202c44
sar ecx, 1
push 1
mov eax, dword [eax - 0xc]
push 0x10202c44
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x418], eax
call fcn.101e6fd0
mov dword [ebp - 0x41c], eax
mov edx, 1
mov eax, dword [ebx]
add esp, 8
mov edi, 0xffffffff
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
mov eax, dword [ebp - 0x418]
add eax, dword [ebp - 0x41c]
sub ecx, eax
or edx, ecx
jge 0x1007f70d
push eax
mov ecx, ebx
call fcn.10003310
mov eax, dword [ebp - 0x430]
mov edx, dword [ebp - 0x418]
mov ecx, dword [ebx]
cmp eax, edx
ja 0x1007f728
lea eax, [ecx + eax*2]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x41c]
add eax, eax
push eax
push dword [ebp - 0x420]
push eax
lea eax, [ecx + edx*2]
push eax
call fcn.10004510
mov eax, dword [ebx]
add esp, 0x10
mov ecx, dword [ebp - 0x418]
add ecx, dword [ebp - 0x41c]
xor edx, edx
mov dword [eax - 0xc], ecx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10023e80
test al, al
jne 0x1007f7b3
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007f791
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x418]
call fcn.10003740
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x430]
push str.Model
push eax
call fcn.10021a80
add esp, 0xc
mov ecx, ebx
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10002970
mov edx, dword [ebp - 0x430]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007f7f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007f815
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1007f82a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.10002a60
mov ecx, dword [ebp - 0x434]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4