Function at 0x457670
Capabilities:
Copy file
Create directory
Delete file
Move file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536285
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x57b270]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x498]
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ecx
push eax
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x49c], edi
call ebx
cmp eax, 0xffffffff
je 0x4576e6
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
push eax
call esi
cmp dword [ebp + 0x10], 0
jne 0x457704
lea eax, [ebp - 0x498]
push eax
push edi
call ebx
cmp eax, 0xffffffff
je 0x457704
push eax
call esi
xor eax, eax
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.00460b6f
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x457827
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ed350
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
lea esi, [ebp + eax*2 - 0x21a]
je 0x457821
lea eax, [ebp - 0x218]
cmp esi, eax
jbe 0x457778
nop dword [eax]
cmp word [esi], 0x5c
je 0x457786
xor eax, eax
mov word [esi], ax
sub esi, 2
lea eax, [ebp - 0x218]
cmp esi, eax
ja 0x457760
lea eax, [ebp - 0x218]
cmp esi, eax
je 0x457821
xor eax, eax
mov word [esi], ax
sub esi, 2
lea eax, [ebp - 0x218]
cmp esi, eax
je 0x457821
cmp esi, eax
jbe 0x4577e1
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4577da
cmp word [esi], 0x5c
je 0x4577c9
nop dword [eax + eax]
sub esi, 2
cmp word [esi], 0x5c
jne 0x4577c0
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x218]
cmp esi, eax
ja 0x4577a0
jmp 0x4577e1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi + 2], 0
je 0x457821
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, 0x5c
mov word [esi], bx
add esi, 2
cmp word [esi], 0
jne 0x4577f6
push 0
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x457815
cmp word [esi + 2], 0
jne 0x4577f3
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [ebp - 0x49c]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x498]
push eax
push edi
call ebx
cmp eax, 0xffffffff
je 0x457abf
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x457abf
push edi
lea ecx, [ebp - 0x248]
call fcn.00428150
mov edi, dword [ebp - 0x234]
lea edx, [ebp - 0x248]
mov esi, dword [ebp - 0x238]
cmp edi, 8
mov dword [ebp - 4], 0
cmovae edx, dword [ebp - 0x248]
test esi, esi
je 0x457aae
lea eax, [esi - 1]
or ebx, 0xffffffff
cmp eax, ebx
mov ecx, ebx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x4578b1
nop word [eax + eax]
cmp eax, edx
je 0x457aae
sub eax, 2
cmp word [eax], 0x5c
jne 0x4578a0
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x457aae
lea ecx, [eax + 1]
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp esi, ecx
jb 0x457ae0
sub esi, ecx
lea eax, [ebp - 0x248]
cmp esi, 0xffffffff
cmovb ebx, esi
cmp edi, 8
cmovae eax, dword [ebp - 0x248]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x4a0], eax
cmp ebx, 7
ja 0x457932
lea esi, [ebx + ebx]
mov dword [ebp - 0x220], ebx
push esi
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004ecdd0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x230], ax
jmp 0x457998
cmp ebx, 0x7ffffffe
ja 0x457ae5
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x457952
mov esi, SysReAllocString
jmp 0x45795c
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x230]
call fcn.00416d20
mov dword [ebp - 0x21c], esi
mov edi, eax
lea esi, [ebx + ebx]
mov dword [ebp - 0x220], ebx
push esi
push dword [ebp - 0x4a0]
push edi
call fcn.004ec850
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov dword [ebp - 0x230], edi
push 0x208
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.004ed350
add esp, 0xc
lea eax, [ebp - 0x450]
push 0x208
push eax
push 0x541dcc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x450]
push eax
push 0x53fa1c
push eax
call fcn.00420180
mov edi, dword [ebp - 0x49c]
lea eax, [ebp - 0x450]
add esp, 0x10
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x21c]
test eax, eax
jne 0x457a76
cmp edx, 8
jb 0x457a49
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457a3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457aea
push edx
push ecx
call fcn.00460b61
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00419810
jmp 0x4576e6
cmp edx, 8
jb 0x457ab4
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457aa2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457aea
push edx
push ecx
call fcn.00460b61
add esp, 8
jmp 0x457ab4
mov edi, dword [ebp - 0x49c]
lea ecx, [ebp - 0x248]
call fcn.00419810
push 1
push edi
push dword [ebp - 0x4a4]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4576e6
mov eax, 1
jmp 0x4576e8
call fcn.00403550
call fcn.00404fd0
call fcn.004f639a
int3