Function at 0x10001030
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x7a0], eax
mov esi, edx
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x794], eax
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5a]
push eax
mov dword [ebp - 0x790], esi
mov dword [ebp - 0x79c], ecx
mov dword [ebp - 0x798], 0
call fcn.10008fa0
add esp, 0xc
xor edi, edi
test esi, esi
je 0x100010a1
push 0x20
push esi
call fcn.100044b3
xor ecx, ecx
add esp, 8
cmp ecx, eax
sbb edi, edi
neg edi
push dword [ebp - 0x79c]
lea eax, [ebp - 0x46c]
push 0x104
push eax
call fcn.10004ae2
add esp, 0xc
test eax, eax
je 0x100010d5
mov eax, 0x94007f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100044a4
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x7a0]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x46c]
push eax
call esi
test eax, eax
jne 0x10001104
mov eax, 0x15007f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100044a4
mov esp, ebp
pop ebp
ret
push 0x10017568
lea eax, [ebp - 0x46c]
push eax
call esi
test eax, eax
je 0x100010ee
push dword [ebp - 0x794]
lea eax, [ebp - 0x264]
push 0x104
push eax
call fcn.10004ae2
add esp, 0xc
test eax, eax
jne 0x100010bf
push 0x10017568
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x100010bf
push 0
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100010bf
test edi, edi
je 0x100011b8
test ebx, ebx
je 0x1000118d
cmp word [ebx], 0
je 0x1000118d
mov edx, dword [ebp - 0x790]
lea ecx, [ebp - 0x264]
push ebx
call fcn.100027a0
add esp, 4
jmp 0x1000119e
mov edx, dword [ebp - 0x790]
lea ecx, [ebp - 0x264]
call fcn.100026a0
test eax, eax
jne 0x100011b8
mov eax, 0x98007f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100044a4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x78c]
mov dword [ebp - 0x78c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x798]
push eax
push 2
push 0
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100012c2
push edi
push dword [ebp - 0x784]
lea edx, [ebp - 0x5c]
push dword [ebp - 0x788]
push ecx
mov ecx, esi
call fcn.10001d10
add esp, 0x10
test eax, eax
jne 0x100012c7
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x674]
push 0x104
push eax
call fcn.10004ae2
add esp, 0xc
test eax, eax
je 0x1000124a
mov eax, 0xa1007f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100044a4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x10001234
lea eax, [ebp - 0x7b0]
push eax
push 0
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x100012a4
push 0
push 0
push 0
push 0x100020b0
push 4
lea eax, [ebp - 0x674]
push eax
push 0x80000002
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupInstallFromInfSectionW]
test eax, eax
je 0x10001234
mov ecx, dword [ebp - 0x794]
call fcn.10002560
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100044a4
mov esp, ebp
pop ebp
ret
mov eax, 0x9e007f
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100044a4
mov esp, ebp
pop ebp
ret