Function at 0x416cd0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00412a50
mov dword [ebp - 4], 0
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
mov esi, 0x104
sub eax, esi
or eax, ecx
jge 0x416d49
push esi
lea ecx, [ebp - 0x10]
call fcn.00406d20
mov edx, dword [ebp - 0x10]
cmp dword [edx - 8], esi
jge 0x416d58
push 0x80070057
call fcn.00406170
push 1
push 0x1a
mov dword [edx - 0xc], esi
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push edx
push ecx
mov word [eax + 0x208], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ebabf
add esp, 8
test eax, eax
js 0x416d4e
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x416d4e
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
lea ecx, [ebp - 0x18]
call fcn.00411790
mov ecx, eax
call fcn.00411810
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411680
mov eax, dword [ebp - 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [edi + 0x24c]
call fcn.004113c0
mov byte [ebp - 4], 4
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
sete bl
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 0x416e00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x416e3e
lea ecx, [ebp - 0x18]
call fcn.00411790
mov ecx, eax
call fcn.00411810
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411680
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004130f0
add esp, 4
mov byte [ebp - 4], 6
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.004115e0
jmp 0x416eda
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [edi + 0x24c]
call fcn.004113c0
mov byte [ebp - 4], 8
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411680
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416e7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00412640
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
sete bl
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 0x416ebb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x416efd
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004130f0
add esp, 4
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.004115e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416efd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.004167a0
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x10]
mov eax, dword [eax]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
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 0x416f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00416830
add esp, 4
mov byte [ebp - 4], 0x10
push 1
push 0x531fd4
lea ecx, [ebp - 0x14]
call fcn.0040f910
lea edx, [ebp - 0x1c]
push edx
lea ecx, [edi + 0x7f0]
call fcn.004113c0
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0040f910
mov byte [ebp - 4], 0x10
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 0x416fa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00416b60
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004dd520
add esp, 0x14
mov byte [ebp - 4], 0x10
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 0x416fe8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [edi + 0x838]
call fcn.004113c0
mov esi, eax
mov bl, 0x15
mov byte [ebp - 4], bl
lea edx, [ebp - 0x1c]
push edx
call fcn.00476040
mov byte [ebp - 4], 0x16
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004dd520
add esp, 0x14
mov byte [ebp - 4], bl
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 0x417040
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417063
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170a9
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 0x4170cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret