Function at 0x1031dd1
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x41c], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x208
push edi
push eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x20c]
mov ebx, ecx
mov esi, 0x104
push eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x420], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x103201a
cmp eax, esi
jae 0x103201a
movzx eax, word [ebp - 0x414]
push eax
add ebx, 0x24
call sub.msvcrt.dll_tolower
movzx ecx, word [ebx]
push ecx
mov dword [ebp - 0x418], eax
call sub.msvcrt.dll_tolower
pop ecx
pop ecx
mov ecx, dword [ebp - 0x418]
cmp ecx, eax
jne 0x1032071
push 0x1006a18
call fcn.01010bc5
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x1031eae
mov eax, dword [section..data]
cmp eax, section..data
je 0x103203e
test byte [eax + 0x1c], 1
je 0x103203e
push 0x100686c
push 0x1d
jmp 0x1032033
push 0x1006a04
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1031eea
mov eax, dword [section..data]
cmp eax, section..data
je 0x103203e
test byte [eax + 0x1c], 1
je 0x103203e
push 0x100686c
push 0x1e
jmp 0x1032033
mov ebx, dword [ebp - 0x428]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
lea eax, [ebx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileNameW]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x103203e
cmp eax, 0xffffffff
je 0x103203e
lea eax, [ebp - 0x20c]
push eax
call fcn.010108ed
test eax, eax
je 0x1031fae
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [ebp - 0x42c]
test eax, eax
je 0x1031fd2
mov ecx, ebx
call fcn.0103133c
test eax, eax
jne 0x1031fd2
mov ax, word [ebx + 0x24]
push 0x3a
mov word [ebx + 0x22c], ax
pop eax
mov word [ebx + 0x22e], ax
lea eax, [ebp - 0x20c]
push eax
push 0x102
add ebx, 0x230
push ebx
call fcn.0100a010
test eax, eax
jge 0x103200e
mov eax, dword [section..data]
cmp eax, section..data
je 0x103203e
test byte [eax + 0x1c], 1
je 0x103203e
push 0x100686c
push 0x20
jmp 0x1032033
mov eax, dword [section..data]
cmp eax, section..data
je 0x1031fd2
test byte [eax + 0x1c], 1
je 0x1031fd2
push 0x100686c
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], esi
call dword [sym.imp.KERNEL32.dll_FindNextFileNameW]
test eax, eax
jne 0x1031f21
jmp 0x103203e
mov dword [ebp - 0x424], 1
jmp 0x103203e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032071
test byte [eax + 0x1c], 1
je 0x1032071
push 0x100686c
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
cmp dword [ebp - 0x418], 0
je 0x1032053
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x41c], 0
je 0x1032071
cmp dword [ebp - 0x41c], 0xffffffff
je 0x1032071
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x424]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret