Function at 0x10017330
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a0ba
mov eax, dword fs:[0]
push eax
sub esp, 0x6b0
mov eax, dword [0x1004f450]
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 edi, ecx
mov dword [ebp - 0x6b8], edi
xor esi, esi
push 0x208
lea eax, [ebp - 0x628]
push esi
push eax
mov dword [ebp - 4], 5
mov dword [ebp - 0x6a0], esi
call fcn.1002f900
push 0x208
lea ecx, [ebp - 0x420]
push esi
push ecx
call fcn.1002f900
push 0x208
lea edx, [ebp - 0x218]
push esi
push edx
call fcn.1002f900
add esp, 0x24
cmp dword [ebp + 8], esi
je 0x10017abb
cmp edi, esi
je 0x10017abb
mov ebx, dword [ebp + 0x84]
call fcn.10016fb0
mov dword [ebp - 0x6b0], eax
push edi
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, dword [ebp + 0x48]
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x69c], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x6a8], edx
mov edx, dword [ebp + 0x58]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6a4], edx
cmp eax, ecx
je 0x100179b0
lea ebx, [ebx]
cmp dword [ebp - 0x6a0], esi
jne 0x100179ad
mov ecx, dword [ebp - 0x6ac]
xor eax, eax
push esi
mov word [ebp - 0x698], ax
push ecx
mov edi, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x698]
mov dword [ebp - 0x684], edi
mov dword [ebp - 0x688], esi
call fcn.10001820
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x6a8]
push esi
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x650], esi
mov word [ebp - 0x660], dx
call fcn.10001820
mov ecx, dword [ebp - 0x69c]
mov edx, dword [ebp - 0x6a4]
mov ebx, dword [ecx]
mov eax, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x6bc], eax
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x634], esi
mov word [ebp - 0x644], cx
mov byte [ebp - 4], 8
mov dword [ebp - 0x6b4], esi
cmp ebx, 0xffffffff
jne 0x1001752f
xor edx, edx
mov ebx, 8
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x634], esi
mov word [ebp - 0x644], dx
cmp dword [ebp - 0x64c], ebx
jb 0x100174f6
mov eax, dword [ebp - 0x660]
push eax
call fcn.10029653
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x650], esi
mov word [ebp - 0x660], cx
cmp dword [ebp - 0x684], ebx
jb 0x1001797b
mov edx, dword [ebp - 0x698]
push edx
call fcn.10029653
add esp, 4
jmp 0x1001797b
mov edi, 8
cmp dword [ebp - 0x650], esi
jne 0x1001759d
mov eax, dword [ebp - 0x698]
cmp dword [ebp - 0x684], edi
jae 0x10017550
lea eax, [ebp - 0x698]
push eax
lea eax, [ebp - 0x628]
push eax
push str._s_s
push 0x104
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call fcn.100297b0
mov eax, dword [ebp - 0x698]
add esp, 0x18
cmp dword [ebp - 0x684], edi
jae 0x1001758a
lea eax, [ebp - 0x698]
mov ecx, eax
lea edi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x10017590
jmp 0x100175fb
mov eax, dword [ebp - 0x660]
cmp dword [ebp - 0x64c], edi
jae 0x100175b1
lea eax, [ebp - 0x660]
push eax
lea edx, [ebp - 0x628]
push edx
push str._s_s
push 0x104
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.100297b0
mov eax, dword [ebp - 0x660]
add esp, 0x18
cmp dword [ebp - 0x64c], edi
jae 0x100175eb
lea eax, [ebp - 0x660]
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x100175f0
sub ecx, edi
sar ecx, 1
push ecx
lea esi, [ebp - 0x644]
call fcn.10001a60
xor ecx, ecx
mov dword [ebp - 0x668], 7
mov dword [ebp - 0x66c], 0
mov word [ebp - 0x67c], cx
mov byte [ebp - 4], 9
cmp dword [ebp - 0x6b0], ecx
jne 0x10017681
mov edx, dword [ebp - 0x69c]
cmp edx, dword [ebp + 0x4c]
je 0x1001766d
mov esi, dword [ebp + 0xc]
mov edi, 8
cmp dword [ebp + 0x20], edi
jae 0x1001764f
lea esi, [ebp + 0xc]
call fcn.1001dd40
mov eax, dword [eax]
mov edx, dword [eax*4 + 0x10042730]
lea ecx, [ebp - 0x67c]
push ecx
push esi
push ebx
call edx
add esp, 0xc
jmp 0x1001769d
push 0
mov eax, 0x1003e860
lea esi, [ebp - 0x67c]
call fcn.10001a60
jmp 0x10017698
cmp dword [ebp + 0x20], 8
mov edi, dword [ebp + 0xc]
jae 0x1001768d
lea edi, [ebp + 0xc]
lea ecx, [ebp - 0x67c]
call fcn.10003940
mov edi, 8
mov eax, dword [ebp - 0x67c]
cmp dword [ebp - 0x668], edi
jae 0x100176b1
lea eax, [ebp - 0x67c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
push ecx
call ebx
mov eax, dword [ebp - 0x644]
cmp dword [ebp - 0x630], edi
jae 0x100176e4
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.100297b0
add esp, 0x18
test byte [0x1005223c], 1
jne 0x10017730
or dword [0x1005223c], 1
mov byte [ebp - 4], 0xa
call fcn.100278f0
push 0x1003bab0
call fcn.1002a940
add esp, 4
mov byte [ebp - 4], 9
mov ecx, dword [0x10052170]
shr ecx, 7
test cl, 1
je 0x1001780c
mov ecx, dword [ebp - 0x660]
cmp dword [ebp - 0x64c], edi
jae 0x10017756
lea ecx, [ebp - 0x660]
mov eax, dword [ebp + 0x68]
cmp dword [ebp + 0x7c], edi
jae 0x10017761
lea eax, [ebp + 0x68]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1001780c
cmp dword [ebp - 0x6b0], eax
jne 0x1001780c
push eax
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.10027fe0
add eax, 0x144
cmp dword [eax + 0x14], edi
jb 0x100177a3
mov eax, dword [eax]
lea ecx, [ebp - 0x67c]
push ecx
call fcn.10001720
mov eax, dword [ebp - 0x67c]
cmp dword [ebp - 0x668], edi
jae 0x100177c3
lea eax, [ebp - 0x67c]
push eax
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x218]
push eax
call ebx
mov eax, dword [ebp - 0x644]
cmp dword [ebp - 0x630], edi
jae 0x100177ea
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.100297b0
add esp, 0x18
cmp dword [ebp - 0x6bc], 0
je 0x100178a2
mov eax, dword [ebp - 0x644]
cmp dword [ebp - 0x630], edi
jae 0x1001782d
lea eax, [ebp - 0x644]
mov esi, dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6b4]
push ecx
xor ebx, ebx
push ebx
push ebx
push 0x280
lea edx, [ebp - 0x218]
push edx
push esi
push eax
push ebx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileExW]
test eax, eax
jne 0x10017876
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6a0], eax
cmp eax, ebx
je 0x10017876
push eax
push str.SetupInstallFileEx_Error:_d
call fcn.10026930
add esp, 8
mov eax, dword [ebp - 0x644]
cmp dword [ebp - 0x630], edi
jae 0x1001788a
lea eax, [ebp - 0x644]
lea ecx, [ebp - 0x218]
push ecx
push esi
push eax
push str.::SetupInstallFileEx___s___s___s___
call fcn.10026930
add esp, 0x10
jmp 0x100178d5
push 0
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.10026930
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x668], edi
jb 0x100178ec
mov eax, dword [ebp - 0x67c]
push eax
call fcn.10029653
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x668], esi
mov dword [ebp - 0x66c], ebx
mov word [ebp - 0x67c], cx
cmp dword [ebp - 0x630], edi
jb 0x1001791d
mov edx, dword [ebp - 0x644]
push edx
call fcn.10029653
add esp, 4
xor eax, eax
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x634], ebx
mov word [ebp - 0x644], ax
cmp dword [ebp - 0x64c], edi
jb 0x10017949
mov ecx, dword [ebp - 0x660]
push ecx
call fcn.10029653
add esp, 4
xor edx, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x650], ebx
mov word [ebp - 0x660], dx
cmp dword [ebp - 0x684], edi
jb 0x10017979
mov eax, dword [ebp - 0x698]
push eax
call fcn.10029653
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x6ac]
add dword [ebp - 0x6a8], 0x1c
mov ecx, 4
add dword [ebp - 0x69c], ecx
add dword [ebp - 0x6a4], ecx
mov ecx, dword [ebp + 0x2c]
add eax, 0x1c
mov dword [ebp - 0x6ac], eax
cmp eax, ecx
jne 0x10017420
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0x20], 8
jb 0x100179c8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10029653
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
add esp, 4
xor edx, edx
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], esi
mov word [ebp + 0xc], dx
cmp eax, esi
je 0x10017a17
mov ebx, ecx
mov edi, eax
cmp eax, ecx
je 0x10017a0e
cmp dword [edi + 0x14], 8
jb 0x100179f5
mov eax, dword [edi]
push eax
call fcn.10029653
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], cx
add edi, 0x1c
cmp edi, ebx
jne 0x100179e4
mov eax, dword [ebp + 0x28]
push eax
call fcn.10029653
add esp, 4
mov edi, dword [ebp + 0x38]
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], esi
cmp edi, esi
je 0x10017a63
mov ebx, dword [ebp + 0x3c]
cmp edi, ebx
je 0x10017a57
mov edi, edi
cmp dword [edi + 0x14], 8
jb 0x10017a41
mov edx, dword [edi]
push edx
call fcn.10029653
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
add edi, 0x1c
cmp edi, ebx
jne 0x10017a30
mov ecx, dword [ebp + 0x38]
push ecx
call fcn.10029653
add esp, 4
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], esi
cmp eax, esi
je 0x10017a7c
push eax
call fcn.10029653
add esp, 4
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x50], esi
cmp eax, esi
je 0x10017a95
push eax
call fcn.10029653
add esp, 4
cmp dword [ebp + 0x7c], 8
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x60], esi
jb 0x10017ab0
mov edx, dword [ebp + 0x68]
push edx
call fcn.10029653
add esp, 4
mov eax, dword [ebp - 0x6a0]
jmp 0x10017b71
mov ebx, 8
cmp dword [ebp + 0x20], ebx
jb 0x10017ad1
mov eax, dword [ebp + 0xc]
push eax
call fcn.10029653
add esp, 4
mov eax, dword [ebp + 0x28]
xor ecx, ecx
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], esi
mov word [ebp + 0xc], cx
cmp eax, esi
je 0x10017afc
mov edi, dword [ebp + 0x2c]
call fcn.10003140
mov edx, dword [ebp + 0x28]
push edx
call fcn.10029653
add esp, 4
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], esi
cmp eax, esi
je 0x10017b20
mov edi, dword [ebp + 0x3c]
call fcn.10003140
mov eax, dword [ebp + 0x38]
push eax
call fcn.10029653
add esp, 4
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], esi
cmp eax, esi
je 0x10017b39
push eax
call fcn.10029653
add esp, 4
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x50], esi
cmp eax, esi
je 0x10017b52
push eax
call fcn.10029653
add esp, 4
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x60], esi
cmp dword [ebp + 0x7c], ebx
jb 0x10017b6c
mov ecx, dword [ebp + 0x68]
push ecx
call fcn.10029653
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.10028eba
mov esp, ebp
pop ebp
ret