Function at 0x1000ce43
Capabilities:
Check if file exists
Copy file
Delete registry key
Get file attributes

Disassembly:
push 0x178
mov eax, 0x10053303
call fcn.10037d5a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 8
mov dword [ebp - 0xe8], eax
jb 0x1000ce66
mov ecx, dword [eax + 0x28]
jmp 0x1000ce69
lea ecx, [eax + 0x28]
lea eax, [ebp - 0x110]
push eax
mov edx, reloc.WS2_32.dll_bind
call fcn.1000bf8f
pop ecx
and dword [ebp - 4], 0
push dword [ebp - 0xf4]
push str.key_count:_d
call fcn.1003048c
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x110]
lea edi, [ebp - 0xf0]
lea esi, [ebp - 0xe4]
mov dword [ebp - 0xf0], eax
call fcn.1000f27c
test al, al
jne 0x1000d2a0
call fcn.1000b132
mov edi, dword [ebp - 0xe8]
push eax
lea ebx, [ebp - 0xc0]
mov ecx, edi
call fcn.1000c3f3
push 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
pop esi
cmp dword [ebp - 0x38], esi
jae 0x1000cf07
lea ecx, [ebp - 0x4c]
cmp dword [edi + 0x3c], esi
jb 0x1000cf11
mov eax, dword [edi + 0x28]
jmp 0x1000cf14
lea eax, [edi + 0x28]
push ecx
push eax
push 0x1005977c
lea ecx, [ebp - 0xdc]
call fcn.1002d7c0
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x8c], esi
jae 0x1000cf41
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000cfbd
mov eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x8c], esi
jae 0x1000cf61
lea eax, [ebp - 0xa0]
push eax
push str.file_not_find__path:_ls
call fcn.1003048c
pop ecx
pop ecx
cmp dword [ebp - 0xc4], 8
mov eax, dword [ebp - 0xd8]
jae 0x1000cf83
lea eax, [ebp - 0xd8]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0
push 1
lea esi, [ebp - 0xdc]
call fcn.100021ef
lea edi, [ebp - 0xc0]
mov byte [ebp - 4], 0
call fcn.1000c5f8
lea esi, [ebp - 0xe4]
call fcn.1000b697
jmp 0x1000ceab
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0xa4]
call fcn.1000d2d8
mov esi, eax
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0xa4]
call fcn.1000d2f8
mov ebx, eax
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0xa4]
call fcn.1000d2d8
push dword [esi + 4]
push dword [esi]
push dword [ebx + 4]
push dword [ebx]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x118]
push eax
call fcn.1000d829
add esp, 0x1c
cmp dword [ebp - 0x58], 0
jne 0x1000d156
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x88]
call fcn.1000c76b
test al, al
jne 0x1000cf6e
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc0]
call fcn.1000cbd4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x8c], 8
mov eax, dword [ebp - 0xa0]
jae 0x1000d05e
lea eax, [ebp - 0xa0]
push eax
mov ebx, str..ico
call fcn.1002d779
test eax, eax
je 0x1000d0e8
cmp dword [ebp - 0x8c], 8
mov eax, dword [ebp - 0xa0]
jae 0x1000d082
lea eax, [ebp - 0xa0]
push 0x10
push 0x20
push 0x20
push 1
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
je 0x1000d0d7
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.1000c93f
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x1000d0b6
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x8c], 8
mov eax, dword [ebp - 0xa0]
jae 0x1000d0cb
lea eax, [ebp - 0xa0]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x1000d0fa
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.100021ef
jmp 0x1000cf6e
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0xa4]
call fcn.1000ccba
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x6c]
call fcn.1000213e
lea edx, [ebp - 0xc0]
mov ecx, edi
call fcn.1000c10a
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x1000d122
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x8c], 8
mov eax, dword [ebp - 0xa0]
jae 0x1000d137
lea eax, [ebp - 0xa0]
push ecx
push eax
push str.src_file:_ls__ico:_ls
call fcn.1003048c
add esp, 0xc
push 0
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.100021ef
mov eax, dword [ebp - 0x68]
push 8
pop edi
cmp dword [ebp - 0x54], edi
jae 0x1000d164
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000d186
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x54], edi
jae 0x1000d17b
lea eax, [ebp - 0x68]
push eax
push str.ico_cache_fine_not_find:_ls
jmp 0x1000cf67
mov ecx, dword [ebp - 0x68]
cmp dword [ebp - 0x54], edi
jae 0x1000d191
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0xa8], edi
jae 0x1000d1a5
lea eax, [ebp - 0xbc]
push ecx
push eax
push str.test_report_ico__type:_ls__ico_path:_ls
call fcn.1003048c
mov eax, dword [ebp - 0x68]
add esp, 0xc
cmp dword [ebp - 0x54], edi
jae 0x1000d1bf
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea esi, [ebp - 0x14c]
call fcn.10001ec7
mov eax, esi
push eax
lea eax, [ebp - 0x184]
push eax
mov byte [ebp - 4], 4
call fcn.1000121f
mov esi, eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x168]
push eax
mov byte [ebp - 4], 5
call fcn.1000121f
add esp, 0x10
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x68]
cmp dword [ebp - 0x54], edi
jae 0x1000d210
lea edx, [ebp - 0x68]
cmp dword [esi + 0x18], 0x10
jb 0x1000d21b
mov esi, dword [esi + 4]
jmp 0x1000d21e
add esi, 4
cmp dword [eax + 0x18], 0x10
jb 0x1000d229
mov ecx, dword [eax + 4]
jmp 0x1000d22c
lea ecx, [eax + 4]
push 0
push edx
mov edx, esi
call fcn.1000855a
pop ecx
pop ecx
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x168]
mov bl, al
call fcn.100020f3
push esi
push 1
lea ecx, [ebp - 0x184]
call fcn.100020f3
push esi
push 1
lea esi, [ebp - 0x14c]
mov byte [ebp - 4], 2
call fcn.100021ef
test bl, bl
je 0x1000d290
push str.report_success
call fcn.1003048c
pop ecx
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x88]
call fcn.1000c81f
jmp 0x1000cf6e
push str.report_failed
call fcn.1003048c
pop ecx
jmp 0x1000cf8f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x110]
push eax
call fcn.1000d31e
mov al, 1
call fcn.10037ddd
ret 4