Function at 0x403cec
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov dword [ebp - 8], 0
push dword [ebp + 8]
call sub.KERNEL32.dll_GetFileAttributesW
test eax, 0x10
jne 0x403da8
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00402e48
test eax, eax
je 0x403d2b
cmp dword [ebp - 0x20], 0
jne 0x403d43
cmp dword [ebp - 0x24], 0
jne 0x403d43
push 0
push dword [ebp + 8]
push 0
push dword [0x40770c]
call fcn.00402230
mov esp, ebp
pop ebp
ret 4
cmp dword [0x407f4c], 0
jne 0x403d82
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.00402800
test eax, eax
jne 0x403d7c
push dword [ebp + 8]
call fcn.004034cc
test eax, eax
je 0x403d74
push 0x407f5c
call sub.KERNEL32.dll_InterlockedIncrement
push dword [ebp + 8]
call fcn.00401fe4
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.00403960
cmp dword [ebp - 8], 0
je 0x403da2
push dword [ebp - 8]
call fcn.00401fe4
mov esp, ebp
pop ebp
ret 4
push 2
push 0xfffffffffffffffe
call sub.KERNEL32.dll_SetThreadPriority
call fcn.00401478
cmp eax, 0x3c
jbe 0x403dc4
mov dword [ebp - 0xc], 2
jmp 0x403dcb
mov dword [ebp - 0xc], 0
push 0x3d0900
call fcn.00401fa8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0x18]
call fcn.00403bd4
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
call fcn.00401fe4
push dword [ebp - 0xc]
push 0
push 0
lea eax, [ebp - 0x274]
push eax
push 0
push dword [ebp - 0x14]
call sub.KERNEL32.dll_FindFirstFileExW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x403f48
push 0x2a
push dword [ebp - 0x14]
call sub.msvcrt.dll_wcsrchr
add esp, 8
mov word [eax], 0
lea ebx, [ebp - 0x248]
cmp dword [ebx], 0x2e
je 0x403f29
cmp dword [ebx], 0x2e002e
je 0x403f29
mov eax, dword [ebp - 0x274]
test ax, 4
jne 0x403f29
test ax, 0x10
je 0x403e88
push ebx
call fcn.00403c90
test eax, eax
jne 0x403e83
push ebx
push dword [ebp - 0x14]
call fcn.00403c3c
mov esi, eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*4]
mov dword [eax], esi
jmp 0x403f29
cmp dword [ebp - 0x258], 0
jne 0x403e9a
cmp dword [ebp - 0x254], 0
je 0x403eff
push ebx
push dword [ebp - 0x14]
call fcn.00403c3c
mov esi, eax
cmp dword [0x407f4c], 0
jne 0x403ee7
cmp dword [0x407f50], 0
je 0x403ecb
push dword [ebp - 0x258]
push dword [ebp - 0x254]
push esi
call fcn.00402800
jmp 0x403edf
push esi
call fcn.004034cc
test eax, eax
je 0x403edf
push 0x407f5c
call sub.KERNEL32.dll_InterlockedIncrement
push esi
call fcn.00401fe4
jmp 0x403efd
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x258]
push dword [ebp - 0x254]
push esi
call fcn.00403960
jmp 0x403f29
cmp dword [0x40770c], 0xffffffff
je 0x403f29
push ebx
push dword [ebp - 0x14]
call fcn.00403c3c
mov esi, eax
push 0
push esi
push 0
push dword [0x40770c]
call fcn.00402230
push esi
call fcn.00401fe4
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
jne 0x403e2f
push dword [ebp - 4]
call sub.KERNEL32.dll_FindClose
push dword [ebp - 0x14]
call fcn.00401fe4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x403f61
jmp 0x403f7a
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x18], ecx
dec dword [ebp - 0x10]
jmp 0x403de5
push dword [ebp - 0x1c]
call fcn.00401fe4
cmp dword [ebp - 8], 0
je 0x403f90
push dword [ebp - 8]
call fcn.00401fe4
mov esp, ebp
pop ebp
ret 4