Function at 0x10017cc0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040eec
mov eax, dword fs:[0]
push eax
sub esp, 0x6b0
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x6b8], esi
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
mov dword [ebp - 4], 5
mov dword [ebp - 0x6a0], ebx
call fcn.1002b6b0
push 0x208
lea ecx, [ebp - 0x420]
push ebx
push ecx
call fcn.1002b6b0
push 0x208
lea edx, [ebp - 0x218]
push ebx
push edx
call fcn.1002b6b0
add esp, 0x24
cmp dword [ebp + 8], ebx
je 0x100183f3
cmp esi, ebx
je 0x100183f3
mov eax, dword [ebp + 0x88]
push eax
call fcn.10014360
add esp, 4
push esi
lea ecx, [ebp - 0x628]
push ecx
mov dword [ebp - 0x6b0], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x6a8], ecx
mov ecx, dword [ebp + 0x4c]
mov dword [ebp - 0x69c], ecx
mov ecx, dword [ebp + 0x5c]
mov dword [ebp - 0x6a4], ecx
mov ecx, dword [ebp + 0x30]
mov edx, eax
mov dword [ebp - 0x6ac], edx
lea esi, [ebx + 7]
cmp eax, ecx
je 0x1001830e
cmp dword [ebp - 0x6a0], ebx
jne 0x1001830b
push 0xffffffffffffffff
push ebx
xor eax, eax
push edx
lea ecx, [ebp - 0x698]
mov dword [ebp - 0x684], esi
mov dword [ebp - 0x688], ebx
mov word [ebp - 0x698], ax
call fcn.10001600
mov edx, dword [ebp - 0x6a8]
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x660], cx
push edx
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 6
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x650], ebx
call fcn.10001600
mov eax, dword [ebp - 0x69c]
mov ecx, dword [ebp - 0x6a4]
mov edi, dword [eax]
mov edx, dword [ecx]
xor eax, eax
mov dword [ebp - 0x6bc], edx
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x634], ebx
mov word [ebp - 0x644], ax
mov byte [ebp - 4], 8
mov dword [ebp - 0x6b4], ebx
cmp edi, 0xffffffff
jne 0x10017eae
xor ecx, ecx
mov edi, 8
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x634], ebx
mov word [ebp - 0x644], cx
cmp dword [ebp - 0x64c], edi
jb 0x10017e7d
mov edx, dword [ebp - 0x660]
push edx
call fcn.1002a9de
add esp, 4
xor eax, eax
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x650], ebx
mov word [ebp - 0x660], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x684], edi
jb 0x100182d6
mov ecx, dword [ebp - 0x698]
push ecx
jmp 0x100182ce
mov esi, 8
cmp dword [ebp - 0x650], ebx
jne 0x10017f1d
mov eax, dword [ebp - 0x698]
cmp dword [ebp - 0x684], esi
jae 0x10017ecf
lea eax, [ebp - 0x698]
push eax
lea edx, [ebp - 0x628]
push edx
push str._s_s
push 0x104
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.1002b989
mov edx, dword [ebp - 0x698]
add esp, 0x18
cmp dword [ebp - 0x684], esi
jae 0x10017f09
lea edx, [ebp - 0x698]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10017f10
jmp 0x10017f7b
mov eax, dword [ebp - 0x660]
cmp dword [ebp - 0x64c], esi
jae 0x10017f31
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x628]
push ecx
push str._s_s
push 0x104
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.1002b989
mov edx, dword [ebp - 0x660]
add esp, 0x18
cmp dword [ebp - 0x64c], esi
jae 0x10017f6b
lea edx, [ebp - 0x660]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10017f70
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x644]
call fcn.10001820
xor eax, eax
mov dword [ebp - 0x668], 7
mov dword [ebp - 0x66c], ebx
mov word [ebp - 0x67c], ax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x6b0], ebx
jne 0x10017ff2
mov ecx, dword [ebp - 0x69c]
cmp ecx, dword [ebp + 0x50]
je 0x10017fdf
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x10017fc8
lea eax, [ebp + 0x10]
lea edx, [ebp - 0x67c]
push edx
push eax
push edi
call fcn.1001f580
mov ecx, eax
call fcn.1001f420
jmp 0x1001800e
push ebx
push 0x10043394
lea ecx, [ebp - 0x67c]
call fcn.10001820
jmp 0x1001800e
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x10017ffe
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x67c]
push ecx
push eax
call fcn.10004870
add esp, 8
cmp dword [ebp - 0x668], 8
mov eax, dword [ebp - 0x67c]
jae 0x10018023
lea eax, [ebp - 0x67c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea edx, [ebp - 0x218]
push edx
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
call esi
cmp dword [ebp - 0x630], 8
mov eax, dword [ebp - 0x644]
jae 0x10018057
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_s
push 0x104
mov edx, ecx
push 0x104
push edx
call fcn.1002b989
add esp, 0x18
call fcn.100284d0
mov eax, dword [eax + 0x120]
shr eax, 7
test al, 1
je 0x10018164
mov ecx, dword [ebp - 0x660]
mov eax, 8
cmp dword [ebp - 0x64c], eax
jae 0x100180a8
lea ecx, [ebp - 0x660]
cmp dword [ebp + 0x80], eax
mov eax, dword [ebp + 0x6c]
jae 0x100180b6
lea eax, [ebp + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10018164
cmp dword [ebp - 0x6b0], ebx
jne 0x10018164
push ebx
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.100284d0
add eax, 0x144
cmp dword [eax + 0x14], 8
jb 0x100180f9
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x67c]
call fcn.10001990
cmp dword [ebp - 0x668], 8
mov eax, dword [ebp - 0x67c]
jae 0x1001811a
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x218]
push ecx
call esi
cmp dword [ebp - 0x630], 8
mov eax, dword [ebp - 0x644]
jae 0x10018142
lea eax, [ebp - 0x644]
push eax
lea edx, [ebp - 0x218]
push edx
push str._s_s
push 0x104
mov eax, edx
push 0x104
push eax
call fcn.1002b989
add esp, 0x18
cmp dword [ebp - 0x6bc], ebx
je 0x100181fd
cmp dword [ebp - 0x630], 8
mov eax, dword [ebp - 0x644]
jae 0x10018185
lea eax, [ebp - 0x644]
mov edi, dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6b4]
push ecx
push ebx
push ebx
push 0x280
lea edx, [ebp - 0x218]
push edx
push edi
push eax
push ebx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileExW]
test eax, eax
jne 0x100181cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6a0], eax
cmp eax, ebx
je 0x100181cc
push eax
push str.SetupInstallFileEx_Error:_d
call fcn.100276e0
add esp, 8
mov eax, dword [ebp - 0x644]
mov esi, 8
cmp dword [ebp - 0x630], esi
jae 0x100181e5
lea eax, [ebp - 0x644]
lea ecx, [ebp - 0x218]
push ecx
push edi
push eax
push str.::SetupInstallFileEx___s___s___s___
call fcn.100276e0
add esp, 0x10
jmp 0x10018232
push ebx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
push str.::CopyFile___s___s__FALSE___
call fcn.100276e0
add esp, 0xc
mov esi, 8
cmp dword [ebp - 0x668], esi
jb 0x10018249
mov eax, dword [ebp - 0x67c]
push eax
call fcn.1002a9de
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x668], edi
mov dword [ebp - 0x66c], ebx
mov word [ebp - 0x67c], cx
cmp dword [ebp - 0x630], esi
jb 0x1001827a
mov edx, dword [ebp - 0x644]
push edx
call fcn.1002a9de
add esp, 4
xor eax, eax
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x634], ebx
mov word [ebp - 0x644], ax
cmp dword [ebp - 0x64c], esi
jb 0x100182a6
mov ecx, dword [ebp - 0x660]
push ecx
call fcn.1002a9de
add esp, 4
xor edx, edx
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x650], ebx
mov word [ebp - 0x660], dx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x684], esi
jb 0x100182d6
mov eax, dword [ebp - 0x698]
push eax
call fcn.1002a9de
add esp, 4
mov edx, dword [ebp - 0x6ac]
mov ecx, dword [ebp + 0x30]
add dword [ebp - 0x6a8], 0x1c
mov eax, 4
add dword [ebp - 0x69c], eax
add dword [ebp - 0x6a4], eax
add edx, 0x1c
mov dword [ebp - 0x6ac], edx
lea esi, [eax + 3]
cmp edx, ecx
jne 0x10017db4
mov eax, dword [ebp + 0x2c]
cmp dword [ebp + 0x24], 8
jb 0x10018326
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.1002a9de
mov ecx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
add esp, 4
xor edx, edx
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x20], ebx
mov word [ebp + 0x10], dx
cmp eax, ebx
je 0x10018360
mov edi, ecx
mov esi, eax
cmp eax, ecx
je 0x10018357
mov edi, edi
lea eax, [ebp + 0x38]
push esi
push eax
call fcn.10002b10
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x10018340
mov eax, dword [ebp + 0x2c]
push eax
call fcn.1002a9de
add esp, 4
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
cmp dword [ebp + 0x3c], ebx
je 0x10018398
mov edi, dword [ebp + 0x40]
mov esi, dword [ebp + 0x3c]
cmp esi, edi
je 0x1001838c
lea ecx, [ebp + 0x48]
push esi
push ecx
call fcn.10002b10
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x10018378
mov edx, dword [ebp + 0x3c]
push edx
call fcn.1002a9de
add esp, 4
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
cmp eax, ebx
je 0x100183b1
push eax
call fcn.1002a9de
add esp, 4
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
cmp eax, ebx
je 0x100183ca
push eax
call fcn.1002a9de
add esp, 4
cmp dword [ebp + 0x80], 8
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
jb 0x100183e8
mov eax, dword [ebp + 0x6c]
push eax
call fcn.1002a9de
add esp, 4
mov eax, dword [ebp - 0x6a0]
jmp 0x100184d5
cmp dword [ebp + 0x24], 8
jb 0x10018405
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.1002a9de
add esp, 4
mov esi, dword [ebp + 0x2c]
xor edx, edx
mov dword [ebp + 0x24], 7
mov dword [ebp + 0x20], ebx
mov word [ebp + 0x10], dx
cmp esi, ebx
je 0x10018443
mov edi, dword [ebp + 0x30]
cmp esi, edi
je 0x1001843a
lea eax, [ebp + 0x38]
push esi
push eax
call fcn.10002b10
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x10018423
mov esi, dword [ebp + 0x2c]
push esi
call fcn.1002a9de
add esp, 4
mov esi, dword [ebp + 0x3c]
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
cmp esi, ebx
je 0x10018480
mov edi, dword [ebp + 0x40]
cmp esi, edi
je 0x10018477
lea ebx, [ebx]
lea ecx, [ebp + 0x48]
push esi
push ecx
call fcn.10002b10
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x10018460
mov esi, dword [ebp + 0x3c]
push esi
call fcn.1002a9de
add esp, 4
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
cmp eax, ebx
je 0x10018499
push eax
call fcn.1002a9de
add esp, 4
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
cmp eax, ebx
je 0x100184b2
push eax
call fcn.1002a9de
add esp, 4
cmp dword [ebp + 0x80], 8
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
jb 0x100184d0
mov edx, dword [ebp + 0x6c]
push edx
call fcn.1002a9de
add esp, 4
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret