Function at 0x100f3e82
Capabilities:
Enumerate files on windows
Get common file path
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a4
mov eax, dword [0x101dc354]
xor eax, esp
mov dword [esp + 0x4a0], eax
or dword [esp + 0x10], 0xffffffff
xor eax, eax
push ebx
push esi
push edi
push 0x250
mov ebx, eax
mov dword [esp + 0x1c], eax
mov edi, eax
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x2c], ecx
mov esi, edx
mov dword [esp + 0x14], ebx
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x28], eax
test esi, esi
jne 0x100f404f
push 0x208
push eax
lea eax, [esp + 0x2a8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [esp + 0x2a0]
push 0x104
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x100f3f4c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100f3f2b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100f3f32
mov esi, 0x80004005
push 0x10034110
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100f4335
lea eax, [esp + 0x2a0]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.100a7590
mov esi, eax
test esi, esi
jns 0x100f3f82
push 0x10034148
push 1
push esi
push 0x4000000
call fcn.100ab973
mov ebx, dword [esp + 0x1c]
add esp, 0x10
jmp 0x100f4327
lea ecx, [esp + 0xc]
call fcn.100b15f5
mov esi, eax
test esi, esi
jns 0x100f3f98
push 0x10034198
jmp 0x100f3f69
mov edx, 0x10030408
lea ecx, [esp + 0xc]
call fcn.100a8220
mov esi, eax
test esi, esi
jns 0x100f3fb3
push 0x100341e8
jmp 0x100f3f69
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.100a7590
mov esi, eax
test esi, esi
jns 0x100f3fe6
push 0x10034220
push 1
push esi
push 0x4000000
call fcn.100ab973
mov edi, dword [esp + 0x20]
add esp, 0x10
jmp 0x100f4319
mov edx, 0x10030478
lea ecx, [esp + 0x10]
call fcn.100a8220
mov esi, eax
test esi, esi
jns 0x100f4001
push 0x10034254
jmp 0x100f3fcd
push ebx
lea eax, [esp + 0x18]
push eax
call fcn.100a7590
mov esi, eax
test esi, esi
jns 0x100f4030
push 0x10034290
push 1
push esi
push 0x4000000
call fcn.100ab973
mov edi, dword [esp + 0x20]
add esp, 0x10
jmp 0x100f42f5
mov edx, 0x1002fe14
lea ecx, [esp + 0x14]
call fcn.100a8220
mov esi, eax
test esi, esi
jns 0x100f4133
push 0x100342d4
jmp 0x100f4017
push eax
push eax
push 0x10030288
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100f408c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100f407b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100f4082
mov esi, 0x80004005
push 0x10034310
jmp 0x100f3f37
add eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_malloc]
mov esi, eax
mov dword [esp + 0x2c], esi
pop ecx
test esi, esi
jne 0x100f40cc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x100f40b2
movzx eax, ax
or eax, 0x80070000
mov esi, eax
test eax, eax
js 0x100f40bf
mov esi, 0x80004005
mov eax, esi
push 0x10034360
push 1
push eax
jmp 0x100f3f3a
push dword [esp + 0xc]
xor eax, eax
push esi
push 0x10030288
mov word [esi], ax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x100f4104
push 0x100343b0
push 1
mov esi, 0x80004005
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100f42d5
push esi
lea eax, [esp + 0x14]
push eax
call fcn.100a7590
mov esi, eax
test esi, esi
jns 0x100f4133
push 0x10034404
push 1
push esi
push 0x4000000
call fcn.100ab973
mov edi, dword [esp + 0x20]
add esp, 0x10
jmp 0x100f42d5
mov edi, dword [esp + 0x10]
test edi, edi
je 0x100f416d
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, edi
call fcn.100f437d
push edi
test eax, eax
jns 0x100f4157
push 0x1002e134
push 1
push eax
jmp 0x100f4160
push 0x1003443c
push 0
push 0
push 0x4000000
call fcn.100ab973
add esp, 0x14
cmp dword [esp + 0x20], 0
jne 0x100f42d5
cmp dword [esp + 0x14], 0
je 0x100f42d5
test ebx, ebx
je 0x100f42d5
push ecx
push ecx
lea ecx, [esp + 0x38]
call fcn.100f36c1
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x100f42cc
lea eax, [esp + 0x7c]
push eax
push ebx
lea eax, [esp + 0x20]
push 0x10008194
push eax
call fcn.100a6b40
mov esi, eax
add esp, 0x10
test esi, esi
js 0x100f42b7
push dword [esp + 0x18]
lea ecx, [esp + 0x34]
call fcn.100b6428
mov esi, eax
test esi, esi
js 0x100f42b0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100f4202
add eax, 0xfffffffc
push eax
call fcn.100b84f9
and dword [esp + 0x1c], 0
pop ecx
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x100f41b2
push ecx
lea ecx, [esp + 0x34]
call fcn.100f35ff
mov ecx, dword [esp + 0x3c]
lea eax, [ecx - 1]
mov dword [esp + 0xc], eax
test eax, eax
js 0x100f42cc
add ecx, 0xfffffffb
mov dword [esp + 0x2c], ecx
cmp eax, ecx
jl 0x100f42cc
push eax
lea ecx, [esp + 0x34]
call fcn.100e0ab3
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
call fcn.100f437d
push dword [esp + 0xc]
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], eax
call fcn.100e0ab3
mov edx, dword [esp + 0x20]
test edx, edx
jns 0x100f427d
mov byte [esp + 0x10], 1
mov ecx, 0x1002e134
jmp 0x100f4288
xor edx, edx
mov ecx, 0x1003443c
mov byte [esp + 0x10], dl
push dword [eax]
push ecx
push dword [esp + 0x18]
push edx
push 0x4000000
call fcn.100ab973
mov eax, dword [esp + 0x20]
add esp, 0x14
mov ecx, dword [esp + 0x2c]
sub eax, 1
mov dword [esp + 0xc], eax
jns 0x100f4239
jmp 0x100f42cc
push 0x10034494
jmp 0x100f42bc
push 0x10034454
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
lea ecx, [esp + 0x30]
call fcn.100a58a2
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100f42e5
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
pop ecx
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x100f42f5
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100f4307
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100f4319
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
test edi, edi
je 0x100f4327
lea eax, [edi - 4]
push eax
call fcn.100b84f9
pop ecx
test ebx, ebx
je 0x100f4335
lea eax, [ebx - 4]
push eax
call fcn.100b84f9
pop ecx
mov ecx, dword [esp + 0x4ac]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b88c0
mov esp, ebp
pop ebp
ret