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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x491094]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov al, byte [edi]
test al, al
jne 0x40ee38
cmp dword [edi + 0x2a0], 0
je 0x40f049
test al, al
jne 0x40ee38
mov ecx, dword [edi + 0x2a0]
xor eax, eax
add ecx, dword [edi + 0x29c]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x40ebbf
mov edx, dword [edx]
test edx, edx
je 0x40ebbf
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x40ebd6
mov eax, dword [eax]
test eax, eax
je 0x40ebd6
mov eax, dword [eax]
test eax, eax
je 0x40ebd6
mov eax, dword [eax]
jmp 0x40ebd8
xor eax, eax
mov ecx, dword [eax + 8]
lea ebx, [edi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp ebx, eax
je 0x40ebfa
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00403fa0
mov eax, dword [edi + 0x2a0]
mov ecx, dword [edi + 0x29c]
dec eax
add ecx, eax
mov eax, dword [edi + 0x298]
dec eax
and ecx, eax
mov eax, dword [edi + 0x294]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40ec6d
mov ecx, dword [esi]
inc eax
cmp eax, 0x7fffffff
ja 0x40f0bb
add eax, eax
cmp eax, 0x1000
jb 0x40ec64
test cl, 0x1f
jne 0x40f0bb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40f0bb
sub ecx, eax
cmp ecx, 4
jb 0x40f0bb
cmp ecx, 0x23
ja 0x40f0bb
mov ecx, eax
push ecx
call fcn.00449974
add esp, 4
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40ec83
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
add dword [edi + 0x2a0], 0xffffffff
jne 0x40ec97
mov dword [edi + 0x29c], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x14]
xor eax, eax
mov dword [esp + 0x28], 7
push 0xffffffffffffffff
push eax
push ebx
mov word [esp + 0x20], ax
call fcn.00403fa0
sub esp, 8
cmp dword [edi + 0x288], 0
jne 0x40ecd4
mov eax, esp
mov dword [eax], 0x48cbe0
mov dword [eax + 4], 1
jmp 0x40ecf8
cmp dword [edi + 0x28c], 8
mov edx, esp
jb 0x40ece7
mov ecx, dword [edi + 0x278]
jmp 0x40eced
lea ecx, [edi + 0x278]
mov dword [edx], ecx
mov eax, dword [edi + 0x288]
mov dword [edx + 4], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.00408090
lea ecx, [esp + 0x14]
cmp ecx, eax
je 0x40ed18
push 0xffffffffffffffff
push 0
push eax
call fcn.00403fa0
mov eax, dword [esp + 0x58]
cmp eax, 8
jb 0x40ed30
inc eax
lea ecx, [esp + 0x44]
push eax
push dword [esp + 0x48]
call fcn.004055c0
cmp dword [0x493a5c], 0
jne 0x40ed99
push 0x4c
call fcn.00449941
add esp, 4
mov ecx, eax
call fcn.0041ba10
mov ebx, eax
mov edx, 0x493a5c
mov ecx, ebx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40ed99
test ebx, ebx
je 0x40ed99
mov eax, dword [ebx + 0x48]
lea esi, [ebx + 0x34]
cmp eax, 0x10
jb 0x40ed77
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00404930
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40ed8d
mov esi, dword [esi]
push ebx
mov byte [esi], 0
call fcn.00449974
add esp, 4
mov eax, dword [0x493a5c]
lea ebx, [edi + 4]
cmp dword [eax], 4
lea eax, [esp + 0x14]
jl 0x40edc6
cmp dword [esp + 0x28], 8
push 2
cmovae eax, dword [esp + 0x18]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40edd8
cmp dword [esp + 0x28], 8
push ebx
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi + 0x254], eax
mov eax, dword [esp + 0x28]
mov byte [edi], 1
cmp eax, 8
jb 0x40ee62
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, 0x7fffffff
ja 0x40f0bb
add eax, eax
cmp eax, 0x1000
jb 0x40ee2d
test cl, 0x1f
jne 0x40f0bb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40f0bb
sub ecx, eax
cmp ecx, 4
jb 0x40f0bb
cmp ecx, 0x23
ja 0x40f0bb
mov ecx, eax
push ecx
call fcn.00449974
add esp, 4
jmp 0x40ee62
lea ebx, [edi + 4]
push ebx
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ee62
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
cmp dword [edi + 0x254], 0xffffffff
jne 0x40ef18
xor eax, eax
mov byte [edi], 0
mov word [esp + 0x5c], ax
lea esi, [edi + 0x278]
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
cmp esi, eax
je 0x40eb80
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40eeae
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004055c0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40eec6
mov eax, dword [esi]
jmp 0x40eec8
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x70]
cmp ecx, 8
jae 0x40ef03
mov eax, dword [esp + 0x6c]
add eax, 1
je 0x40ef09
add eax, eax
push eax
lea eax, [esp + 0x60]
push eax
push esi
call fcn.0044ad80
mov ecx, dword [esp + 0x7c]
add esp, 0xc
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x40eb80
mov eax, dword [esp + 0x5c]
mov dword [esi], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x40eb80
sub esp, 8
lea esi, [edi + 0x30]
mov edx, esp
mov dword [edx], esi
test esi, esi
jne 0x40ef2a
xor ecx, ecx
jmp 0x40ef51
cmp word [esi], 0
jne 0x40ef34
xor ecx, ecx
jmp 0x40ef51
mov ecx, esi
lea eax, [ecx + 2]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ef40
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x34]
call fcn.004076d0
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.00415980
test al, al
jne 0x40f028
sub esp, 8
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x40ef9f
cmp word [esi], 0
jne 0x40ef86
xor esi, esi
jmp 0x40ef9f
lea edx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40ef90
sub esi, edx
sar esi, 1
lea eax, [esp + 0x4c]
mov dword [ecx + 4], esi
push eax
lea ecx, [edi + 0x258]
call fcn.00408090
lea ecx, [esp + 0x2c]
cmp ecx, eax
je 0x40efc4
push 0xffffffffffffffff
push 0
push eax
call fcn.00403fa0
mov eax, dword [esp + 0x58]
cmp eax, 8
jb 0x40efdc
inc eax
lea ecx, [esp + 0x44]
push eax
push dword [esp + 0x48]
call fcn.004055c0
test byte [ebx], 0x10
je 0x40f01f
cmp byte [edi + 0x270], 0
je 0x40f016
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x40f016
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x290]
call fcn.0040f210
test byte [edi + 0x274], 2
jmp 0x40f026
test byte [edi + 0x274], 1
jne 0x40f076
mov eax, dword [esp + 0x40]
cmp eax, 8
jb 0x40eb80
inc eax
lea ecx, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.004055c0
jmp 0x40eb80
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00449be1
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0xc]
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [esp + 0x34]
push eax
call fcn.00403fa0
lea ecx, [esp + 0x2c]
call fcn.00402360
mov ecx, dword [esp + 0x74]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449be1
mov esp, ebp
pop ebp
ret 4
call fcn.0044f561
int3