Function at 0x40ccb0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472cc1
mov eax, dword fs:[0]
push eax
mov eax, 0x1374
call fcn.0046c880
mov eax, dword [0x490bcc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0xe48], ax
push 0x206
push 0
lea ecx, [ebp - 0xe46]
push ecx
call fcn.004543e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x1050], dx
push 0x206
push 0
lea eax, [ebp - 0x104e]
push eax
call fcn.004543e0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x1258], cx
push 0x206
push 0
lea edx, [ebp - 0x1256]
push edx
call fcn.004543e0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.004543e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x830], dx
push 0x206
push 0
lea eax, [ebp - 0x82e]
push eax
call fcn.004543e0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x628], cx
push 0x206
push 0
lea edx, [ebp - 0x626]
push edx
call fcn.004543e0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa38], ax
push 0x206
push 0
lea ecx, [ebp - 0xa36]
push ecx
call fcn.004543e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0xc40], dx
push 0x206
push 0
lea eax, [ebp - 0xc3e]
push eax
call fcn.004543e0
add esp, 0xc
push 1
lea ecx, [ebp - 0x1260]
call fcn.004031c0
lea ecx, [ebp - 0x1260]
call fcn.0040fb90
mov dword [ebp - 4], 0
call fcn.00408ba0
mov dword [ebp - 0x126c], eax
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x1050]
push ecx
push 0x208
lea edx, [ebp - 0xe48]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00453011
add esp, 0x24
lea ecx, [ebp - 0xe48]
push ecx
push 0x208
lea edx, [ebp - 0x420]
push edx
call fcn.0040a6c0
lea eax, [ebp - 0x1050]
push eax
push 0x208
lea ecx, [ebp - 0x420]
push ecx
call fcn.0040a710
push 0x4950b0
lea edx, [ebp - 0x420]
push edx
push 0x47e9a8
push 0x208
lea eax, [ebp - 0x830]
push eax
call fcn.0040a780
add esp, 0x14
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004543e0
add esp, 0xc
push 0
push 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 4
push 1
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x40d082
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1298], eax
cmp dword [ebp - 0x1298], 0x50
jne 0x40cf00
push str._INSTALL_:_This_driver_is_exit_r_n
push 1
mov eax, dword [0x49512c]
push eax
call fcn.004091d0
add esp, 0xc
jmp 0x40d082
mov ecx, dword [ebp - 0x1298]
push ecx
push str._INSTALL_:_Set_up_driver_fail__ErrorCode___d__r_n
push 1
mov edx, dword [0x49512c]
push edx
call fcn.004091d0
add esp, 0x10
lea eax, [ebp - 0x830]
mov dword [ebp - 0x1264], eax
cmp dword [ebp - 0x1264], 0
jne 0x40cf41
mov dword [ebp - 0x12dc], 0
jmp 0x40d000
mov ecx, dword [ebp - 0x1264]
mov dword [ebp - 0x1284], ecx
mov edx, dword [ebp - 0x1284]
add edx, 2
mov dword [ebp - 0x1300], edx
mov eax, dword [ebp - 0x1284]
mov cx, word [eax]
mov word [ebp - 0x128e], cx
add dword [ebp - 0x1284], 2
cmp word [ebp - 0x128e], 0
jne 0x40cf5c
mov edx, dword [ebp - 0x1284]
sub edx, dword [ebp - 0x1300]
sar edx, 1
mov dword [ebp - 0x12e4], edx
mov eax, dword [ebp - 0x12e4]
add eax, 1
mov dword [ebp - 0x1268], eax
cmp dword [ebp - 0x1268], 0x3fffffff
jle 0x40cfb8
mov dword [ebp - 0x12c4], 0
jmp 0x40cff4
mov eax, dword [ebp - 0x1268]
shl eax, 1
call fcn.00464c50
mov dword [ebp - 0x1318], esp
mov ecx, dword [ebp - 0x126c]
push ecx
mov edx, dword [ebp - 0x1268]
shl edx, 1
push edx
mov eax, dword [ebp - 0x1264]
push eax
mov ecx, dword [ebp - 0x1318]
push ecx
call fcn.0040f7d0
mov dword [ebp - 0x12c4], eax
mov edx, dword [ebp - 0x12c4]
mov dword [ebp - 0x12dc], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1368]
push eax
call fcn.0040ac80
add esp, 8
mov dword [ebp - 0x1320], eax
mov ecx, dword [ebp - 0x1320]
mov dword [ebp - 0x1328], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1328]
call fcn.00403690
push eax
mov edx, dword [ebp - 0x1298]
push edx
mov eax, dword [ebp - 0x12dc]
push eax
push str._INSTALL_:Copy__s_Failed__d____s__n
push 1
mov ecx, dword [0x49512c]
push ecx
call fcn.004091d0
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1368]
call fcn.004033e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1260]
call fcn.0040fbc0
jmp 0x40d8d5
lea edx, [ebp - 0x218]
mov dword [ebp - 0x1264], edx
cmp dword [ebp - 0x1264], 0
jne 0x40d0a6
mov dword [ebp - 0x12b0], 0
jmp 0x40d165
mov eax, dword [ebp - 0x1264]
mov dword [ebp - 0x128c], eax
mov ecx, dword [ebp - 0x128c]
add ecx, 2
mov dword [ebp - 0x1330], ecx
mov edx, dword [ebp - 0x128c]
mov ax, word [edx]
mov word [ebp - 0x129e], ax
add dword [ebp - 0x128c], 2
cmp word [ebp - 0x129e], 0
jne 0x40d0c1
mov ecx, dword [ebp - 0x128c]
sub ecx, dword [ebp - 0x1330]
sar ecx, 1
mov dword [ebp - 0x1338], ecx
mov edx, dword [ebp - 0x1338]
add edx, 1
mov dword [ebp - 0x1268], edx
cmp dword [ebp - 0x1268], 0x3fffffff
jle 0x40d11d
mov dword [ebp - 0x12a4], 0
jmp 0x40d159
mov eax, dword [ebp - 0x1268]
shl eax, 1
call fcn.00464c50
mov dword [ebp - 0x1340], esp
mov eax, dword [ebp - 0x126c]
push eax
mov ecx, dword [ebp - 0x1268]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x1264]
push edx
mov eax, dword [ebp - 0x1340]
push eax
call fcn.0040f7d0
mov dword [ebp - 0x12a4], eax
mov ecx, dword [ebp - 0x12a4]
mov dword [ebp - 0x12b0], ecx
lea edx, [ebp - 0x830]
mov dword [ebp - 0x1264], edx
cmp dword [ebp - 0x1264], 0
jne 0x40d189
mov dword [ebp - 0x12b8], 0
jmp 0x40d248
mov eax, dword [ebp - 0x1264]
mov dword [ebp - 0x1278], eax
mov ecx, dword [ebp - 0x1278]
add ecx, 2
mov dword [ebp - 0x1348], ecx
mov edx, dword [ebp - 0x1278]
mov ax, word [edx]
mov word [ebp - 0x1290], ax
add dword [ebp - 0x1278], 2
cmp word [ebp - 0x1290], 0
jne 0x40d1a4
mov ecx, dword [ebp - 0x1278]
sub ecx, dword [ebp - 0x1348]
sar ecx, 1
mov dword [ebp - 0x1350], ecx
mov edx, dword [ebp - 0x1350]
add edx, 1
mov dword [ebp - 0x1268], edx
cmp dword [ebp - 0x1268], 0x3fffffff
jle 0x40d200
mov dword [ebp - 0x12a8], 0
jmp 0x40d23c
mov eax, dword [ebp - 0x1268]
shl eax, 1
call fcn.00464c50
mov dword [ebp - 0x130c], esp
mov eax, dword [ebp - 0x126c]
push eax
mov ecx, dword [ebp - 0x1268]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x1264]
push edx
mov eax, dword [ebp - 0x130c]
push eax
call fcn.0040f7d0
mov dword [ebp - 0x12a8], eax
mov ecx, dword [ebp - 0x12a8]
mov dword [ebp - 0x12b8], ecx
mov edx, dword [ebp - 0x12b0]
push edx
mov eax, dword [ebp - 0x12b8]
push eax
push 0x47ea3c
push 1
mov ecx, dword [0x49512c]
push ecx
call fcn.004091d0
add esp, 0x14
push 0
push closesocket
lea edx, [ebp - 0x218]
push edx
push 0x47ea60
push 0x47ea70
call fcn.0040ab90
add esp, 0x14
movzx eax, byte [0x49504c]
test eax, eax
jne 0x40d667
push 0x4950b0
lea ecx, [ebp - 0x420]
push ecx
push str._ws_ws_m.inf
push 0x208
lea edx, [ebp - 0x628]
push edx
call fcn.0040a780
add esp, 0x14
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004543e0
add esp, 0xc
push 0
push 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
push 1
push 0
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x40d45e
lea eax, [ebp - 0x628]
mov dword [ebp - 0x1264], eax
cmp dword [ebp - 0x1264], 0
jne 0x40d325
mov dword [ebp - 0x12c8], 0
jmp 0x40d3e4
mov ecx, dword [ebp - 0x1264]
mov dword [ebp - 0x1270], ecx
mov edx, dword [ebp - 0x1270]
add edx, 2
mov dword [ebp - 0x12ec], edx
mov eax, dword [ebp - 0x1270]
mov cx, word [eax]
mov word [ebp - 0x1292], cx
add dword [ebp - 0x1270], 2
cmp word [ebp - 0x1292], 0
jne 0x40d340
mov edx, dword [ebp - 0x1270]
sub edx, dword [ebp - 0x12ec]
sar edx, 1
mov dword [ebp - 0x1324], edx
mov eax, dword [ebp - 0x1324]
add eax, 1
mov dword [ebp - 0x1268], eax
cmp dword [ebp - 0x1268], 0x3fffffff
jle 0x40d39c
mov dword [ebp - 0x12c0], 0
jmp 0x40d3d8
mov eax, dword [ebp - 0x1268]
shl eax, 1
call fcn.00464c50
mov dword [ebp - 0x12f4], esp
mov ecx, dword [ebp - 0x126c]
push ecx
mov edx, dword [ebp - 0x1268]
shl edx, 1
push edx
mov eax, dword [ebp - 0x1264]
push eax
mov ecx, dword [ebp - 0x12f4]
push ecx
call fcn.0040f7d0
mov dword [ebp - 0x12c0], eax
mov edx, dword [ebp - 0x12c0]
mov dword [ebp - 0x12c8], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1380]
push eax
call fcn.0040ac80
add esp, 8
mov dword [ebp - 0x133c], eax
mov ecx, dword [ebp - 0x133c]
mov dword [ebp - 0x12fc], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x12fc]
call fcn.00403690
push eax
mov edx, dword [ebp - 0x12c8]
push edx
push str._INSTALL_:Copy__s_Failed__s_n
push 1
mov eax, dword [0x49512c]
push eax
call fcn.004091d0
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1380]
call fcn.004033e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1260]
call fcn.0040fbc0
jmp 0x40d8d5
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x1264], ecx
cmp dword [ebp - 0x1264], 0
jne 0x40d482
mov dword [ebp - 0x12e0], 0
jmp 0x40d541
mov edx, dword [ebp - 0x1264]
mov dword [ebp - 0x1288], edx
mov eax, dword [ebp - 0x1288]
add eax, 2
mov dword [ebp - 0x132c], eax
mov ecx, dword [ebp - 0x1288]
mov dx, word [ecx]
mov word [ebp - 0x12a0], dx
add dword [ebp - 0x1288], 2
cmp word [ebp - 0x12a0], 0
jne 0x40d49d
mov eax, dword [ebp - 0x1288]
sub eax, dword [ebp - 0x132c]
sar eax, 1
mov dword [ebp - 0x1304], eax
mov ecx, dword [ebp - 0x1304]
add ecx, 1
mov dword [ebp - 0x1268], ecx
cmp dword [ebp - 0x1268], 0x3fffffff
jle 0x40d4f9
mov dword [ebp - 0x12d0], 0
jmp 0x40d535
mov eax, dword [ebp - 0x1268]
shl eax, 1
call fcn.00464c50
mov dword [ebp - 0x1308], esp
mov edx, dword [ebp - 0x126c]
push edx
mov eax, dword [ebp - 0x1268]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x1264]
push ecx
mov edx, dword [ebp - 0x1308]
push edx
call fcn.0040f7d0
mov dword [ebp - 0x12d0], eax
mov eax, dword [ebp - 0x12d0]
mov dword [ebp - 0x12e0], eax
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x1264], ecx
cmp dword [ebp - 0x1264], 0
jne 0x40d565
mov dword [ebp - 0x12ac], 0
jmp 0x40d624
mov edx, dword [ebp - 0x1264]
mov dword [ebp - 0x1280], edx
mov eax, dword [ebp - 0x1280]
add eax, 2
mov dword [ebp - 0x1310], eax
mov ecx, dword [ebp - 0x1280]
mov dx, word [ecx]
mov word [ebp - 0x129c], dx
add dword [ebp - 0x1280], 2
cmp word [ebp - 0x129c], 0
jne 0x40d580
mov eax, dword [ebp - 0x1280]
sub eax, dword [ebp - 0x1310]
sar eax, 1
mov dword [ebp - 0x134c], eax
mov ecx, dword [ebp - 0x134c]
add ecx, 1
mov dword [ebp - 0x1268], ecx
cmp dword [ebp - 0x1268], 0x3fffffff
jle 0x40d5dc
mov dword [ebp - 0x12d8], 0
jmp 0x40d618
mov eax, dword [ebp - 0x1268]
shl eax, 1
call fcn.00464c50
mov dword [ebp - 0x1314], esp
mov edx, dword [ebp - 0x126c]
push edx
mov eax, dword [ebp - 0x1268]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x1264]
push ecx
mov edx, dword [ebp - 0x1314]
push edx
call fcn.0040f7d0
mov dword [ebp - 0x12d8], eax
mov eax, dword [ebp - 0x12d8]
mov dword [ebp - 0x12ac], eax
mov ecx, dword [ebp - 0x12e0]
push ecx
mov edx, dword [ebp - 0x12ac]
push edx
push str._INSTALL_:Copy__s_To___s__Success_n
push 1
mov eax, dword [0x49512c]
push eax
call fcn.004091d0
add esp, 0x14
push 0
push closesocket
lea ecx, [ebp - 0x218]
push ecx
push 0x47eb2c
push 0x47eb40
call fcn.0040ab90
add esp, 0x14
push 0x104
lea edx, [ebp - 0x1258]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4950b0
lea eax, [ebp - 0x1258]
push eax
push str._wsdrivers_ws.sys
push 0x208
lea ecx, [ebp - 0xc40]
push ecx
call fcn.0040a780
add esp, 0x14
push 0x4950b0
lea edx, [ebp - 0x420]
push edx
push str._ws_ws.sys
push 0x208
lea eax, [ebp - 0xa38]
push eax
call fcn.0040a780
add esp, 0x14
push 0
lea ecx, [ebp - 0xc40]
push ecx
lea edx, [ebp - 0xa38]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0xc40]
mov dword [ebp - 0x1264], eax
cmp dword [ebp - 0x1264], 0
jne 0x40d6fd
mov dword [ebp - 0x12cc], 0
jmp 0x40d7bc
mov ecx, dword [ebp - 0x1264]
mov dword [ebp - 0x1274], ecx
mov edx, dword [ebp - 0x1274]
add edx, 2
mov dword [ebp - 0x1334], edx
mov eax, dword [ebp - 0x1274]
mov cx, word [eax]
mov word [ebp - 0x129a], cx
add dword [ebp - 0x1274], 2
cmp word [ebp - 0x129a], 0
jne 0x40d718
mov edx, dword [ebp - 0x1274]
sub edx, dword [ebp - 0x1334]
sar edx, 1
mov dword [ebp - 0x131c], edx
mov eax, dword [ebp - 0x131c]
add eax, 1
mov dword [ebp - 0x1268], eax
cmp dword [ebp - 0x1268], 0x3fffffff
jle 0x40d774
mov dword [ebp - 0x12d4], 0
jmp 0x40d7b0
mov eax, dword [ebp - 0x1268]
shl eax, 1
call fcn.00464c50
mov dword [ebp - 0x1344], esp
mov ecx, dword [ebp - 0x126c]
push ecx
mov edx, dword [ebp - 0x1268]
shl edx, 1
push edx
mov eax, dword [ebp - 0x1264]
push eax
mov ecx, dword [ebp - 0x1344]
push ecx
call fcn.0040f7d0
mov dword [ebp - 0x12d4], eax
mov edx, dword [ebp - 0x12d4]
mov dword [ebp - 0x12cc], edx
lea eax, [ebp - 0xa38]
mov dword [ebp - 0x1264], eax
cmp dword [ebp - 0x1264], 0
jne 0x40d7e0
mov dword [ebp - 0x12bc], 0
jmp 0x40d89f
mov ecx, dword [ebp - 0x1264]
mov dword [ebp - 0x127c], ecx
mov edx, dword [ebp - 0x127c]
add edx, 2
mov dword [ebp - 0x12e8], edx
mov eax, dword [ebp - 0x127c]
mov cx, word [eax]
mov word [ebp - 0x1294], cx
add dword [ebp - 0x127c], 2
cmp word [ebp - 0x1294], 0
jne 0x40d7fb
mov edx, dword [ebp - 0x127c]
sub edx, dword [ebp - 0x12e8]
sar edx, 1
mov dword [ebp - 0x12f0], edx
mov eax, dword [ebp - 0x12f0]
add eax, 1
mov dword [ebp - 0x1268], eax
cmp dword [ebp - 0x1268], 0x3fffffff
jle 0x40d857
mov dword [ebp - 0x12b4], 0
jmp 0x40d893
mov eax, dword [ebp - 0x1268]
shl eax, 1
call fcn.00464c50
mov dword [ebp - 0x12f8], esp
mov ecx, dword [ebp - 0x126c]
push ecx
mov edx, dword [ebp - 0x1268]
shl edx, 1
push edx
mov eax, dword [ebp - 0x1264]
push eax
mov ecx, dword [ebp - 0x12f8]
push ecx
call fcn.0040f7d0
mov dword [ebp - 0x12b4], eax
mov edx, dword [ebp - 0x12b4]
mov dword [ebp - 0x12bc], edx
mov eax, dword [ebp - 0x12cc]
push eax
mov ecx, dword [ebp - 0x12bc]
push ecx
push str._INSTALL_:Copy__s_to__s_Success_n
push 1
mov edx, dword [0x49512c]
push edx
call fcn.004091d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1260]
call fcn.0040fbc0
lea esp, [ebp - 0x1384]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00451fd2
mov esp, ebp
pop ebp
ret