Function at 0x100013d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100087a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2cc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov word [ebp - 0x7c], ax
mov ebx, 7
push 0x11
mov eax, 0x1000b0e8
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], edi
call fcn.10001e80
mov byte [ebp - 4], 1
xor ecx, ecx
push 0x13
mov eax, str.KeyScramblerIE.DLL
lea esi, [ebp - 0x60]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], edi
mov word [ebp - 0x60], cx
call fcn.10001e80
push 0x206
lea eax, [ebp - 0x2d6]
xor edx, edx
push edi
mov byte [ebp - 4], 2
push eax
mov word [ebp - 0x2d8], dx
call fcn.10006010
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x2d8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea eax, [ebp - 0x2d8]
mov word [ebp - 0x44], dx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10001480
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2d8]
lea esi, [ebp - 0x44]
call fcn.10001e80
lea eax, [ebp - 0x2d8]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor ecx, ecx
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100014c4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2d8]
lea esi, [ebp - 0x28]
call fcn.10001e80
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x98]
push eax
lea ebx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.10002420
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0xb4]
push edx
lea ebx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.10002420
mov eax, esi
push eax
lea ecx, [ebp - 0xd0]
push ecx
mov byte [ebp - 4], 6
call fcn.10002420
add esp, 0x18
mov ebx, 7
mov edi, eax
mov byte [ebp - 4], bl
call fcn.10001b70
mov esi, 8
cmp dword [ebp - 0xbc], esi
jb 0x10001551
mov edx, dword [ebp - 0xd0]
push edx
call fcn.10002c0c
add esp, 4
mov ecx, dword [ebp - 0x98]
cmp dword [ebp - 0x84], esi
jae 0x10001565
lea ecx, [ebp - 0x98]
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x10001570
lea eax, [ebp - 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push ecx
push eax
call edi
mov ecx, dword [ebp - 0xb4]
cmp dword [ebp - 0xa0], esi
jae 0x10001590
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jae 0x1000159b
lea eax, [ebp - 0x28]
push 1
push ecx
push eax
call edi
cmp dword [ebp - 0xa0], esi
jb 0x100015b8
mov eax, dword [ebp - 0xb4]
push eax
call fcn.10002c0c
add esp, 4
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], edi
mov word [ebp - 0xb4], cx
cmp dword [ebp - 0x84], esi
jb 0x100015e6
mov edx, dword [ebp - 0x98]
push edx
call fcn.10002c0c
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], edi
mov word [ebp - 0x98], ax
cmp dword [ebp - 0x14], esi
jb 0x1000160c
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.10002c0c
add esp, 4
xor edx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], dx
cmp dword [ebp - 0x30], esi
jb 0x10001629
mov eax, dword [ebp - 0x44]
push eax
call fcn.10002c0c
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], cx
cmp dword [ebp - 0x4c], esi
jb 0x10001646
mov edx, dword [ebp - 0x60]
push edx
call fcn.10002c0c
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], edi
mov word [ebp - 0x60], ax
cmp dword [ebp - 0x68], esi
jb 0x10001663
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.10002c0c
add esp, 4
mov dword [ebp - 0x6c], edi
xor edx, edx
cmp dword [ebp + 0x1c], esi
pop edi
pop esi
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x7c], dx
pop ebx
jb 0x10001683
mov eax, dword [ebp + 8]
push eax
call fcn.10002c0c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret