Function at 0x403cfc
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 0x403db8
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00402e58
test eax, eax
je 0x403d3b
cmp dword [ebp - 0x20], 0
jne 0x403d53
cmp dword [ebp - 0x24], 0
jne 0x403d53
push 0
push dword [ebp + 8]
push 0
push dword [0x40770c]
call fcn.00402240
mov esp, ebp
pop ebp
ret 4
cmp dword [0x407f4c], 0
jne 0x403d92
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.00402810
test eax, eax
jne 0x403d8c
push dword [ebp + 8]
call fcn.004034dc
test eax, eax
je 0x403d84
push 0x407f5c
call sub.KERNEL32.dll_InterlockedIncrement
push dword [ebp + 8]
call fcn.00401ff4
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.00403970
cmp dword [ebp - 8], 0
je 0x403db2
push dword [ebp - 8]
call fcn.00401ff4
mov esp, ebp
pop ebp
ret 4
push 2
push 0xfffffffffffffffe
call sub.KERNEL32.dll_SetThreadPriority
call fcn.00401488
cmp eax, 0x3c
jbe 0x403dd4
mov dword [ebp - 0xc], 2
jmp 0x403ddb
mov dword [ebp - 0xc], 0
push 0x3d0900
call fcn.00401fb8
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.00403be4
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
call fcn.00401ff4
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 0x403f58
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 0x403f39
cmp dword [ebx], 0x2e002e
je 0x403f39
mov eax, dword [ebp - 0x274]
test ax, 4
jne 0x403f39
test ax, 0x10
je 0x403e98
push ebx
call fcn.00403ca0
test eax, eax
jne 0x403e93
push ebx
push dword [ebp - 0x14]
call fcn.00403c4c
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 0x403f39
cmp dword [ebp - 0x258], 0
jne 0x403eaa
cmp dword [ebp - 0x254], 0
je 0x403f0f
push ebx
push dword [ebp - 0x14]
call fcn.00403c4c
mov esi, eax
cmp dword [0x407f4c], 0
jne 0x403ef7
cmp dword [0x407f50], 0
je 0x403edb
push dword [ebp - 0x258]
push dword [ebp - 0x254]
push esi
call fcn.00402810
jmp 0x403eef
push esi
call fcn.004034dc
test eax, eax
je 0x403eef
push 0x407f5c
call sub.KERNEL32.dll_InterlockedIncrement
push esi
call fcn.00401ff4
jmp 0x403f0d
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x258]
push dword [ebp - 0x254]
push esi
call fcn.00403970
jmp 0x403f39
cmp dword [0x40770c], 0xffffffff
je 0x403f39
push ebx
push dword [ebp - 0x14]
call fcn.00403c4c
mov esi, eax
push 0
push esi
push 0
push dword [0x40770c]
call fcn.00402240
push esi
call fcn.00401ff4
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
jne 0x403e3f
push dword [ebp - 4]
call sub.KERNEL32.dll_FindClose
push dword [ebp - 0x14]
call fcn.00401ff4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x403f71
jmp 0x403f8a
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 0x403df5
push dword [ebp - 0x1c]
call fcn.00401ff4
cmp dword [ebp - 8], 0
je 0x403fa0
push dword [ebp - 8]
call fcn.00401ff4
mov esp, ebp
pop ebp
ret 4