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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff91c
mov eax, 0x4caa20
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.0049fef4
push 0x15
call fcn.0049f2bc
pop ecx
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x34], 8
xor edx, edx
xor ecx, ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x6e4]
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, 0x4c6061
lea eax, [ebp - 0x10]
call fcn.004adb50
inc dword [ebp - 0x28]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x6e4]
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, 0x4c607f
lea eax, [ebp - 0x1c]
call fcn.004adb50
inc dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x6e4]
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 0x42a465
mov eax, dword [ebp - 8]
call fcn.00496ba8
cmp al, 1
jne 0x42a432
push 0
cmp dword [ebp - 4], 0
je 0x42a3e0
mov edx, dword [ebp - 4]
jmp 0x42a3e5
mov edx, 0x4c6095
push edx
cmp dword [ebp - 8], 0
je 0x42a3f1
mov eax, dword [ebp - 8]
jmp 0x42a3f6
mov eax, 0x4c6094
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 0x42a714
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 0x42a714
push 0x18
push 0
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0049fac0
add esp, 0xc
push 0
push 0
push 1
push 0
push 0
push 0
push 0x4c6096
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
test esi, esi
jne 0x42a4c7
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 0x42a714
push 0
lea ecx, [ebp - 0x48]
push ecx
push 0x18
lea eax, [ebp - 0xb4]
push eax
push 0
push 0
push 0x74080
push esi
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
jne 0x42a522
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 0x42a714
test byte [ebp - 0xb0], 1
jne 0x42a564
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 0x42a714
xor ebx, ebx
push 0x20
push 0
lea eax, [ebp - 0xd4]
push eax
call fcn.0049fac0
add esp, 0xc
lea edx, [ebp - 0x2e4]
push 0x210
push 0
push edx
call fcn.0049fac0
add esp, 0xc
test bl, 1
je 0x42a59d
mov byte [ebp - 0xcb], 0xb0
jmp 0x42a5a4
mov byte [ebp - 0xcb], 0xa0
mov ecx, ebx
mov eax, 0x10
sar eax, cl
and eax, dword [ebp - 0xb0]
jne 0x42a6d6
mov byte [ebp - 0xca], 0xec
mov byte [ebp - 0xc8], bl
lea edx, [ebp - 0x48]
mov byte [ebp - 0xcf], 1
mov byte [ebp - 0xce], 1
mov dword [ebp - 0xd4], pe_nt_image_headers32
push 0
push edx
lea ecx, [ebp - 0x2e4]
push 0x210
push ecx
lea eax, [ebp - 0xd4]
push 0x20
push eax
push 0x7c088
push esi
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
jne 0x42a641
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 0x42a714
push 0x15
push 0
mov eax, dword [ebp - 0x4c]
lea ebx, [ebp - 0x2d4]
push eax
call fcn.0049fac0
add esp, 0xc
push 0x14
lea edx, [ebx + 0x14]
push edx
lea ecx, [ebp - 0x6e4]
push ecx
call fcn.0049fa50
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
add esp, 0xc
add eax, 0x63
mov dword [edx + 0x1f60], eax
add ebx, 0x14
push 0x14
push ebx
push edi
call fcn.0049fa50
add esp, 0xc
mov byte [edi + 0x14], 0
push 0x14
push edi
mov eax, dword [ebp + 8]
push eax
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 0x42a714
inc ebx
cmp bl, 4
jb 0x42a566
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