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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4f91a4]
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 0x413ffd
cmp dword [edi + 0x2a0], 0
je 0x41421a
test al, al
jne 0x413ffd
mov ecx, dword [edi + 0x2a0]
xor eax, eax
add ecx, dword [edi + 0x29c]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x413d7f
mov edx, dword [edx]
test edx, edx
je 0x413d7f
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x413d96
mov eax, dword [eax]
test eax, eax
je 0x413d96
mov eax, dword [eax]
test eax, eax
je 0x413d96
mov eax, dword [eax]
jmp 0x413d98
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 0x413dba
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00407170
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 0x413e2d
mov ecx, dword [esi]
inc eax
cmp eax, 0x7fffffff
ja 0x414289
add eax, eax
cmp eax, 0x1000
jb 0x413e24
test cl, 0x1f
jne 0x414289
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x414289
sub ecx, eax
cmp ecx, 4
jb 0x414289
cmp ecx, 0x23
ja 0x414289
mov ecx, eax
push ecx
call fcn.0046101e
add esp, 4
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x413e43
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
add dword [edi + 0x2a0], 0xffffffff
jne 0x413e57
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.00407170
sub esp, 8
cmp dword [edi + 0x288], 0
jne 0x413e94
mov eax, esp
mov dword [eax], 0x4eeb40
mov dword [eax + 4], 1
jmp 0x413eb8
cmp dword [edi + 0x28c], 8
mov edx, esp
jb 0x413ea7
mov ecx, dword [edi + 0x278]
jmp 0x413ead
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.0040a6c0
mov esi, eax
lea eax, [esp + 0x14]
cmp eax, esi
je 0x413f05
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x413ee8
inc eax
lea ecx, [esp + 0x14]
push eax
push dword [esp + 0x18]
call fcn.00409180
xor eax, eax
mov dword [esp + 0x28], 7
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
call fcn.004097b0
mov eax, dword [esp + 0x58]
cmp eax, 8
jb 0x413f1d
inc eax
lea ecx, [esp + 0x44]
push eax
push dword [esp + 0x48]
call fcn.00409180
cmp dword [0x52847c], 0
jne 0x413f5e
push 0x68
call fcn.00461023
add esp, 4
mov ecx, eax
call fcn.00418b10
mov esi, eax
mov edx, 0x52847c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x413f5e
test esi, esi
je 0x413f5e
mov ecx, esi
call fcn.00418f10
push esi
call fcn.0046101e
add esp, 4
mov eax, dword [0x52847c]
lea ebx, [edi + 4]
cmp dword [eax], 4
lea eax, [esp + 0x14]
jl 0x413f8b
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 0x413f9d
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 0x414027
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, 0x7fffffff
ja 0x414289
add eax, eax
cmp eax, 0x1000
jb 0x413ff2
test cl, 0x1f
jne 0x414289
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x414289
sub ecx, eax
cmp ecx, 4
jb 0x414289
cmp ecx, 0x23
ja 0x414289
mov ecx, eax
push ecx
call fcn.0046101e
add esp, 4
jmp 0x414027
lea ebx, [edi + 4]
push ebx
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414027
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
cmp dword [edi + 0x254], 0xffffffff
jne 0x4140bf
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 0x413d40
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x414073
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00409180
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41408b
mov eax, dword [esi]
jmp 0x41408d
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call fcn.004097b0
mov eax, dword [esp + 0x70]
cmp eax, 8
jb 0x413d40
inc eax
lea ecx, [esp + 0x5c]
push eax
push dword [esp + 0x60]
call fcn.00409180
jmp 0x413d40
sub esp, 8
lea esi, [edi + 0x30]
mov edx, esp
mov dword [edx], esi
test esi, esi
jne 0x4140d1
xor ecx, ecx
jmp 0x4140f5
cmp word [esi], 0
jne 0x4140db
xor ecx, ecx
jmp 0x4140f5
mov ecx, esi
lea eax, [ecx + 2]
mov dword [esp + 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4140e4
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x34]
call fcn.00409f30
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0041b530
test al, al
jne 0x4141f9
sub esp, 8
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x41413f
cmp word [esi], 0
jne 0x41412a
xor esi, esi
jmp 0x41413f
lea edx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x414130
sub esi, edx
sar esi, 1
lea eax, [esp + 0x4c]
mov dword [ecx + 4], esi
push eax
lea ecx, [edi + 0x258]
call fcn.0040a6c0
mov esi, eax
lea eax, [esp + 0x2c]
cmp eax, esi
je 0x414195
mov eax, dword [esp + 0x40]
cmp eax, 8
jb 0x414174
inc eax
lea ecx, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.00409180
xor eax, eax
mov dword [esp + 0x40], 7
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.004097b0
mov eax, dword [esp + 0x58]
cmp eax, 8
jb 0x4141ad
inc eax
lea ecx, [esp + 0x44]
push eax
push dword [esp + 0x48]
call fcn.00409180
test byte [ebx], 0x10
je 0x4141f0
cmp byte [edi + 0x270], 0
je 0x4141e7
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 0x4141e7
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x290]
call fcn.004143d0
test byte [edi + 0x274], 2
jmp 0x4141f7
test byte [edi + 0x274], 1
jne 0x414247
mov eax, dword [esp + 0x40]
cmp eax, 8
jb 0x413d40
inc eax
lea ecx, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.00409180
jmp 0x413d40
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.0046100d
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0xc]
xor eax, eax
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [esp + 0x2c]
push eax
call fcn.004097b0
lea ecx, [esp + 0x2c]
call fcn.004065a0
mov ecx, dword [esp + 0x74]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 4
call fcn.004abee1
int3