Function at 0x401430
Capabilities:
Copy file
Get file size
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dcd4
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x49f56c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0041a040
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4016a0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jbe 0x4016a0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x10]
jne 0x4016a0
call fcn.0040b480
add eax, 0xd8
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
call fcn.004028e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00402030
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00401c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004029a0
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00401eb0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x40155e
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401f70
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004029a0
lea ecx, [ebp - 0x18]
call fcn.0041a040
push eax
call fcn.00451060
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00402030
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00401c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004029a0
push 0
lea ecx, [ebp - 0x18]
call fcn.0041a040
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0041a040
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x401691
lea eax, [ebp - 0x18]
push eax
call fcn.004011a0
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00402190
movzx ecx, al
test ecx, ecx
jne 0x401691
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
push 0x485770
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004020e0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00402030
add esp, 0xc
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
call fcn.0041a040
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.004029a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004029a0
cmp dword [ebp - 0x24], 0xffffffff
jne 0x401687
push str.Warnning:_cache_index_file_create_fail_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x401691
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004029a0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
je 0x4016c1
push 1
mov ecx, dword [ebp - 0x3c]
call fcn.00401a40
mov dword [ebp - 0x70], eax
jmp 0x4016c8
mov dword [ebp - 0x70], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4