Function at 0x10001cc0
Capabilities:
Get common file path
Get file size
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcac
mov eax, dword [0x10005004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 0x32c]
push edi
push ecx
xor ecx, ecx
call fcn.10001a54
mov edx, dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 0xb54], ebx
push 0x20
pop edi
test edx, edx
je 0x10001d0f
push ebx
xor ecx, ecx
call fcn.10001bf8
lea ebx, [eax + 1]
lea edi, [eax + 0x2a]
mov dword [ebp - 0xb54], ebx
mov edx, dword [esi + 8]
test edx, edx
je 0x10001d33
push 0
xor ecx, ecx
call fcn.10001bf8
lea ecx, [eax + 1]
cmp ebx, ecx
ja 0x10001d2e
mov ebx, ecx
mov dword [ebp - 0xb54], ebx
add edi, 6
add edi, eax
and dword [ebp - 0xb60], 0
cmp dword [esi + 0x20], 0
jbe 0x10001d98
mov edx, dword [esi + 0x24]
xor eax, eax
mov dword [ebp - 0xb54], eax
mov edx, dword [edx + eax + 8]
xor ecx, ecx
push 0
call fcn.10001bf8
lea ecx, [eax + 1]
cmp ebx, ecx
ja 0x10001d61
mov ebx, ecx
mov edx, dword [esi + 0x24]
add eax, 4
add edi, eax
mov eax, dword [ebp - 0xb54]
cmp dword [edx + eax + 4], 3
jne 0x10001d77
inc edi
mov ecx, dword [ebp - 0xb60]
add eax, 0x18
inc ecx
mov dword [ebp - 0xb54], eax
mov dword [ebp - 0xb60], ecx
cmp ecx, dword [esi + 0x20]
jb 0x10001d4b
mov dword [ebp - 0xb54], ebx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10001f29
and dword [ebp - 0xb58], 0
add edi, 0xe
test eax, eax
je 0x10001f29
and dword [ebp - 0xb54], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xb54]
mov eax, dword [ecx + eax + 0xc]
test eax, eax
je 0x10001f06
push 0
push 0x80
push 3
push 0
push 0
push 0
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov dword [ebp - 0xb64], eax
cmp eax, 0xffffffff
jne 0x10001e4f
xor eax, eax
push eax
push eax
mov dword [ebp - 0xb5c], eax
lea eax, [ebp - 0xb5c]
push eax
push 0x400
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
cmp dword [ebp - 0xb5c], 0
je 0x10001f06
push 0x40
push 0x10001200
push dword [ebp - 0xb5c]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0xb5c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10001f06
push 0
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
push dword [ebp - 0xb64]
mov dword [ebp - 0xb6c], eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [ebp - 0xb6c]
cmp eax, 0xffffffff
je 0x10001f06
push eax
push dword [ebp - 0xb58]
lea eax, [ebp - 0x24]
push 0x10001208
push 0x20
push eax
call fcn.1000174e
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + 1]
cmp ebx, ecx
ja 0x10001ea6
mov ebx, ecx
mov edx, dword [esi + 0x2c]
add edi, eax
mov eax, dword [ebp - 0xb54]
xor ecx, ecx
push 0
mov edx, dword [eax + edx + 0xc]
call fcn.10001bf8
lea ecx, [eax + 5]
cmp ebx, ecx
ja 0x10001ec7
mov ebx, ecx
mov edx, dword [esi + 0x2c]
add eax, 0xd
add edi, eax
mov eax, dword [ebp - 0xb54]
push 0
mov ecx, dword [eax + edx + 0x10]
test ecx, ecx
je 0x10001ef6
mov edx, ecx
xor ecx, ecx
call fcn.10001bf8
lea ecx, [eax + 1]
cmp ebx, ecx
ja 0x10001ef1
mov ebx, ecx
add edi, 9
jmp 0x10001f04
mov edx, dword [eax + edx + 0xc]
xor ecx, ecx
call fcn.10001bf8
add eax, 4
add edi, eax
mov eax, dword [ebp - 0xb58]
add dword [ebp - 0xb54], 0x18
inc eax
mov dword [ebp - 0xb58], eax
cmp eax, dword [esi + 0x28]
jb 0x10001dbc
mov dword [ebp - 0xb54], ebx
push 0
mov edx, 0x10001214
xor ecx, ecx
call fcn.10001bf8
imul eax, dword [esi + 0x28]
imul eax, eax, 3
add eax, 0xa
lea ecx, [eax + 1]
cmp ebx, ecx
ja 0x10001f50
mov ebx, ecx
mov dword [ebp - 0xb54], ebx
add eax, edi
push eax
push 8
mov dword [ebp - 0xb58], eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x10001f76
push 2
pop eax
jmp 0x10002407
push ebx
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov dword [ebp - 0xb5c], eax
test eax, eax
jne 0x10001fa1
push edi
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
jmp 0x10001f6e
mov edx, dword [ebp - 0xb58]
mov ecx, edi
push 0x10001218
call fcn.100016b0
and dword [ebp - 0xb68], 0
cmp dword [esi + 0x20], 0
jbe 0x10002068
lea eax, [ebx - 1]
xor edx, edx
mov ebx, dword [ebp - 0xb5c]
mov dword [ebp - 0xb64], eax
mov dword [ebp - 0xb60], edx
mov eax, dword [esi + 0x24]
mov eax, dword [eax + edx + 4]
sub eax, 1
je 0x10001fff
sub eax, 1
je 0x10001ff8
sub eax, 1
jne 0x10002011
push 0x10001238
jmp 0x10002004
push 0x10001230
jmp 0x10002004
push 0x10001228
mov edx, dword [ebp - 0xb58]
mov ecx, edi
call fcn.100016e3
mov edx, dword [esi + 0x24]
mov ecx, ebx
mov eax, dword [ebp - 0xb60]
push dword [ebp - 0xb64]
mov edx, dword [edx + eax + 8]
call fcn.10001bf8
mov edx, dword [ebp - 0xb58]
mov ecx, edi
push ebx
mov byte [eax + ebx], 0
call fcn.100016e3
mov ecx, dword [ebp - 0xb68]
mov edx, dword [ebp - 0xb60]
inc ecx
add edx, 0x18
mov dword [ebp - 0xb68], ecx
mov dword [ebp - 0xb60], edx
cmp ecx, dword [esi + 0x20]
jb 0x10001fdb
mov ebx, dword [ebp - 0xb54]
cmp dword [esi + 4], 0
je 0x100020aa
mov edx, dword [ebp - 0xb58]
mov ecx, edi
push 0x10001240
call fcn.100016e3
mov edx, dword [esi + 4]
lea eax, [ebx - 1]
mov ecx, dword [ebp - 0xb5c]
push eax
call fcn.10001bf8
mov ecx, dword [ebp - 0xb5c]
mov edx, dword [ebp - 0xb58]
push ecx
mov byte [eax + ecx], 0
mov ecx, edi
call fcn.100016e3
cmp dword [esi + 8], 0
je 0x100020ec
mov edx, dword [ebp - 0xb58]
mov ecx, edi
push 0x1000124c
call fcn.100016e3
mov edx, dword [esi + 8]
lea eax, [ebx - 1]
mov ecx, dword [ebp - 0xb5c]
push eax
call fcn.10001bf8
mov ecx, dword [ebp - 0xb5c]
mov edx, dword [ebp - 0xb58]
push ecx
mov byte [eax + ecx], 0
mov ecx, edi
call fcn.100016e3
cmp dword [esi + 0x28], 0
je 0x100023b0
lea eax, [ebp - 0x22c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [ebp - 0xb58]
mov ecx, edi
push 0x10001254
call fcn.100016e3
and dword [ebp - 0xb64], 0
cmp dword [esi + 0x28], 0
jbe 0x100023b0
and dword [ebp - 0xb54], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xb54]
mov eax, dword [ecx + eax + 0xc]
test eax, eax
je 0x10002393
and dword [ebp - 0xb60], 0
mov edx, 0x104
push ecx
push eax
push ecx
lea ecx, [ebp - 0x128]
call fcn.100017b1
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov dword [ebp - 0xb68], eax
cmp eax, 0xffffffff
je 0x10002393
push 0
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov dword [ebp - 0xb6c], eax
mov eax, 0x12c
mov dword [ebp - 0xb70], eax
mov dword [ebp - 0xcac], eax
lea eax, [ebp - 0xb70]
push 0x100
push eax
lea eax, [ebp - 0xcac]
push eax
call dword [sym.imp.WININET.dll_GetUrlCacheConfigInfoA]
test eax, eax
je 0x100021ec
lea eax, [ebp - 0xc90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0xc90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixA]
test eax, eax
jne 0x10002215
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
test eax, eax
je 0x10002247
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixA]
test eax, eax
je 0x10002247
lea eax, [ebp - 0xb78]
push eax
push 0
push 0
push dword [ebp - 0xb68]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileTime]
test eax, eax
je 0x10002247
lea eax, [ebp - 0xb80]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
mov dword [ebp - 0xb60], 1
push dword [ebp - 0xb68]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [ebp - 0xb6c], 0xffffffff
je 0x10002393
cmp dword [ebp - 0xb60], 0
je 0x100022a7
push 0x10001260
mov edx, 0x104
lea ecx, [ebp - 0x128]
call fcn.100016e3
mov ecx, dword [ebp - 0xb54]
lea eax, [ebp - 0x128]
push eax
mov eax, dword [esi + 0x2c]
push dword [ecx + eax + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 1
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesA]
push 0x1f
mov edx, 0x10001214
lea ecx, [ebp - 0x24]
call fcn.10001bf8
cmp eax, 0x20
jae 0x1000241a
mov ecx, dword [ebp - 0xb5c]
lea edx, [ebp - 0x128]
mov byte [ebp + eax - 0x24], 0
lea eax, [ebx - 1]
push eax
call fcn.10001bf8
mov ecx, dword [ebp - 0xb5c]
mov edx, dword [ebp - 0xb58]
push ecx
mov byte [eax + ecx], 0
mov ecx, edi
call fcn.100016e3
mov edx, dword [ebp - 0xb58]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.100016e3
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xb54]
mov edx, dword [ecx + eax + 0x10]
test edx, edx
je 0x1000232c
mov ecx, dword [ebp - 0xb5c]
lea eax, [ebx - 1]
push eax
call fcn.10001bf8
mov ecx, dword [ebp - 0xb5c]
mov byte [eax + ecx], 0
push dword [ebp - 0xb5c]
mov edx, dword [ebp - 0xb58]
mov ecx, edi
call fcn.100016e3
mov edx, dword [ebp - 0xb58]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.100016e3
push dword [ebp - 0xb6c]
lea eax, [ebp - 0x24]
push 0x10001264
push 0x20
push eax
call fcn.1000174e
mov ecx, dword [ebp - 0xb5c]
lea eax, [ebx - 1]
add esp, 0x10
lea edx, [ebp - 0x24]
push eax
call fcn.10001bf8
mov ecx, dword [ebp - 0xb5c]
mov edx, dword [ebp - 0xb58]
push ecx
mov byte [eax + ecx], 0
mov ecx, edi
call fcn.100016e3
mov eax, dword [ebp - 0xb64]
add dword [ebp - 0xb54], 0x18
inc eax
mov dword [ebp - 0xb64], eax
cmp eax, dword [esi + 0x28]
jb 0x10002132
push dword [ebp - 0xb5c]
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
push edi
lea eax, [ebp - 0x32c]
push eax
push 0x100011f0
lea eax, [ebp - 0xb50]
push 0x824
push eax
call fcn.1000174e
add esp, 0x14
test eax, eax
js 0x100023f5
lea ecx, [ebp - 0xb50]
call fcn.10001b46
push edi
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100035c0
mov esp, ebp
pop ebp
ret 0x14
call fcn.1000370a
int3