Function at 0x4023f0
Capabilities:
Read .ini file
Read file on windows
Set registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42c447
push eax
mov eax, 0x524c
mov dword fs:[0], esp
call fcn.004120f0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], bl
push 0x43cbe8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.00420e11
push 0x43cbe8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5268], ebx
call fcn.00420e11
push 0x43cbe8
lea ecx, [esp + 0x20]
mov byte [esp + 0x5268], 1
call fcn.00420e11
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x235]
mov byte [esp + 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x130]
push 0x104
push eax
push ebx
mov byte [esp + 0x5270], 2
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x130]
push 0x5c
push ecx
call fcn.0041202a
mov byte [eax], bl
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x234]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x234]
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.PciPorts.inf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, ebp
push 3
push ebx
and ecx, 3
push ebx
lea eax, [esp + 0x248]
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4025bb
push 0x7d1
lea ecx, [esp + 0x20]
call fcn.0042189d
mov eax, dword [0x43ccb0]
lea edx, [esp + 0x2c]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
push 0x104
push edx
push ebx
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x2c], bl
jne 0x4025ae
mov edi, dword [esp + 0x1c]
or ecx, ebp
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x30]
push 0x10
push ecx
call fcn.00427e64
lea edx, [esp + 0x24]
push ebx
push edx
lea eax, [esp + 0x444]
push 0x4e20
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
push 0x43cbe8
lea ecx, [esp + 0x18]
call fcn.00420e11
lea ecx, [esp + 0x43c]
mov byte [esp + 0x5264], 3
push ecx
lea ecx, [esp + 0x14]
call fcn.00420f2c
inc esi
lea edx, [esp + 0x338]
push esi
push str.VID_PID_NAME_d
push edx
call fcn.0041209c
add esp, 0xc
lea eax, [esp + 0x338]
lea ecx, [esp + 0x14]
push eax
call fcn.00420f2c
mov ecx, dword [esp + 0x14]
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0041fd83
mov edx, eax
cmp edx, 0xffffffff
je 0x402717
mov edi, str.VEN_XXXXDEV_XXXX
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x14]
not ecx
dec ecx
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c]
lea edx, [ecx + edx + 3]
lea ecx, [esp + 0x14]
push edx
push eax
call fcn.0041fbeb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5268], 4
call fcn.00420edc
lea ecx, [esp + 0x28]
mov byte [esp + 0x5264], 3
call fcn.00420da3
push 0x2c
lea ecx, [esp + 0x14]
call fcn.0041fb9a
lea ecx, [esp + 0x10]
call fcn.0042015a
lea ecx, [esp + 0x10]
call fcn.0042010e
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00420edc
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], ebx
jne 0x4026d8
push str.VEN_9710DEV_9865
lea ecx, [esp + 0x1c]
call fcn.00420f2c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
mov edx, dword [esp + 0x14]
add ecx, 4
push ecx
push eax
mov eax, dword [esp + 0x5274]
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402717
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20]
push str.Error_RegSetValueEx___:__d
push ecx
call fcn.004200fb
add esp, 0xc
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x5264], 2
call fcn.00420da3
cmp esi, 6
jl 0x4025d7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5264], 1
call fcn.00420da3
lea ecx, [esp + 0x18]
mov byte [esp + 0x5264], bl
call fcn.00420da3
lea ecx, [esp + 0x10]
mov dword [esp + 0x5264], 0xffffffff
call fcn.00420da3
mov ecx, dword [esp + 0x525c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5258
ret 4