Function at 0x4d38f0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
push str.CBaseInfoAddIn::BackupAndRestoreAddInFiles
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x504], edi
mov dword [ebp - 0x51c], ebx
mov dword [ebp - 0x518], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4d39d0
test byte [ecx + 0x1c], 1
je 0x4d3999
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d8b50
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x83
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x4d39d0
test byte [ecx + 0x1c], 1
je 0x4d39d0
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
push edi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x84
call fcn.004cc540
add esp, 0x14
xor edi, edi
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x514], edi
mov dword [ebp - 0x510], edi
mov dword [ebp - 0x50c], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x4f8], edi
mov dword [ebp - 0x4f4], edi
call fcn.004b8ba0
mov dword [ebp - 0x4f8], eax
mov edx, dword [ebp - 0x504]
mov byte [ebp - 4], 2
test edx, edx
je 0x4d3ab7
test ebx, ebx
je 0x4d3ab7
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4d3aa5
test byte [ecx + 0x1c], 4
je 0x4d3a6a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edx
cmovae eax, dword [0x608f54]
mov edx, 0x5d8b50
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x85
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
cmp ecx, 0x608f30
je 0x4d3aa5
test byte [ecx + 0x1c], 4
je 0x4d3aa5
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5d8b50
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x86
call fcn.00405920
add esp, 0x10
lea eax, [ebp - 0x4f8]
mov ecx, esi
push eax
call fcn.004cdf20
xor ebx, ebx
jmp 0x4d3acc
mov ebx, 0x80010001
mov dword [0x6183ec], 1
mov dword [ebp - 0x500], ebx
lea ecx, [ebp - 0x508]
call fcn.00475e00
test ebx, ebx
jne 0x4d41fc
mov eax, dword [ebp - 0x4f8]
mov dword [ebp - 0x510], ebx
mov esi, dword [eax]
cmp esi, eax
je 0x4d3f24
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 7
mov word [ebp - 0x4b8], ax
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x48c], 7
mov word [ebp - 0x4a0], ax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], 7
mov word [ebp - 0x480], ax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
lea eax, [esi + 0x10]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x438]
cmp ecx, eax
je 0x4d3ba3
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4d3b94
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x438]
call fcn.004035d0
mov ebx, dword [ebp - 0x518]
test ebx, ebx
jne 0x4d3bf7
mov dword [ebp - 0x4fc], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4d3d04
test byte [ecx + 0x1c], 4
je 0x4d3d04
cmp dword [0x608f68], 8
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x87
jmp 0x4d3cf7
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x4d3c4d
test byte [edx + 0x1c], 4
je 0x4d3c4d
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x438]
push ebx
cmovae ecx, dword [ebp - 0x438]
mov eax, 0x608f54
cmp dword [0x608f68], 8
push ecx
cmovae eax, dword [0x608f54]
mov ecx, 0x88
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x5d8b50
call fcn.00430170
add esp, 0x14
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push ebx
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4d3cba
mov dword [ebp - 0x4fc], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4d3d04
test byte [ecx + 0x1c], 4
je 0x4d3d04
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5d8b50
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x89
call fcn.00405920
add esp, 0x10
jmp 0x4d3d04
mov dword [ebp - 0x4fc], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4d3d04
test byte [ecx + 0x1c], 4
je 0x4d3d04
cmp dword [0x608f68], 8
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x8a
mov edx, 0x5d8b50
call fcn.00401840
add esp, 0xc
lea edi, [esi + 0x28]
lea eax, [ebp - 0x4b8]
cmp eax, edi
je 0x4d3d2a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4d3d1b
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x4b8]
push eax
call fcn.004035d0
lea eax, [edi + 0x18]
lea ecx, [ebp - 0x4a0]
cmp ecx, eax
je 0x4d3d50
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4d3d41
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x4a0]
call fcn.004035d0
mov eax, dword [edi + 0x34]
mov ebx, dword [edi + 0x30]
add edi, 0x38
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x480]
mov dword [ebp - 0x488], ebx
cmp eax, edi
je 0x4d3d8e
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4d3d79
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x480]
push eax
call fcn.004035d0
mov ebx, dword [ebp - 0x488]
cmp dword [ebp - 0x4fc], 0
je 0x4d3deb
cmp dword [ebp - 0x46c], 8
lea eax, [ebp - 0x480]
push dword [ebp - 0x470]
cmovae eax, dword [ebp - 0x480]
lea ecx, [ebp - 0x468]
push eax
call fcn.004035d0
cmp ebx, 1
jne 0x4d3deb
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x514]
push 0x2c
lea eax, [ebp - 0x468]
cmovae eax, dword [ebp - 0x468]
push ecx
push eax
lea ecx, [ebp - 0x508]
call fcn.004771e0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x454]
cmp edx, 8
jb 0x4d3e2f
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d3e25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4207
push edx
push ecx
call fcn.0056deb6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
cmp edx, 8
jb 0x4d3e90
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d3e86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4207
push edx
push ecx
call fcn.0056deb6
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.00403570
lea ecx, [ebp - 0x4a0]
call fcn.00403570
lea ecx, [ebp - 0x4b8]
call fcn.00403570
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4d3ef4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4d3ef0
cmp esi, dword [eax + 8]
jne 0x4d3ef0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4d3ee0
mov esi, eax
jmp 0x4d3f0c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4d3f0c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4d3f00
cmp esi, dword [ebp - 0x4f8]
jne 0x4d3b00
mov ebx, dword [ebp - 0x510]
mov edi, dword [ebp - 0x514]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
xor eax, eax
mov dword [ebp - 0x440], 0
add esp, 0x18
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
mov byte [ebp - 4], 7
cmp edi, ebx
je 0x4d40d7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
lea eax, [ebp - 0x450]
cmp eax, edi
je 0x4d3fa3
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4d3f94
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x450]
push eax
call fcn.004035d0
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push eax
push dword [ebp - 0x504]
lea eax, [ebp - 0x420]
push 0x5c70f4
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00437f50
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push eax
push dword [ebp - 0x51c]
lea eax, [ebp - 0x218]
push 0x5c70f4
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00437f50
add esp, 0x30
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4d4067
test byte [ecx + 0x1c], 4
je 0x4d4067
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
lea edx, [ebp - 0x420]
mov eax, 0x608f54
cmovae eax, dword [0x608f54]
push edx
push eax
push dword [ecx + 0x14]
mov edx, 0x5d8b50
push dword [ecx + 0x10]
mov ecx, 0x8b
call fcn.00430170
add esp, 0x14
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4d40c4
call esi
mov edx, dword [0x608f30]
cmp edx, 0x608f30
je 0x4d40ca
test byte [edx + 0x1c], 4
je 0x4d40ca
cmp dword [0x608f68], 8
mov ecx, 0x608f54
push eax
cmovae ecx, dword [0x608f54]
push ecx
push dword [edx + 0x14]
mov ecx, 0x8c
push dword [edx + 0x10]
mov edx, 0x5d8b50
call fcn.004018a0
add esp, 0x10
mov edx, dword [0x608f30]
add edi, 0x18
cmp edi, ebx
jne 0x4d3f80
jmp 0x4d40dd
mov edx, dword [0x608f30]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x4d4127
mov ecx, dword [ebp - 0x450]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4117
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d4207
push edx
push ecx
call fcn.0056deb6
mov edx, dword [0x608f30]
add esp, 8
mov ebx, dword [ebp - 0x500]
mov byte [ebp - 0x4ec], 1
cmp edx, 0x608f30
je 0x4d416f
test byte [edx + 0x1c], 1
je 0x4d416f
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov ecx, 0x8d
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x5d8b50
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x508]
call fcn.00475ed0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4f8]
mov esi, dword [ebp - 0x4f8]
push dword [esi + 4]
call fcn.004b8bc0
mov eax, dword [ebp - 0x4f8]
push 0x78
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x4f8]
mov dword [eax], esi
mov eax, dword [ebp - 0x4f8]
mov dword [eax + 8], esi
push dword [ebp - 0x4f8]
mov dword [ebp - 0x4f4], 0
call fcn.0056deb6
add esp, 8
lea ecx, [ebp - 0x514]
call fcn.00409b00
lea ecx, [ebp - 0x4f0]
call fcn.0040a570
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x608f30]
jmp 0x4d412d
call fcn.00574908
int3