Function at 0x404b31
Capabilities:
Enumerate files on windows
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcf4
mov eax, dword [0x40e050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x418], ax
xor esi, esi
lea eax, [ebp - 0x416]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0xcd0], ebx
call fcn.00409ce0
xor eax, eax
push edi
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push esi
push eax
call fcn.00409ce0
xor eax, eax
push edi
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push esi
push eax
call fcn.00409ce0
xor eax, eax
push edi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00409ce0
add esp, 0x30
xor eax, eax
push 9
pop ecx
lea edi, [ebp - 0xcf4]
rep stosd dword es:[edi], eax
or edi, 0xffffffff
test ebx, ebx
jne 0x404be0
mov esi, 0x80070057
push 0x403788
push esi
call fcn.004055e9
pop ecx
pop ecx
jmp 0x404db2
lea eax, [ebp - 0xcf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0xcf4]
test eax, eax
je 0x404c05
cmp eax, 6
je 0x404c02
cmp eax, 9
jne 0x404c05
xor esi, esi
inc esi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x404c38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404c31
movzx esi, si
or esi, 0x80070000
push 0x4037e8
jmp 0x404bd3
mov eax, 0x40383c
cmp esi, 1
je 0x404c47
mov eax, 0x402a90
push eax
lea eax, [ebp - 0x620]
push eax
push 0x403848
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00403fd5
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x404c74
push 0x4038b0
jmp 0x404bd3
lea eax, [ebp - 0x210]
push eax
push 0x4038ec
lea eax, [ebp - 0x828]
push ebx
push eax
call fcn.00403fd5
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x404ca0
push 0x403900
jmp 0x404bd3
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0xccc], ebx
cmp ebx, 0xffffffff
jne 0x404cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404db2
movzx esi, si
or esi, 0x80070000
jmp 0x404db2
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
test dword [ebp - 0xa78], 0x10
je 0x404d75
cmp edi, 0xffffffff
je 0x404d00
push edi
call ebx
or edi, 0xffffffff
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x403920
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.00403fd5
mov esi, eax
add esp, 0x14
test esi, esi
js 0x404e10
lea eax, [ebp - 0xcc8]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404d69
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x403940
call fcn.004055c0
add esp, 0xc
jmp 0x404d75
test dword [ebp - 0xcc8], 0x50
je 0x404dc3
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xccc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404ce5
mov esi, 0x80070002
push 0x4039ec
push esi
call fcn.004055e9
pop ecx
pop ecx
push dword [ebp - 0xccc]
call ebx
cmp edi, 0xffffffff
je 0x404db2
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a7b
leave
ret
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x4039a0
call fcn.004055c0
mov ecx, dword [ebp - 0xcd0]
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call fcn.00403f59
test eax, eax
je 0x404da2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x404e09
movzx esi, si
or esi, 0x80070000
push 0x4038b0
jmp 0x404d9a
push 0x403900
jmp 0x404d9a