Function at 0x4034e0
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
sub esp, 0x4ac
mov dl, byte [0x412e64]
push ebx
push ebp
push esi
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xc1]
mov byte [esp + 0xc0], dl
mov byte [esp + 0x2f0], 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 + 0x2f1]
mov byte [esp + 0x3b8], dl
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 + 0x3b9]
mov byte [esp + 0x188], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x189]
mov byte [esp + 0x28], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x1ec], dl
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 + 0x1ed]
mov byte [esp + 0x8c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0xc
mov dword [esp + 0x1d], eax
lea edi, [esp + 0x8d]
mov dword [esp + 0x21], eax
push str.C:WCH.CNCH341SERCH341SER.INF
mov byte [esp + 0x29], al
mov dword [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x40ebdc]
mov byte [esp + 0x20], dl
push ecx
stosb byte es:[edi], al
call fcn.004024a0
add esp, 8
push 0
push 2
push 0
push str.C:WCH.CNCH341SERCH341SER.INF
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov dword [esp + 0x14], eax
mov al, byte [0x4113f4]
test al, al
je 0x403adc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x10], 0x4113f4
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x2f0]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x188]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
push 0xc8
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2fc]
lea edx, [esp + 0x2fc]
push ecx
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallA]
push str.C:WCH.CNCH341SERCH341SER.INF
lea ecx, [esp + 0xc4]
push 0xc8
lea edx, [esp + 0x2f8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor ebp, ebp
lea esi, [esp + 0xc0]
push str.CopyFiles
push esi
call fcn.00404250
add esp, 8
test eax, eax
je 0x4036bd
push 0x40c084
push eax
call fcn.00404250
add esp, 8
test eax, eax
je 0x4036bd
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
ja 0x4036df
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ecx + ebp + 1]
mov al, byte [esp + ebp + 0xc0]
lea esi, [esp + ebp + 0xc0]
test al, al
jne 0x403688
mov cl, byte [esp + ebp + 0xc0]
lea eax, [esp + ebp + 0xc0]
test cl, cl
je 0x403adc
push 0x3d
push eax
call fcn.004040c0
mov edi, eax
add esp, 8
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
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]
lea ecx, [esp + 0x28]
push ecx
call ebx
test eax, eax
jle 0x403aa6
lea edx, [esp + 0x28]
push 0x2c
push edx
call fcn.004040c0
add esp, 8
mov ebp, eax
push ebp
call ebx
cmp eax, 1
jge 0x40377f
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x188]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x412e64
jmp 0x4037a7
mov ecx, ebp
lea edx, [esp + 0x28]
sub ecx, edx
lea esi, [esp + 0x28]
mov eax, ecx
lea edi, [esp + 0x188]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 1]
or ecx, 0xffffffff
xor eax, eax
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]
lea ecx, [esp + 0xc0]
push ecx
call ebx
mov ecx, eax
xor eax, eax
mov edx, ecx
lea edi, [esp + 0xc0]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push str.C:WCH.CNCH341SERCH341SER.INF
and ecx, 3
push 0xc8
rep stosb byte es:[edi], al
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x190]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea edx, [esp + 0xc0]
lea esi, [esp + 0xc0]
push edx
call ebx
mov ebp, eax
lea eax, [esp + 0xc0]
push eax
call ebx
test eax, eax
jle 0x403a97
cmp byte [esi], 0x3b
je 0x403a97
push 0x2c
push esi
call fcn.004040c0
mov edx, eax
add esp, 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3b8]
test edx, edx
rep stosd dword es:[edi], eax
je 0x403865
mov ecx, edx
lea edi, [esp + 0x3b8]
sub ecx, esi
mov edx, ecx
jmp 0x40388c
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3b8]
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
push str.C:WCH.CNCH341SERCH341SER.INF
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x1f0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x90]
push 0x104
push eax
lea ecx, [esp + 0x194]
push 0
push ecx
push str.DestinationDirs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x8c]
push edx
call fcn.00401dd0
mov ax, word [eax]
lea ecx, [esp + 0x20]
push 0x40c070
push ecx
mov word [esp + 0x28], ax
call fcn.00403d00
add esp, 0xc
test eax, eax
jne 0x40395f
lea edx, [esp + 0x1ec]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x40b068
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
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 + 0x90]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004040c0
add esp, 8
mov esi, eax
push esi
call ebx
test eax, eax
jle 0x403a3f
jmp 0x4039d8
lea eax, [esp + 0x1c]
push 0x40c06c
push eax
call fcn.00403d00
add esp, 8
test eax, eax
jne 0x403a72
lea ecx, [esp + 0x1ec]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x40b068
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
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 + 0x90]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004040c0
add esp, 8
mov esi, eax
push esi
call ebx
test eax, eax
jle 0x403a3f
inc esi
push 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 + 0x1ec]
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 edx, [esp + 0x1ec]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b068
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]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3b8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1ec]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + ebp + 0xc1]
push esi
call ebx
push esi
add ebp, eax
call ebx
test eax, eax
jg 0x40382c
lea ecx, [esp + 0x28]
push ecx
call ebx
test eax, eax
jg 0x403733
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + eax + 1]
mov cl, byte [eax + 0x4113f4]
mov dword [esp + 0x18], eax
lea eax, [eax + 0x4113f4]
test cl, cl
mov dword [esp + 0x10], eax
jne 0x4035fa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret