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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aed58
push 0x4a2bd4
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 0x46a5a9
push 0x104
call fcn.0046a9ce
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041e620
add esp, 0xc
jmp 0x46a5b1
call fcn.0046a9ce
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x46a667
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042ba92
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x46a665
mov eax, dword [ebp + 0xc]
push eax
push str._s._bak
push 0x104
lea ecx, [ebp - 0x120]
push ecx
call fcn.0040a2c0
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 0x46a61b
xor eax, eax
jmp 0x46a9bd
push 0x80
lea ecx, [ebp - 0x120]
push ecx
call dword [0x5429a0]
push 1
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.0042ba92
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x46a665
lea ecx, [ebp - 0x120]
push ecx
call dword [0x542978]
xor eax, eax
jmp 0x46a9bd
jmp 0x46a67f
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042ba92
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x46a68f
xor eax, eax
jmp 0x46a9bd
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 0x46a949
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 0x46a949
mov ecx, dword [ebp - 0x130]
xor edx, edx
mov dx, word [ecx + 6]
cmp edx, 2
jl 0x46a949
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 0x46a949
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x134]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 0x34]
jae 0x46a949
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 0x51e014
mov edx, dword [ebp - 0x138]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x46a949
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 0x46a949
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 0x46a949
mov edx, dword [ebp - 0x138]
xor eax, eax
mov al, byte [edx + 0xa]
cmp eax, 0x31
jne 0x46a949
mov ecx, dword [ebp - 0x138]
xor edx, edx
mov dl, byte [ecx + 0xd]
cmp edx, 0x68
jne 0x46a949
mov eax, dword [ebp - 0x138]
xor ecx, ecx
mov cl, byte [eax + 0x12]
cmp ecx, 0x31
jne 0x46a949
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 0x51e030
push 0x104
mov eax, dword [ebp - 0x148]
push eax
call fcn.00408090
mov dword [ebp - 0x128], 1
lea ecx, [ebp - 0x250]
push ecx
call dword [0x5429b0]
and eax, 0x10
test eax, eax
jne 0x46a92d
lea edx, [ebp - 0x14c]
push edx
lea eax, [ebp - 0x250]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x46a92d
cmp dword [ebp + 0x10], 0
je 0x46a918
push 0x104
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0041e620
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x46a92d
lea eax, [ebp - 0x250]
push eax
call fcn.0042a480
add esp, 4
cmp dword [ebp + 8], 0
je 0x46a949
push 6
push 0x51e038
mov ecx, dword [ebp - 0x140]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x46a962
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x128], 1
jne 0x46a9a2
movsx eax, byte [ebp - 0x120]
test eax, eax
je 0x46a9a0
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042a3a6
add esp, 8
mov dword [ebp - 0x128], 2
jmp 0x46a9b7
cmp dword [ebp - 0x128], 0
jne 0x46a9b7
cmp dword [ebp + 0x10], 0
je 0x46a9b7
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