Function at 0x46e670
Capabilities:
Copy file
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4f80
push 0x4a8984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x120], 0
cmp dword [ebp + 0xc], 0
je 0x46e6c9
push 0x104
call fcn.0046eaee
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00422950
add esp, 0xc
jmp 0x46e6d1
call fcn.0046eaee
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x46e787
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042fe02
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x46e785
mov eax, dword [ebp + 0xc]
push eax
push str._s._bak
push 0x104
lea ecx, [ebp - 0x120]
push ecx
call fcn.0040a230
add esp, 0x10
push 0
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x46e73b
xor eax, eax
jmp 0x46eadd
push 0x80
lea ecx, [ebp - 0x120]
push ecx
call dword [0x54b4e0]
push 1
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.0042fe02
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x46e785
lea ecx, [ebp - 0x120]
push ecx
call dword [0x54b4b8]
xor eax, eax
jmp 0x46eadd
jmp 0x46e79f
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042fe02
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x46e7af
xor eax, eax
jmp 0x46eadd
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
jne 0x46ea69
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x12c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
cmp dword [eax], 0x4550
jne 0x46ea69
mov ecx, dword [ebp - 0x130]
xor edx, edx
mov dx, word [ecx + 6]
cmp edx, 2
jl 0x46ea69
mov eax, dword [ebp - 0x130]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x130]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x134]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 0xc]
jb 0x46ea69
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x134]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 0x34]
jae 0x46ea69
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x134]
mov eax, dword [ecx + 0x28]
sub eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x134]
add eax, dword [ecx + 0x14]
mov edx, dword [ebp - 0x124]
add edx, eax
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
add eax, 0x24
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x138], ecx
push 5
push 0x52685c
mov edx, dword [ebp - 0x138]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x46ea69
mov eax, dword [ebp - 0x138]
add eax, 0x6f5d
mov dword [ebp - 0x138], eax
push 0x12
push str.sens.pdb
mov ecx, dword [ebp - 0x138]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x46ea69
mov edx, dword [ebp - 0x138]
add edx, 0x11
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
xor ecx, ecx
mov cl, byte [eax + 5]
cmp ecx, 0x68
jne 0x46ea69
mov edx, dword [ebp - 0x138]
xor eax, eax
mov al, byte [edx + 0xa]
cmp eax, 0x31
jne 0x46ea69
mov ecx, dword [ebp - 0x138]
xor edx, edx
mov dl, byte [ecx + 0xd]
cmp edx, 0x68
jne 0x46ea69
mov eax, dword [ebp - 0x138]
xor ecx, ecx
mov cl, byte [eax + 0x12]
cmp ecx, 0x31
jne 0x46ea69
push 0x104
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + eax - 0x250]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov byte [ecx], 0x5c
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 1]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0xe]
xor eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x148]
mov dword [ecx], eax
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 6]
xor eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x148]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x148]
mov byte [edx + 8], 0
push 0x526878
push 0x104
mov eax, dword [ebp - 0x148]
push eax
call fcn.00408000
mov dword [ebp - 0x128], 1
lea ecx, [ebp - 0x250]
push ecx
call dword [0x54b4f0]
and eax, 0x10
test eax, eax
jne 0x46ea4d
lea edx, [ebp - 0x14c]
push edx
lea eax, [ebp - 0x250]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x46ea4d
cmp dword [ebp + 0x10], 0
je 0x46ea38
push 0x104
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00422950
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x46ea4d
lea eax, [ebp - 0x250]
push eax
call fcn.0042e7f0
add esp, 4
cmp dword [ebp + 8], 0
je 0x46ea69
push 6
push 0x526880
mov ecx, dword [ebp - 0x140]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x46ea82
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x128], 1
jne 0x46eac2
movsx eax, byte [ebp - 0x120]
test eax, eax
je 0x46eac0
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042e716
add esp, 8
mov dword [ebp - 0x128], 2
jmp 0x46ead7
cmp dword [ebp - 0x128], 0
jne 0x46ead7
cmp dword [ebp + 0x10], 0
je 0x46ead7
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret