Function at 0x4026f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xaf0
mov dl, byte [0x412e64]
push ebx
push esi
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x265]
mov byte [esp + 0x264], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xd5]
mov byte [esp + 0xd4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x19d]
mov byte [esp + 0x19c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x32d]
mov byte [esp + 0x32c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x412e64
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.C:WCH.CNCH341SERCH341SER.INF
mov eax, ecx
mov esi, edi
mov edi, str.USBVID_1A86PID_7523
push 0x7d0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x334]
push ecx
push str.Manufacturer
call ebx
cmp eax, 1
jae 0x402811
mov al, byte [0x40ea68]
cmp al, 1
jne 0x4027eb
push 0x40
push 0x40c028
push 0x40c014
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
add esp, 0xaf0
ret
test al, al
jne 0x402afe
push 0
push 0x40c028
push str.Get_install_information_failure.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
add esp, 0xaf0
ret
lea edi, [esp + 0x32c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3d
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]
lea ecx, [esp + 0x1a0]
push ecx
call fcn.004040c0
mov edx, eax
lea ecx, [esp + 0x1a4]
sub edx, ecx
add esp, 8
lea ecx, [edx - 2]
cmp ecx, 1
jl 0x402afe
inc eax
mov edx, ecx
mov esi, eax
lea edi, [esp + 0x264]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401dd0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
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]
lea ecx, [esp + 0x14]
push ecx
call fcn.004040c0
add esp, 0xc
test eax, eax
je 0x4028bc
mov byte [eax], 0
push str.C:WCH.CNCH341SERCH341SER.INF
lea edx, [esp + 0x330]
push 0x7d0
lea eax, [esp + 0x14]
push edx
push eax
call ebx
lea ecx, [esp + 0x32c]
push 0x25
push ecx
call fcn.004040c0
mov edi, eax
add esp, 8
test edi, edi
je 0x402afe
lea esi, [edi + 1]
push 0x25
push esi
call fcn.004040c0
sub eax, edi
add esp, 8
lea edx, [eax - 1]
cmp edx, 1
jl 0x402afe
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0xc]
push ebp
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401dd0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push str.C:WCH.CNCH341SERCH341SER.INF
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1f4
lea edi, [esp + 0x334]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x334]
push 0x7d0
push ecx
lea edx, [esp + 0x274]
push eax
push edx
push str.Strings
call ebx
lea edi, [esp + 0x330]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov ecx, ebp
lea edx, [esp + 0xd8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._r_n______
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1f4
lea edi, [esp + 0x330]
rep stosd dword es:[edi], eax
push str.C:WCH.CNCH341SERCH341SER.INF
lea eax, [esp + 0x334]
push 0x7d0
push eax
lea ecx, [esp + 0x1c]
push 0
push ecx
push str.Strings
call ebx
lea edi, [esp + 0x330]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.C:WCH.CNCH341SERCH341SER.INF
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]
mov ecx, ebp
lea edx, [esp + 0xdc]
and ecx, 3
push 0x7d0
rep movsb byte es:[edi], byte [esi]
mov edi, str._r_n__________
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1f4
lea edi, [esp + 0x338]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x338]
push eax
push 0
push str.DriverVer
push str.Version
call ebx
lea edi, [esp + 0x330]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x32
mov edi, dword [esp + 0xb08]
lea esi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xaf0
ret