Function at 0x401d60
Capabilities:
Get common file path
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42b592
push eax
mov eax, 0x503c
mov dword fs:[0], esp
call fcn.004111c0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
push 0x43bc70
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.0041ff21
xor ebx, ebx
push 0x43bc70
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5058], ebx
call fcn.0041ff21
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x128]
mov byte [esp + 0x5054], 1
push eax
push 0x104
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x401e08
push ebx
push ebx
push str.GetCurrentDirectory_failed_
call fcn.00426fe8
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
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 3
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
push ebx
and ecx, 3
push ebx
lea eax, [esp + 0x38]
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
push ebx
jne 0x401eb5
push ebx
push str.CreateFile_failed
call fcn.00426fe8
lea ecx, [esp + 0x18]
mov byte [esp + 0x5054], 0
call fcn.0041feb3
lea ecx, [esp + 0x10]
mov dword [esp + 0x5054], 0xffffffff
call fcn.0041feb3
xor eax, eax
jmp 0x4021d5
lea ecx, [esp + 0x24]
lea edx, [esp + 0x230]
push ecx
push 0x4e20
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x10]
push eax
call fcn.0042003c
push ebx
push str.CustomerName
lea ecx, [esp + 0x18]
call fcn.0041ee93
push str.ProviderName
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0041ee85
mov edx, eax
mov edi, str.CustomerName
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, esi
sub edx, ecx
mov edi, str.CustomerName
or ecx, 0xffffffff
dec edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea edx, [esp + 0x18]
lea ecx, [ecx + esi + 1]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0041ecfb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5058], 2
call fcn.0041ffec
lea ecx, [esp + 0x14]
mov byte [esp + 0x5054], 1
call fcn.0041feb3
push 0x22
lea ecx, [esp + 0x14]
call fcn.0041ecaa
lea ecx, [esp + 0x10]
call fcn.0041f26a
lea ecx, [esp + 0x10]
call fcn.0041f21e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.0041ffec
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebx
je 0x401fdd
lea edx, [esp + 0x10]
push str._PciUninst
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00420148
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5058], 3
call fcn.0041ffec
lea ecx, [esp + 0x14]
mov byte [esp + 0x5054], 1
call fcn.0041feb3
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x64]
call fcn.0041ffec
lea edx, [esp + 0x18]
lea ecx, [ebp + 0x60]
push edx
call fcn.0041ffec
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x10]
push eax
call fcn.0042003c
push ebx
push str.ProviderName
lea ecx, [esp + 0x18]
call fcn.0041ee93
push str.UninstallName
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0041ee85
mov edx, eax
mov edi, str.ProviderName
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, esi
sub edx, ecx
mov edi, str.ProviderName
or ecx, 0xffffffff
dec edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea edx, [esp + 0x18]
lea ecx, [ecx + esi + 1]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0041ecfb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5058], 4
call fcn.0041ffec
lea ecx, [esp + 0x14]
mov byte [esp + 0x5054], 1
call fcn.0041feb3
push 0x22
lea ecx, [esp + 0x14]
call fcn.0041ecaa
lea ecx, [esp + 0x10]
call fcn.0041f26a
lea ecx, [esp + 0x10]
call fcn.0041f21e
lea ebx, [ebp + 0x68]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.0041ffec
lea ecx, [esp + 0x22c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0042003c
push str.UninstallName
lea ecx, [esp + 0x14]
call fcn.0041ee85
push str.DiskName
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0041ee85
mov edx, eax
mov edi, str.UninstallName
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, esi
sub edx, ecx
mov edi, str.UninstallName
or ecx, 0xffffffff
dec edx
repne scasb al, byte es:[edi]
not ecx
push edx
dec ecx
lea edx, [ecx + esi + 1]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0041ecfb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5058], 5
call fcn.0041ffec
lea ecx, [esp + 0x14]
mov byte [esp + 0x5054], 1
call fcn.0041feb3
push 0x22
lea ecx, [esp + 0x14]
call fcn.0041ecaa
lea ecx, [esp + 0x10]
call fcn.0041f26a
lea ecx, [esp + 0x10]
call fcn.0041f21e
lea ecx, [esp + 0x10]
lea esi, [ebp + 0x6c]
push ecx
mov ecx, esi
call fcn.0041ffec
mov edx, dword [ebp + 0x60]
lea ecx, [ebp + 0x60]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40215f
push str.MOSCHIP
call fcn.0042003c
mov eax, dword [ebp + 0x64]
lea ecx, [ebp + 0x64]
mov edx, dword [eax - 8]
test edx, edx
jne 0x402176
push str.MOSCHIP_PciUninst
call fcn.0042003c
mov ecx, dword [ebx]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40218b
push str.MosChip_Semiconductor_Technology_Ltd
mov ecx, ebx
call fcn.0042003c
mov edx, dword [esi]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4021a0
push str.MosChip_PCI_Multi_IO_Controller
mov ecx, esi
call fcn.0042003c
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov byte [esp + 0x5054], 0
call fcn.0041feb3
lea ecx, [esp + 0x10]
mov dword [esp + 0x5054], 0xffffffff
call fcn.0041feb3
mov eax, 1
mov ecx, dword [esp + 0x504c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5048
ret