Function at 0x4a0c50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x240], eax
xor eax, eax
push ebp
push 0x4a0f76
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x240]
call fcn.004041ac
lea eax, [ebp - 0x23c]
xor ecx, ecx
mov edx, 0x23c
call fcn.00402d90
mov eax, dword [0x4baf28]
cmp dword [eax], 2
jne 0x4a0dca
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x4a0f84
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
je 0x4a0f58
xor edx, edx
push ebp
push 0x4a0dc3
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x23c], 0x1c
lea edx, [ebp - 0x238]
mov ecx, 8
mov eax, 0x4a0f98
call fcn.00402910
mov dword [ebp - 0x230], 2
mov dword [ebp - 0x224], 0x220
mov dword [ebp - 0x22c], 0x1b0501
lea ebx, [ebp - 0x23c]
add ebx, 0x1c
mov dword [ebp - 0x24c], ebx
mov eax, ebx
mov dword [eax], 0x200
mov byte [eax + 0xc], 0
add eax, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 2], 1
mov byte [eax + 3], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa0
mov byte [eax + 6], 0xec
push 0
lea eax, [ebp - 0x248]
push eax
push 0x23c
lea eax, [ebp - 0x23c]
push eax
push 0x23c
lea eax, [ebp - 0x23c]
push eax
push 0x4d008
mov eax, dword [ebp - 0x244]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x4a0da9
call fcn.00403c10
jmp 0x4a0f58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0f2f
mov eax, dword [ebp - 0x244]
push eax
call sub.kernel32.dll_CloseHandle
ret
lea eax, [ebp - 0x250]
call fcn.004a0c00
lea eax, [ebp - 0x254]
mov ecx, 0x4a0fac
mov edx, dword [ebp - 0x250]
call fcn.004044d4
mov eax, dword [ebp - 0x254]
call fcn.00408c9c
test al, al
jne 0x4a0e6a
lea eax, [ebp - 0x258]
mov ecx, 0x4a0fd4
mov edx, dword [ebp - 0x250]
call fcn.004044d4
mov eax, dword [ebp - 0x258]
call fcn.00408c9c
test al, al
je 0x4a0e6a
push 0
lea eax, [ebp - 0x25c]
mov ecx, 0x4a0fac
mov edx, dword [ebp - 0x250]
call fcn.004044d4
mov eax, dword [ebp - 0x25c]
call fcn.00404688
push eax
lea eax, [ebp - 0x260]
mov ecx, 0x4a0fd4
mov edx, dword [ebp - 0x250]
call fcn.004044d4
mov eax, dword [ebp - 0x260]
call fcn.00404688
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0
push 1
push 0
push 0
push 0
push 0x4a0fec
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
je 0x4a0f58
xor edx, edx
push ebp
push 0x4a0f28
push dword fs:[edx]
mov dword fs:[edx], esp
lea ebx, [ebp - 0x23c]
lea eax, [ebx + 0x20]
mov dword [ebp - 0x24c], eax
mov eax, ebx
mov dword [eax], 0x200
mov byte [eax + 0xc], 0
add eax, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 2], 1
mov byte [eax + 3], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa0
mov byte [eax + 6], 0xec
push 0
lea eax, [ebp - 0x248]
push eax
push 0x210
mov eax, dword [ebp - 0x24c]
push eax
push 0x20
push ebx
push 0x7c088
mov eax, dword [ebp - 0x244]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x4a0f0e
call fcn.00403c10
jmp 0x4a0f58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0f2f
mov eax, dword [ebp - 0x244]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0f7d
lea eax, [ebp - 0x260]
mov edx, 5
call fcn.004041d0
ret