Function at 0x1000688c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
call fcn.1000af3d
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10006c2b
mov ecx, dword [ebp + 0xc]
call fcn.1000af3d
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x10006c2b
mov ecx, dword [ebp + 0xc]
mov ebx, 0x104
push ebx
call fcn.1000af3d
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x104]
push eax
call fcn.1000de5c
add esp, 0x10
test eax, eax
je 0x1000690f
and byte [eax], 0
lea eax, [ebp - 0x104]
push eax
call fcn.1000d3ff
test eax, eax
pop ecx
jne 0x10006c2b
mov ecx, dword [ebp + 8]
call fcn.1000af3d
push eax
call fcn.1000d3cb
test eax, eax
pop ecx
je 0x10006932
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1000e16c
jmp 0x10006947
mov ecx, dword [ebp + 0xc]
call fcn.1000af3d
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov esi, 0x105
pop ecx
lea eax, [ebp - 0x41c]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x314]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x24
call fcn.1000af3d
push eax
call fcn.1000de5c
pop ecx
inc eax
push eax
push 0x10013cac
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebp - 0x20c]
push 0x3f
push eax
call esi
add esp, 0x18
test eax, eax
je 0x100069bd
and byte [eax], 0
lea eax, [ebp - 0x20c]
push 0x23
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x100069d1
and byte [eax], 0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.1000af3d
push eax
call fcn.1000d396
test eax, eax
pop ecx
jne 0x10006a6e
mov ecx, esi
call fcn.1000af3d
push eax
call fcn.1000d2d7
test eax, eax
pop ecx
jne 0x10006a6e
mov ecx, esi
call fcn.1000af3d
push eax
call fcn.1000d3cb
test eax, eax
pop ecx
je 0x10006bd9
mov ecx, esi
call fcn.1000af3d
add eax, 7
push eax
call fcn.1000ded0
mov esi, eax
pop ecx
mov ecx, dword [ebp + 8]
test esi, esi
jne 0x10006a3d
call fcn.1000af3d
add eax, 7
push eax
call sub.MSVCRT.dll_strlen
pop ecx
jmp 0x10006a49
call fcn.1000af3d
sub esi, eax
sub esi, 7
mov eax, esi
cmp eax, ebx
jle 0x10006a4f
mov eax, ebx
mov ecx, dword [ebp + 8]
push eax
call fcn.1000af3d
add eax, 7
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x10006a8c
mov ecx, esi
call fcn.1000af3d
push eax
push 0x10013cac
lea eax, [ebp - 0x314]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x20c]
push 0x64
push eax
lea eax, [edi + 0x115]
push eax
call esi
lea eax, [ebp - 0x314]
push 0x64
push eax
lea eax, [edi + 0x179]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and dword [edi + 0x2ac], 0
mov ebx, 0x80
lea eax, [ebp - 0x104]
push ebx
push eax
call esi
mov ecx, dword [ebp + 8]
call fcn.1000af3d
push eax
call fcn.1000d396
test eax, eax
pop ecx
jne 0x10006be0
mov ecx, dword [ebp + 8]
call fcn.1000af3d
push eax
call fcn.1000d2d7
test eax, eax
pop ecx
jne 0x10006be0
mov ecx, dword [ebp + 8]
call fcn.1000af3d
push eax
call fcn.1000d3cb
test eax, eax
pop ecx
je 0x10006bd9
mov ecx, edi
call fcn.1000a486
mov ecx, edi
mov dword [eax + 0x20], fcn.10001686
mov dword [eax + 0x2c], edi
call fcn.1000a486
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x24], 0x1000a4c7
mov dword [eax + 0x28], edi
call fcn.1000af41
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000af41
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.1000af3d
push eax
mov ecx, edi
call fcn.1000a486
mov ecx, eax
call fcn.10001a8a
cmp eax, 2
je 0x10006b76
test eax, eax
jne 0x10006c30
mov ecx, dword [ebp + 0xc]
push 1
call fcn.1000af3d
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, edi
call fcn.10006818
mov ecx, edi
call fcn.1000a486
cmp dword [eax + 0x14], 0xc350
jbe 0x10006c27
mov ecx, edi
call fcn.1000a486
cmp dword [eax + 0x10], 0
jle 0x10006c27
lea esi, [edi + 0x34]
push 1
push str.HKEY_LOCAL_MACHINESOFTWAREBrilliant_Digital_EntertainmentBDEInstaller
mov ecx, esi
call fcn.1000e845
mov ecx, edi
call fcn.1000a486
push dword [eax + 0x10]
mov ecx, esi
push str.DownloadRate
call fcn.1000e97b
jmp 0x10006c27
mov eax, 0xfffffc09
jmp 0x10006c30
mov ecx, dword [ebp + 8]
call fcn.1000af3d
push eax
call fcn.1000dc27
cmp eax, 1
pop ecx
jne 0x10006bd9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1000af3d
push eax
mov ecx, edi
call fcn.10006818
test eax, eax
je 0x10006c1d
call fcn.10001686
mov eax, 0xfffffc08
jmp 0x10006c30
lea eax, [ebp - 0x104]
push ebx
push eax
call esi
xor eax, eax
jmp 0x10006c30
mov eax, 0xfffffc18
pop edi
pop esi
pop ebx
leave
ret 0x14