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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff920
mov eax, 0x4caaf0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.0049fef4
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, 0x4c60a3
lea eax, [ebp - 0x10]
call fcn.004adb50
inc dword [ebp - 0x28]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x6e0]
lea eax, [ebp - 0xc]
call fcn.004adb50
inc dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x28]
pop edx
call fcn.004adca4
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004adc7c
dec dword [ebp - 0x28]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004adc4c
mov word [ebp - 0x34], 0x38
mov edx, 0x4c60c1
lea eax, [ebp - 0x1c]
call fcn.004adb50
inc dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x6e0]
lea eax, [ebp - 0x18]
call fcn.004adb50
inc dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
inc dword [ebp - 0x28]
pop edx
call fcn.004adca4
lea edx, [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.004adc7c
dec dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004adc4c
mov eax, dword [ebp - 4]
call fcn.00496ba8
test al, al
jne 0x42ab7e
mov eax, dword [ebp - 8]
call fcn.00496ba8
cmp al, 1
jne 0x42ab4b
push 0
cmp dword [ebp - 4], 0
je 0x42aaf9
mov edx, dword [ebp - 4]
jmp 0x42aafe
mov edx, 0x4c60d7
push edx
cmp dword [ebp - 8], 0
je 0x42ab0a
mov eax, dword [ebp - 8]
jmp 0x42ab0f
mov eax, 0x4c60d6
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.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x42adf9
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x28]
call fcn.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x42adf9
push 0x18
push 0
lea ecx, [ebp - 0xb0]
push ecx
call fcn.0049fac0
add esp, 0xc
push 0
push 0
push 1
push 0
push 0
push 0
push 0x4c60d8
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
test esi, esi
jne 0x42abe0
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x28]
call fcn.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x42adf9
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 0x42ac3b
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.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x42adf9
test byte [ebp - 0xac], 1
jne 0x42ac7d
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.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x42adf9
xor ebx, ebx
push 0x20
push 0
lea eax, [ebp - 0xd0]
push eax
call fcn.0049fac0
add esp, 0xc
lea edx, [ebp - 0x2e0]
push 0x210
push 0
push edx
call fcn.0049fac0
add esp, 0xc
test bl, 1
je 0x42acb6
mov byte [ebp - 0xc7], 0xb0
jmp 0x42acbd
mov byte [ebp - 0xc7], 0xa0
mov ecx, ebx
mov eax, 0x10
sar eax, cl
and eax, dword [ebp - 0xac]
jne 0x42adbb
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 0x42ad5a
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.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x42adf9
lea eax, [ebp - 0x2d0]
push 0x14
add eax, 0x14
push eax
push edi
call fcn.0049fa50
add esp, 0xc
mov byte [edi + 0x14], 0
push 0x14
push edi
mov edx, dword [ebp + 8]
push edx
call fcn.00405e94
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.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
jmp 0x42adf9
inc ebx
cmp bl, 4
jb 0x42ac7f
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.004adc4c
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004adc4c
pop eax
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret