Function at 0x4bf508
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff920
mov eax, 0x57486c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.0053b394
mov word [ebp - 0x34], 8
xor edx, edx
xor ecx, ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x6e0]
inc dword [ebp - 0x28]
mov word [ebp - 0x34], 0x14
mov word [ebp - 0x34], 0x20
mov dword [ebp - 8], ecx
inc dword [ebp - 0x28]
mov word [ebp - 0x34], 0x14
push 0x3ff
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov word [ebp - 0x34], 0x2c
mov edx, 0x56ea2f
lea eax, [ebp - 0x10]
call fcn.00548ff0
inc dword [ebp - 0x28]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x6e0]
lea eax, [ebp - 0xc]
call fcn.00548ff0
inc dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x28]
pop edx
call fcn.005491f8
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.005491d0
dec dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005491a0
mov word [ebp - 0x34], 0x38
mov edx, 0x56ea4d
lea eax, [ebp - 0x1c]
call fcn.00548ff0
inc dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x6e0]
lea eax, [ebp - 0x18]
call fcn.00548ff0
inc dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
inc dword [ebp - 0x28]
pop edx
call fcn.005491f8
lea edx, [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.005491d0
dec dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005491a0
mov eax, dword [ebp - 4]
call fcn.00531b24
test al, al
jne 0x4bf6f6
mov eax, dword [ebp - 8]
call fcn.00531b24
cmp al, 1
jne 0x4bf6c3
push 0
cmp dword [ebp - 4], 0
je 0x4bf671
mov edx, dword [ebp - 4]
jmp 0x4bf676
mov edx, 0x56ea63
push edx
cmp dword [ebp - 8], 0
je 0x4bf682
mov eax, dword [ebp - 8]
jmp 0x4bf687
mov eax, 0x56ea62
push eax
call sub.KERNEL32.DLL_CopyFileA
mov eax, 0xfffffffe
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x28]
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005491a0
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x4bf971
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x28]
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005491a0
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x4bf971
push 0x18
push 0
lea ecx, [ebp - 0xb0]
push ecx
call fcn.0053af60
add esp, 0xc
push 0
push 0
push 1
push 0
push 0
push 0
push 0x56ea64
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
test esi, esi
jne 0x4bf758
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x28]
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005491a0
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x4bf971
push 0
lea ecx, [ebp - 0x48]
push ecx
push 0x18
lea eax, [ebp - 0xb0]
push eax
push 0
push 0
push 0x74080
push esi
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
jne 0x4bf7b3
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x28]
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005491a0
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x4bf971
test byte [ebp - 0xac], 1
jne 0x4bf7f5
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x28]
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005491a0
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x4bf971
xor ebx, ebx
push 0x20
push 0
lea eax, [ebp - 0xd0]
push eax
call fcn.0053af60
add esp, 0xc
lea edx, [ebp - 0x2e0]
push 0x210
push 0
push edx
call fcn.0053af60
add esp, 0xc
test bl, 1
je 0x4bf82e
mov byte [ebp - 0xc7], 0xb0
jmp 0x4bf835
mov byte [ebp - 0xc7], 0xa0
mov ecx, ebx
mov eax, 0x10
sar eax, cl
and eax, dword [ebp - 0xac]
jne 0x4bf933
mov byte [ebp - 0xc6], 0xec
mov byte [ebp - 0xc4], bl
lea edx, [ebp - 0x48]
mov byte [ebp - 0xcb], 1
mov byte [ebp - 0xca], 1
mov dword [ebp - 0xd0], pe_nt_image_headers32
push 0
push edx
lea ecx, [ebp - 0x2e0]
push 0x210
push ecx
lea eax, [ebp - 0xd0]
push 0x20
push eax
push 0x7c088
push esi
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
jne 0x4bf8d2
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
clc
dec dword [ebp - 0x28]
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005491a0
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x4bf971
lea eax, [ebp - 0x2d0]
push 0x14
add eax, 0x14
push eax
push edi
call fcn.0053aef0
add esp, 0xc
mov byte [edi + 0x14], 0
push 0x14
push edi
mov edx, dword [ebp + 8]
push edx
call fcn.00407030
add esp, 0xc
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x28]
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005491a0
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x4bf971
inc ebx
cmp bl, 4
jb 0x4bf7f7
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x28]
call fcn.005491a0
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005491a0
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx