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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x504
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
mov ebx, ecx
mov eax, dword [ebx + 4]
push 0x1042
push eax
call esi
push 0x30
lea ecx, [ebp - 0xc8]
mov edi, eax
push 0
push ecx
mov dword [ebp - 0x14], edi
call fcn.006100a0
mov eax, dword [ebx + 4]
add esp, 0xc
lea edx, [ebp - 0xcc]
push edx
push 0
push 0x104b
push eax
mov dword [ebp - 0xcc], 5
mov dword [ebp - 0xc8], edi
call esi
cmp dword [ebx + 0x2d8], 0
jne 0x4aec22
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov edx, dword [ebx + 0x2fc]
xor esi, esi
test edx, edx
je 0x4aecd0
mov edi, dword [ebp - 0xac]
xor ecx, ecx
cmp esi, edx
jae 0x4aec75
mov eax, dword [ebx + 0x2f8]
cmp dword [eax + ecx + 8], edi
je 0x4aec71
inc esi
add ecx, 0xc
cmp esi, edx
jb 0x4aec5b
jmp 0x4aecd0
cmp esi, edx
jb 0x4aec7f
push 0x80070057
call fcn.004011d0
mov edi, dword [ebx + 0x2f8]
lea eax, [esi + esi*2]
add eax, eax
add eax, eax
add edi, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x4aeca4
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, edi
call fcn.00401370
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x18]
call fcn.00409320
cmp esi, dword [ebx + 0x2fc]
jb 0x4aecc1
push 0x80070057
call fcn.004011d0
mov eax, dword [ebx + 0x2f8]
add eax, dword [ebp - 0x2c]
mov dl, byte [eax + 4]
mov byte [ebp - 0x21], dl
mov eax, dword [ebp - 0x18]
push 0x66f16a
push eax
call fcn.00612c79
add esp, 8
test eax, eax
setne al
test al, al
je 0x4af38c
push 0x58
lea ecx, [ebp - 0x88]
push 0
push ecx
call fcn.006100a0
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x88], 0x58
mov dword [ebp - 0x84], 0
call fcn.005bd6c0
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
add esp, 0x10
mov ecx, 0x700724
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4aed5b
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00401400
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
push 0x104
push esi
push str.LogsDir
push eax
call fcn.005bd4f0
add esp, 0x10
test eax, eax
jne 0x4aee1f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4aed9e
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00401400
mov esi, dword [ebp - 0x20]
push esi
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4aedd3
push str.SHGetFolderPathW__0__0x001a__0__SHGFP_TYPE_DEFAULT__strSysDir.GetBuffer__260__
push eax
lea ecx, [ebp - 0x98]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x98]
push ecx
call fcn.0060fb01
test esi, esi
jne 0x4aeddb
xor eax, eax
jmp 0x4aedf5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aede0
sub eax, edx
sar eax, 1
js 0x4aec75
cmp eax, dword [esi - 8]
jg 0x4aec75
mov dword [esi - 0xc], eax
xor edx, edx
push 0x673c4c
mov word [esi + eax*2], dx
lea eax, [ebp - 0x20]
push str._sData_
push eax
call fcn.00414990
add esp, 0xc
jmp 0x4aee66
test esi, esi
jne 0x4aee27
xor eax, eax
jmp 0x4aee45
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aee30
sub eax, edx
sar eax, 1
js 0x4aec75
cmp eax, dword [esi - 8]
jg 0x4aec75
xor ecx, ecx
mov dword [esi - 0xc], eax
push 6
mov word [esi + eax*2], cx
push str.Data_
lea ecx, [ebp - 0x20]
call fcn.00401710
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x2c], eax
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
mov eax, dword [ebx + 0x2d8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401710
push 1
push 0x66ea40
lea ecx, [ebp - 0x1c]
call fcn.00401710
push 9
push str.Clipboard
lea ecx, [ebp - 0x1c]
call fcn.00401710
push 0xf
push str.ClipboardFiles
lea ecx, [ebp - 0x1c]
call fcn.00401710
mov esi, dword [ebp - 0x18]
push 0x5c
push esi
call fcn.0061571d
add esp, 8
test eax, eax
jne 0x4aeee6
or eax, 0xffffffff
jmp 0x4aeee8
sub eax, esi
mov ecx, dword [esi - 0xc]
sub ecx, eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.0043ad60
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x18]
call fcn.004149b0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aef2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040b4e0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x306]
push eax
mov word [ebp - 0x308], dx
call fcn.006100a0
mov ecx, dword [ebx + 0x2ec]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
mov dword [ebp - 0xf8], ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x308]
push ecx
mov dword [ebp - 0xec], edx
mov edx, dword [ebx + 4]
push 0x1073
push edx
mov dword [ebp - 0xe8], 0x104
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 8
lea eax, [ebp - 0x308]
test eax, 0xffff0000
jne 0x4aefd6
mov ecx, eax
movzx ebx, cx
push 0
push ebx
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x4af002
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00405a10
jmp 0x4aefff
lea eax, [ebp - 0x308]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aefe0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x308]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401670
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 9
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0xa
mov eax, 0x6742e4
test eax, 0xffff0000
jne 0x4af04b
mov ecx, eax
movzx ebx, cx
push 0
push ebx
call fcn.00403bf0
add esp, 8
test eax, eax
je 0x4af05d
push ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00405a10
jmp 0x4af05a
push 3
push 0x6742e4
lea ecx, [ebp - 0x14]
call fcn.00401670
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
push 0x5c
push esi
call fcn.00613b38
add esp, 8
test eax, eax
je 0x4af07f
sub eax, esi
sar eax, 1
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4af1e8
lea edx, [ebp - 0x10]
push 0x66f16a
push edx
call fcn.0045aef0
add esp, 8
test al, al
je 0x4af159
mov byte [ebp - 4], 9
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af0b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af0d8
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af0fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af11b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af141
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [ebp - 0x21]
mov ebx, 1
cmp al, bl
jne 0x4af1a5
cmp dword [esi - 4], ebx
jle 0x4af179
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov esi, dword [ebp - 0x10]
push esi
lea edx, [ebp - 0x510]
push 0x104
push edx
call fcn.00611c28
add esp, 0xc
push 4
push str..bmp
lea ecx, [ebp - 0x14]
call fcn.00401670
mov edi, dword [ebp - 0x14]
jmp 0x4af25d
cmp al, 2
jne 0x4af25d
cmp dword [esi - 4], ebx
jle 0x4af1c1
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401370
mov esi, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x510]
push 0x104
push ecx
call fcn.00611c28
add esp, 0xc
push str..emf
lea ecx, [ebp - 0x14]
call fcn.00403420
mov edi, dword [ebp - 0x14]
jmp 0x4af25d
mov eax, dword [esi - 0xc]
sub eax, ecx
mov ebx, 1
sub eax, ebx
push eax
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x10]
call fcn.00427cb0
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x10]
call fcn.004078d0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af231
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], ebx
jle 0x4af248
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov esi, dword [ebp - 0x10]
push esi
lea edx, [ebp - 0x510]
push 0x104
push edx
call fcn.00611c28
add esp, 0xc
lea eax, [ebp - 0x510]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0x104
cmp dword [edi - 4], ebx
jle 0x4af281
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401370
mov edi, dword [ebp - 0x14]
xor eax, eax
lea edx, [ebp - 0x88]
push edx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], 0x800
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, ebx
mov ebx, dword [ebp - 0x1c]
jne 0x4af30c
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040bea0
mov byte [ebp - 4], 0x13
push 0x6742dc
push edi
call fcn.00611e0e
add esp, 8
test eax, eax
je 0x4af2dc
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00401710
mov ecx, dword [ebp - 0x28]
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4af30c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af32c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af34c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 3
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af36c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af38c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af3b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10