Function at 0x4a8c70
Capabilities:
Move file
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3a0
mov ebp, edx
mov edi, ecx
lea eax, [esp + 0x8c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0x80
lea eax, [esp + 0x80]
push 0x104
push eax
push edx
call fcn.004a7d20
add esp, 0xc
mov dword [esp + 4], eax
test eax, eax
je 0x4a8cf0
mov dword [esp], edx
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x8c]
cmp eax, ecx
je 0x4a8cde
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [esp + 4]
mov edx, dword [esp]
add esp, 0x3a0
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebp
jmp 0x4a8d3c
mov dword [esp], eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
inc eax
mov ecx, dword [esp]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
cmp eax, 0xc8
je 0x4a9293
mov ecx, edi
mov edx, ebp
push 1
call fcn.004aba50
add esp, 4
mov esi, eax
mov edi, edx
call fcn.00504d20
mov dword [esp], edi
cmp eax, edi
jne 0x4a8d63
cmp esi, 0x78
je 0x4a91ea
test esi, esi
je 0x4a9254
call fcn.00504e40
cmp eax, dword [esp]
mov dword [esp + 4], esi
jne 0x4a8cc3
cmp esi, 0xd
mov edi, dword [esp + 0x10]
jne 0x4a8cc3
mov eax, dword [esp + 0x80]
sub esp, 0x1c
movaps xmm0, xmmword [0x515bd0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000080
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4a91b0
mov ecx, eax
lea eax, [esp + 0x18c]
push eax
mov dword [esp + 0x1c], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4a9261
mov dword [esp + 0x14], ebx
xor edi, edi
mov esi, dword [esp + 8]
nop dword [eax]
mov dword [esp + 8], esi
movzx eax, byte [ebp + 0x10]
mov cl, 1
test eax, eax
je 0x4a8e3e
cmp eax, 1
jne 0x4a8e10
mov dword [esp + 0x2c], str..tmp
mov al, 3
jmp 0x4a8e3e
cmp byte [ebp + 0x11], 1
mov ecx, dword [ebp]
cmovne ecx, ebp
mov edx, dword [ebp + 4]
movzx eax, al
mov esi, edi
mov edi, 2
cmovne eax, edi
mov edi, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], str..tmp
mov cl, 3
mov edx, dword [esp + 0xc]
mov dword [esp + 0xc], edx
mov byte [esp + 0x3c], al
mov byte [esp + 0x3d], cl
test edi, edi
mov dword [esp + 4], edi
je 0x4a8f00
mov esi, edi
xor edi, edi
mov ebp, 0x15
nop word cs:[eax + eax]
mov dword [esp], ebp
mov ecx, edi
shld ecx, esi, 0x1f
mov ebp, edi
shr ebp, 1
mov ebx, ecx
add ebx, ebp
adc ebx, 0
mov eax, ebx
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub ebx, eax
sub ecx, ebx
sbb ebp, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
imul ebx, ecx, 0xcccccccc
add ebx, edx
imul ecx, ebp, 0xcccccccd
mov ebp, dword [esp]
add ecx, ebx
mov edx, eax
add edx, eax
lea edx, [edx + edx*4]
mov ebx, esi
sub ebx, edx
or bl, 0x30
mov byte [esp + ebp + 0x4b], bl
dec ebp
mov edx, 9
cmp edx, esi
mov edx, 0
sbb edx, edi
mov esi, eax
mov edi, ecx
jb 0x4a8e70
mov ebx, 0x15
sub ebx, ebp
cmp ebx, 0xa
ja 0x4a8f16
mov eax, ebx
add al, bl
mov byte [esp + 0x20], al
lea esi, [esp + 0x21]
lea edi, [esp + 0x40]
cmp ebp, 0x15
jne 0x4a8f41
jmp 0x4a8f54
mov byte [esp + 0x60], 0x30
mov ebp, 0x14
mov ebx, 0x15
sub ebx, ebp
cmp ebx, 0xa
jbe 0x4a8ee9
mov edi, ebx
or edi, 7
lea eax, [edi + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [esp + 0x28], eax
add edi, 2
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
lea edi, [esp + 0x40]
cmp ebp, 0x15
je 0x4a8f54
lea eax, [esp + ebp]
add eax, 0x4c
push ebx
push eax
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add esi, ebx
mov ebp, dword [esp + 0x1c]
mov byte [esi], 0
movzx eax, byte [esp + 0x3c]
mov cl, 1
test eax, eax
je 0x4a8fb1
cmp eax, 1
jne 0x4a8f80
lea eax, [esp + 0x20]
mov dword [esp + 0x4c], eax
mov al, 4
jmp 0x4a8fb1
cmp byte [esp + 0x3d], 1
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovne ecx, edx
mov edx, dword [esp + 0x30]
movzx eax, al
mov ebx, 2
cmovne eax, ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], ecx
mov cl, 4
mov byte [esp + 0x5c], al
mov byte [esp + 0x5d], cl
mov ecx, edi
lea eax, [esp + 0x4c]
push eax
call fcn.00465260
test byte [esp + 0x20], 1
je 0x4a8fd8
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov word [esp + 0x5c], 0x104
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push 0
call fcn.004aba50
add esp, 4
test eax, eax
je 0x4a90c0
mov ebx, eax
mov esi, edx
call fcn.00504e40
cmp ebx, 0x11
jne 0x4a900f
cmp eax, esi
je 0x4a902a
call fcn.00504e40
mov edi, 1
cmp ebx, 0xd
jne 0x4a9110
cmp eax, esi
jne 0x4a9110
mov eax, dword [esp + 0x80]
sub esp, 0x1c
movaps xmm0, xmmword [0x515be0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4a90d6
mov ebx, eax
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4a9144
mov eax, dword [esp + 0x1b8]
mov edi, 5
cmp eax, dword [esp + 0x78]
jne 0x4a90aa
mov eax, dword [esp + 0x1bc]
cmp eax, dword [esp + 0x7c]
jne 0x4a90aa
mov eax, dword [esp + 0x1a8]
xor ecx, ecx
cmp eax, dword [esp + 0x68]
sete cl
lea edi, [ecx*2 + 5]
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0x14]
jmp 0x4a915c
mov edi, 5
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0x14]
test byte [esp + 0x40], 1
jne 0x4a9117
jmp 0x4a9123
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0bb0
add esp, 4
mov ebx, eax
mov esi, edx
call fcn.00504e40
xor eax, esi
mov ecx, ebx
xor ecx, 2
xor edx, edx
or ecx, eax
sete dl
lea edi, [edx*4 + 1]
nop word cs:[eax + eax]
test byte [esp + 0x40], 1
je 0x4a9123
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
cmp edi, 7
jne 0x4a9180
mov edi, dword [esp + 4]
inc edi
mov eax, esi
mov dword [esp + 0x14], ebx
cmp edi, 0xc8
jne 0x4a8df0
jmp 0x4a8d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0bb0
add esp, 4
mov ebp, eax
mov esi, edx
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, ebp
mov ebp, dword [esp + 0x1c]
test byte [esp + 0x40], 1
jne 0x4a9117
jmp 0x4a9123
cmp edi, 5
mov eax, esi
je 0x4a8d10
mov dword [esp], eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4a8d1d
cmp edi, 4
je 0x4a8d1d
jmp 0x4a9286
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0bb0
add esp, 4
mov esi, eax
mov ebx, edx
call fcn.00504e40
mov dword [esp], ebx
cmp eax, ebx
mov dword [esp + 4], esi
jne 0x4a8cc3
mov ebx, 2
cmp esi, 2
je 0x4a8d21
jmp 0x4a8cc3
lea esi, [esp + 0x198]
mov dword [esp + 0x18c], esi
mov dword [esp + 0x190], 0
mov dword [esp + 0x194], 0x104
lea edx, [esp + 0x18c]
mov ecx, dword [esp + 0x10]
push 0
call fcn.004a8ac0
add esp, 4
mov dword [esp], edx
test eax, eax
jne 0x4a92ba
push 1
push dword [esp + 0x84]
push dword [esp + 0x194]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4a92a8
call fcn.00504d20
mov dword [esp], eax
xor eax, eax
jmp 0x4a92ba
mov dword [esp + 4], 0
jmp 0x4a8cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0bb0
add esp, 4
mov dword [esp + 4], eax
mov dword [esp], edx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a8cc3
mov dword [esp + 4], ebx
cmp edi, 2
jne 0x4a8cc3
mov dword [esp + 4], 0xd
call fcn.00504e40
mov dword [esp], eax
jmp 0x4a8cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0bb0
add esp, 4
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18c]
cmp eax, esi
je 0x4a8cc3
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x4a8cc3