Function at 0x402b10
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x240
mov dl, byte [0x412e64]
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x145]
mov byte [esp + 0x144], dl
mov byte [esp + 0x7c], 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 + 0x7d]
mov byte [esp + 0x18], 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 + 0x19]
mov byte [esp + 0xe0], 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 + 0xe1]
mov ebx, 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x144]
mov byte [esp + 0xb], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x24c]
push 0
push 2
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [esp + 0xc], edx
jne 0x402bc1
pop edi
xor eax, eax
pop ebx
add esp, 0x240
ret
mov al, byte [0x4113f4]
push ebp
test al, al
push esi
je 0x402cf9
mov dword [esp + 0x1c], 0x4113f4
jmp 0x402bde
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x64
and ecx, 3
lea eax, [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push eax
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallA]
call dword [sym.imp.SETUPAPI.dll_SetupOpenFileQueue]
mov ebp, eax
test ebp, ebp
je 0x402ce7
cmp ebp, 0xffffffff
je 0x402ce7
mov ecx, dword [0x40ebdc]
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupInitDefaultQueueCallbackEx]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x402cca
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14c]
push 4
lea eax, [esp + 0x24]
push edx
push eax
push ebp
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupInstallFilesFromInfSectionA]
test eax, eax
je 0x402c92
mov edx, dword [0x40ebdc]
push esi
push 0x402fa0
push ebp
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCommitFileQueueA]
test eax, eax
je 0x402ce3
mov ebx, 1
jmp 0x402c94
xor ebx, ebx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
mov al, byte [esp + 0x13]
inc cl
add al, cl
mov byte [esp + 0x13], al
movsx eax, al
mov cl, byte [eax + 0x4113f4]
lea eax, [eax + 0x4113f4]
test cl, cl
mov dword [esp + 0x1c], eax
jne 0x402bda
jmp 0x402cfd
push ebp
xor ebx, ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x402d8d
xor ebx, ebx
jmp 0x402cfd
mov eax, dword [esp + 0x14]
xor ebx, ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x402d89
mov ebp, dword [esp + 0x18]
mov edi, 0x4117dc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push str.C:WCH.CNCH341SERCH341SER.INF
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00404220
mov edi, eax
add esp, 8
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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 + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.C:WCH.CNCH341SERCH341SER.INF
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402d7e
xor ebx, ebx
push 0x40eb74
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupTermDefaultQueueCallback]
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
push ebx
lea edx, [esp + 0xec]
push str.return:_x
push edx
call fcn.004041b0
add esp, 0xc
mov eax, ebx
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x240
ret