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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536f35
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x57b300]
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 0x458376
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
push eax
call esi
cmp dword [ebp + 0x10], 0
jne 0x458394
lea eax, [ebp - 0x498]
push eax
push edi
call ebx
cmp eax, 0xffffffff
je 0x458394
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.0046170f
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4584b7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004edf00
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 0x4584b1
lea eax, [ebp - 0x218]
cmp esi, eax
jbe 0x458408
nop dword [eax]
cmp word [esi], 0x5c
je 0x458416
xor eax, eax
mov word [esi], ax
sub esi, 2
lea eax, [ebp - 0x218]
cmp esi, eax
ja 0x4583f0
lea eax, [ebp - 0x218]
cmp esi, eax
je 0x4584b1
xor eax, eax
mov word [esi], ax
sub esi, 2
lea eax, [ebp - 0x218]
cmp esi, eax
je 0x4584b1
cmp esi, eax
jbe 0x458471
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x45846a
cmp word [esi], 0x5c
je 0x458459
nop dword [eax + eax]
sub esi, 2
cmp word [esi], 0x5c
jne 0x458450
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x218]
cmp esi, eax
ja 0x458430
jmp 0x458471
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi + 2], 0
je 0x4584b1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, 0x5c
mov word [esi], bx
add esi, 2
cmp word [esi], 0
jne 0x458486
push 0
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x4584a5
cmp word [esi + 2], 0
jne 0x458483
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 0x45874f
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45874f
push edi
lea ecx, [ebp - 0x248]
call fcn.00428f80
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 0x45873e
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 0x458541
nop word [eax + eax]
cmp eax, edx
je 0x45873e
sub eax, 2
cmp word [eax], 0x5c
jne 0x458530
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x45873e
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 0x458770
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 0x4585c2
lea esi, [ebx + ebx]
mov dword [ebp - 0x220], ebx
push esi
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004ed980
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x230], ax
jmp 0x458628
cmp ebx, 0x7ffffffe
ja 0x458775
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4585e2
mov esi, SysReAllocString
jmp 0x4585ec
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.004ed400
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.004edf00
add esp, 0xc
lea eax, [ebp - 0x450]
push 0x208
push eax
push 0x54214c
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 0x53fb4c
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 0x458706
cmp edx, 8
jb 0x4586d9
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4586cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45877a
push edx
push ecx
call fcn.00461701
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 0x458376
cmp edx, 8
jb 0x458744
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458732
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45877a
push edx
push ecx
call fcn.00461701
add esp, 8
jmp 0x458744
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 0x458376
mov eax, 1
jmp 0x458378
call fcn.00403550
call fcn.00404fd0
call fcn.004f6f4a
int3