Function at 0x401e90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42c3cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x321]
mov byte [esp + 0x320], 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 + 0x119]
mov byte [esp + 0x118], 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 + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43cbe8
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.00420e11
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x320]
push 0x104
push eax
push ebx
mov dword [esp + 0x438], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x320]
push 0x5c
push ecx
call fcn.0041202a
mov byte [eax], bl
lea edi, [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
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
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebx
push ebx
mov ecx, edx
push 3
push ebx
and ecx, 3
push ebx
lea eax, [esp + 0x12c]
push SysReAllocString
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x402065
push 0x7d1
lea ecx, [esp + 0x14]
call fcn.0042189d
mov eax, dword [0x43ccb0]
lea edx, [esp + 0x21c]
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 + 0x21c], bl
jne 0x40203a
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x21c]
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 + 0x220]
push 0x10
push ecx
call fcn.00427e64
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.00420da3
xor eax, eax
jmp 0x4021a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x18]
push 0x104
push eax
push str.MOSCHIP
push str.CustomerName
push str.Strings
call esi
cmp byte [esp + 0x14], bl
je 0x4020e9
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x60]
call fcn.00420f2c
mov edi, str._PciUninst
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x64]
call fcn.00420f2c
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 0x60]
lea ecx, [ebp + 0x60]
cmp dword [edx - 8], ebx
jne 0x4020fe
push str.MOSCHIP
call fcn.00420f2c
mov eax, dword [ebp + 0x64]
lea ecx, [ebp + 0x64]
cmp dword [eax - 8], ebx
jne 0x402113
push str.MOSCHIP_PciUninst
call fcn.00420f2c
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push 0x104
push edx
push str.MosChip_Semiconductor_Technology_Ltd
push str.ProviderName
push str.Strings
call esi
cmp byte [esp + 0x14], bl
je 0x402143
lea eax, [esp + 0x14]
push eax
jmp 0x402148
push str.MosChip_Semiconductor_Technology_Ltd
lea ecx, [ebp + 0x68]
call fcn.00420f2c
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push 0x104
push edx
push str.MosChip_PCI_Multi_IO_Controller
push str.UninstallName
push str.Strings
call esi
cmp byte [esp + 0x14], bl
je 0x402180
lea eax, [esp + 0x14]
push eax
jmp 0x402185
push str.MosChip_PCI_Multi_IO_Controller
lea ecx, [ebp + 0x6c]
call fcn.00420f2c
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.00420da3
mov eax, 1
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret