Function at 0x489ab0
Capabilities:
Copy file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fb79
mov eax, dword fs:[0]
push eax
sub esp, 0x694
mov eax, dword [0x5fb61c]
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 ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x44c]
push esi
push eax
call fcn.0046ebb0
lea ecx, [ebp - 0x458]
push esi
push ecx
mov dword [ebp - 4], esi
call fcn.0046fe70
add esp, 0x10
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx - 0xc]
mov ecx, dword [ebp - 0x458]
sub eax, dword [ecx - 0xc]
lea edx, [ebp - 0x464]
push eax
push edx
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 1
call fcn.00421e70
mov edi, dword [ebp - 0x464]
push str.Au_.exe
push edi
mov byte [ebp - 4], 2
call fcn.005347c1
add esp, 8
cmp eax, esi
jne 0x489bc1
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489b68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x458]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489b8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489bb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x489f99
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
mov dword [ebp - 0x45c], esi
call eax
add eax, 0x10
mov dword [ebp - 0x448], eax
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push esi
push edx
mov byte [ebp - 4], 3
mov word [ebp - 0x218], cx
call fcn.005336c0
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [ebp - 0x454], eax
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
mov byte [ebp - 4], 4
call edx
add eax, 0x10
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x6a0]
push eax
mov byte [ebp - 4], 5
call fcn.0046b4e0
mov esi, eax
add esp, 4
mov ecx, 0x8b
lea edi, [ebp - 0x444]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x470]
call fcn.00422540
push str.__from_
push eax
lea ecx, [ebp - 0x46c]
push ecx
mov byte [ebp - 4], 6
call fcn.004221d0
lea edx, [ebp - 0x420]
push edx
push eax
lea eax, [ebp - 0x474]
push eax
mov byte [ebp - 4], 7
call fcn.004221d0
push 0x595ba4
push eax
lea ecx, [ebp - 0x460]
push ecx
mov byte [ebp - 4], 8
call fcn.004221d0
add esp, 0x24
mov eax, dword [ebp - 0x474]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x489cd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x46c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489cf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x470]
mov bl, 0xc
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489d1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x489e86
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x489d50
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x448]
call fcn.00422120
push 4
push str.wps_
lea ecx, [ebp - 0x448]
call fcn.00422060
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x454]
push str._x_
push ecx
call fcn.004237a0
mov esi, dword [ebp - 0x454]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x448]
call fcn.00422060
mov edi, dword [ebp - 0x448]
push edi
call fcn.00470010
add esp, 4
test eax, eax
je 0x489e92
push str.Au_.exe
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x468]
push eax
call fcn.004221d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xd
call fcn.004222b0
mov eax, dword [ebp - 0x468]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489e1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x44c]
push 0
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x489e92
mov eax, dword [ebx - 0xc]
push 0x1f01ff
push eax
lea ecx, [ebp - 0x450]
call fcn.00421f00
push eax
call fcn.0046e4c0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x460]
mov eax, dword [ebp - 0x450]
push 0
push 1
push 0
push 1
push 0
push edx
push eax
call fcn.00471f30
add esp, 0x1c
mov dword [ebp - 0x45c], 1
jmp 0x489e92
mov edi, dword [ebp - 0x448]
mov esi, dword [ebp - 0x454]
mov eax, dword [ebp - 0x460]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489eb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489ede
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489efe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489f1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x464]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489f44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x458]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489f6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489f93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x45c]
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.005332ca
mov esp, ebp
pop ebp
ret