Function at 0x489469
Capabilities:
Copy file
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7a58
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4e0]
push 0
push 0x8000000
push 3
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4dc]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x4895a5
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x128]
push eax
call fcn.00409100
push str..tmp
push 0x104
lea ecx, [ebp - 0x128]
push ecx
call fcn.00408000
push 1
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
lea ecx, [ebp - 0x128]
push ecx
call dword [0x54b4e0]
push 0
push 0x8000000
push 3
push 0
push 1
push 0xc0000000
lea edx, [ebp - 0x128]
push edx
call dword [0x54b4dc]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x48959e
mov eax, dword [ebp - 0x20]
jmp 0x48988b
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x8000004
push 0
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4895fa
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x48988b
push 0
push 0
push 0
push 0xf001f
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
jne 0x489643
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x48988b
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.0042e5a0
add esp, 4
test eax, eax
jne 0x489685
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x20]
jmp 0x48988b
mov dword [ebp - 4], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x154], 0
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x144]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x138]
lea eax, [edx + ecx + 0x28]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
push edx
call fcn.0048916f
add esp, 4
test eax, eax
jne 0x48973f
mov dword [ebp - 0x15c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x15c]
jmp 0x48988b
mov eax, dword [ebp - 0x140]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xe9
jne 0x489810
mov eax, dword [ebp - 0x140]
inc eax
mov eax, dword [eax]
add eax, 5
add eax, dword [ebp - 0x140]
mov dword [ebp - 0x148], eax
push 0x1e4
push 0
mov edx, dword [ebp - 0x148]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 5
push 0x5428e8
mov eax, dword [ebp - 0x140]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x12c], 0
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x134], 0xffffffff
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x138], 0
cmp dword [ebp - 0x24], 0
je 0x4897f7
push 5
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x160], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x160]
jmp 0x48988b
mov dword [ebp - 4], 0xffffffff
jmp 0x489829
cmp dword [ebp - 0x12c], 0
je 0x489849
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x12c], 0
cmp dword [ebp - 0x134], 0xffffffff
je 0x489869
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x134], 0xffffffff
cmp dword [ebp - 0x138], 0
je 0x489889
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x138], 0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4