Function at 0x10052540
Capabilities:
Enumerate files on windows
Get common file path
Get disk information
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1009d789
mov eax, dword fs:[0]
push eax
sub esp, 0xae0
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0xad8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0xaf4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb04]
push 0x206
xor ebx, ebx
lea edx, [esp + 0x8ea]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x8f0], cx
call fcn.10079c60
add esp, 0xc
push 0x104
lea eax, [esp + 0x8e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x44]
push ecx
call fcn.100614b0
mov dword [esp + 0xafc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x100525f1
mov dword [esp + 0xafc], 0xffffffff
lea edx, [esp + 0x44]
push edx
jmp 0x10052acd
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
push 0x100c49e4
neg ecx
or ecx, eax
push ecx
call fcn.10076988
mov ebp, eax
add esp, 8
mov dword [esp + 0x5c], ebp
cmp ebp, ebx
jne 0x10052631
mov dword [esp + 0xafc], 0xffffffff
lea eax, [esp + 0x44]
push eax
jmp 0x10052acd
push ebp
push esi
call edi
lea edx, [esp + 0x18]
xor ecx, ecx
push edx
mov edi, ebp
mov word [ebp + esi*2], cx
mov dword [esp + 0x20], ebx
call fcn.1000ffe0
mov byte [esp + 0xafc], 1
push 0x3e8
call fcn.10002150
mov ecx, eax
add esp, 4
cmp ecx, ebx
je 0x10052676
lea eax, [esp + 0x18]
push eax
mov eax, 0x3e8
call fcn.10002ad0
cmp word [ebp], bx
je 0x10052917
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esp + 0x1c], ebx
jne 0x10052913
push edi
lea ecx, [esp + 0x8e8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x100528ee
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100528ee
xor edx, edx
mov eax, edi
mov word [esp + 0x64], dx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100526d0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x64]
call fcn.10007450
mov byte [esp + 0xafc], 2
mov eax, esi
push eax
lea ebx, [esp + 0x48]
call fcn.10052b80
mov byte [esp + 0xafc], 1
cmp dword [esp + 0x78], 8
jb 0x1005271b
mov ecx, dword [esp + 0x64]
push ecx
call fcn.100755e2
add esp, 4
xor esi, esi
push 0x206
lea ecx, [esp + 0x6e2]
xor edx, edx
xor eax, eax
push esi
mov ebx, 7
push ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], esi
mov word [esp + 0x70], dx
mov word [esp + 0x6e8], ax
call fcn.10079c60
add esp, 0xc
push edi
lea edx, [esp + 0x6e0]
push edx
call ebp
push str.360.
lea eax, [esp + 0x6e0]
push eax
call ebp
push 0x24c
lea ecx, [esp + 0x84]
push esi
push ecx
mov dword [esp + 0x88], esi
call fcn.10079c60
add esp, 0xc
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x6e0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x24], eax
cmp eax, esi
je 0x10052908
lea ecx, [ecx]
test byte [esp + 0x7c], 0x10
je 0x100528bf
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xa8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100527ec
test dx, dx
je 0x100527e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100527ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x100527c6
xor eax, eax
jmp 0x100527f1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100528bf
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2d6]
push edx
mov word [esp + 0x2d8], cx
call fcn.10079c60
add esp, 0xc
push edi
lea eax, [esp + 0x2d0]
push eax
call ebp
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x2d0]
push edx
call ebp
xor eax, eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2cc]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10052853
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2d0]
lea esi, [esp + 0x2c]
call fcn.10007450
mov byte [esp + 0xafc], 3
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.100523a0
add esp, 4
mov esi, eax
mov byte [esp + 0xafc], 1
cmp dword [esp + 0x40], 8
jb 0x100528a8
mov edx, dword [esp + 0x2c]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
test esi, esi
jne 0x100528d9
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100527b0
jmp 0x100528e1
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100528f3
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
jmp 0x1005290a
xor ebx, ebx
cmp word [edi], bx
jne 0x10052686
mov ebp, dword [esp + 0x5c]
push ebp
call fcn.10076993
add esp, 4
cmp dword [esp + 0x1c], ebx
je 0x10052955
mov byte [esp + 0xafc], bl
lea ecx, [esp + 0x18]
call fcn.100025b0
mov dword [esp + 0xafc], 0xffffffff
lea ecx, [esp + 0x44]
push ecx
call fcn.10052b00
mov eax, 1
jmp 0x10052ad4
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x50]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x100529ba
xor edi, edi
cmp esi, eax
jb 0x1005297f
call fcn.100759ec
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
lea ecx, [edi + edx]
push eax
call fcn.100523a0
add esp, 4
test eax, eax
jne 0x10052926
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x50]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add edi, 0x1c
cmp esi, eax
jb 0x1005297f
push 0x206
lea eax, [esp + 0x4da]
xor edx, edx
push ebx
push eax
mov word [esp + 0x4e0], dx
call fcn.10079c60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x4d8]
push ecx
push str._appdata_360Safe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10052aad
xor edx, edx
mov edi, 7
lea eax, [esp + 0x4d4]
mov word [esp + 0x2c], dx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
lea edx, [eax + 2]
jmp 0x10052a20
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10052a20
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4d8]
lea esi, [esp + 0x2c]
call fcn.10007450
mov byte [esp + 0xafc], 4
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.100523a0
add esp, 4
mov esi, eax
mov byte [esp + 0xafc], 1
cmp dword [esp + 0x40], 8
jb 0x10052a75
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
mov byte [esp + 0xafc], bl
lea ecx, [esp + 0x18]
call fcn.100025b0
mov dword [esp + 0xafc], 0xffffffff
lea eax, [esp + 0x44]
push eax
call fcn.10052b00
mov eax, esi
jmp 0x10052ad4
mov byte [esp + 0xafc], bl
lea ecx, [esp + 0x18]
call fcn.100025b0
mov dword [esp + 0xafc], 0xffffffff
lea ecx, [esp + 0x44]
push ecx
call fcn.10052b00
xor eax, eax
mov ecx, dword [esp + 0xaf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xad8]
xor ecx, esp
call fcn.100755ed
add esp, 0xaec
ret