Function at 0x405b70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416a76
mov eax, dword fs:[0]
push eax
sub esp, 0xaa0
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x7fe
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x812]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x814], ax
call fcn.0040e850
add esp, 0xc
push esi
lea edx, [ebp - 0x814]
push 0x400
push edx
call fcn.0040a937
lea eax, [ebp - 0x814]
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405be0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x816], 0x5c
je 0x405c13
push 0x41bcb8
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.00409b87
add esp, 0xc
push 0x41bd44
lea ecx, [ebp - 0x814]
push 0x400
push ecx
call fcn.00409b87
add esp, 0xc
push 0x24c
lea edx, [ebp - 0xa60]
push edi
push edx
mov dword [ebp - 0xa64], edi
call fcn.0040e850
add esp, 0xc
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xaa0], eax
cmp eax, 0xffffffff
jne 0x405cc5
xor eax, eax
mov dword [ebp - 0xa9c], eax
mov dword [ebp - 0xa98], eax
mov dword [ebp - 0xa94], eax
mov dword [ebp - 0xa90], eax
mov dword [ebp - 0xa8c], eax
mov dword [ebp - 0xa88], eax
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa80], eax
mov dword [ebp - 0xa7c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 0xa80], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xa9c]
push edx
push eax
mov eax, 0x24
call fcn.00406860
jmp 0x40606b
mov dword [ebp - 0xa6c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xaa4], edi
mov dword [ebp - 0xaa8], edi
mov dword [ebp - 0xaac], edi
mov byte [ebp - 4], 1
push 0x5000
xor ebx, ebx
mov dword [ebp - 0xa70], edi
mov dword [ebp - 0xa74], edi
call fcn.00409507
add esp, 4
mov esi, eax
mov dword [ebp - 0xa74], esi
cmp eax, edi
je 0x405d30
push 0x5000
push edi
push eax
mov dword [ebp - 0xa70], 0x5000
call fcn.0040e850
add esp, 0xc
jmp 0x405d30
cmp word [ebp - 0xa38], 0x2e
je 0x405ed3
lea eax, [ebp - 0xa38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405d47
sub eax, edx
sar eax, 1
lea edi, [ebx + eax*2 + 0x26]
test esi, esi
jne 0x405d71
lea esi, [ebp - 0xa74]
call fcn.00401760
mov esi, dword [ebp - 0xa74]
jmp 0x405dce
cmp edi, dword [ebp - 0xa70]
jle 0x405dce
push edi
call fcn.00409507
add esp, 4
mov dword [ebp - 0xa68], eax
test eax, eax
je 0x405ef9
push edi
push 0
push eax
call fcn.0040e850
mov ecx, dword [ebp - 0xa70]
mov edx, dword [ebp - 0xa68]
add esp, 0xc
push ecx
push esi
push edx
call fcn.0040e8d0
add esp, 0xc
push esi
call fcn.00409587
mov esi, dword [ebp - 0xa68]
add esp, 4
mov dword [ebp - 0xa74], esi
mov dword [ebp - 0xa70], edi
test esi, esi
je 0x405f10
mov eax, dword [ebp - 0xa64]
mov edx, dword [ebp - 0xa48]
mov ecx, dword [ebp - 0xa44]
mov dword [ebp - 0xa68], eax
xor eax, eax
mov dword [esi + ebx + 4], eax
mov dword [esi + ebx + 8], eax
mov dword [esi + ebx + 0xc], eax
mov dword [esi + ebx + 0x10], eax
mov dword [esi + ebx + 0x14], eax
mov dword [esi + ebx + 0x18], eax
mov dword [esi + ebx + 0x1c], eax
mov dword [esi + ebx + 0x20], eax
mov eax, dword [ebp - 0xa68]
mov dword [esi + ebx], eax
mov eax, dword [ebp - 0xa60]
mov dword [esi + ebx + 4], eax
mov eax, dword [ebp - 0xa5c]
mov dword [esi + ebx + 8], eax
mov eax, dword [ebp - 0xa50]
mov dword [esi + ebx + 0xc], eax
mov eax, dword [ebp - 0xa4c]
mov dword [esi + ebx + 0x10], eax
lea eax, [ebp - 0xa38]
mov dword [esi + ebx + 0x14], edx
mov dword [esi + ebx + 0x18], ecx
mov dword [esi + ebx + 0x1c], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405e60
sub eax, edx
sar eax, 1
inc eax
lea ecx, [eax + eax]
push ecx
lea edx, [ebp - 0xa38]
mov dword [esi + ebx + 0x20], eax
push edx
lea eax, [esi + ebx + 0x24]
push eax
call fcn.0040e8d0
mov ebx, edi
add esp, 0xc
cmp ebx, 0x5000
jb 0x405ed3
mov edi, dword [ebp + 8]
push 0
push esi
push edi
mov eax, ebx
call fcn.00406860
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xa78]
push ecx
lea edx, [ebp - 0xa68]
push edx
lea eax, [ebp - 0xaac]
push eax
push edi
call fcn.00406640
test eax, eax
jne 0x405ed6
cmp dword [ebp - 0xa78], ebx
je 0x405ed6
jmp 0x406028
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0xaa0]
lea ecx, [ebp - 0xa64]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x405f72
xor edi, edi
jmp 0x405d30
push esi
call fcn.00409587
add esp, 4
xor esi, esi
mov dword [ebp - 0xa70], esi
mov dword [ebp - 0xa74], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa80], eax
push ecx
lea eax, [ebp - 0xa9c]
mov dword [ebp - 0xa9c], ecx
mov dword [ebp - 0xa98], ecx
mov dword [ebp - 0xa94], ecx
mov dword [ebp - 0xa90], ecx
mov dword [ebp - 0xa8c], ecx
mov dword [ebp - 0xa88], ecx
mov dword [ebp - 0xa84], ecx
mov dword [ebp - 0xa7c], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, 0x24
call fcn.00406860
mov edi, dword [ebp + 8]
jmp 0x406028
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 0xa78], eax
lea eax, [ebx + 0x24]
lea ecx, [ebp - 0xa74]
mov dword [ebp - 0xa68], eax
call fcn.00401850
test eax, eax
jne 0x405ff1
call esi
xor ecx, ecx
push ecx
lea edx, [ebp - 0xa9c]
mov dword [ebp - 0xa80], ecx
push edx
mov dword [ebp - 0xa80], eax
push edi
lea eax, [ecx + 0x24]
mov dword [ebp - 0xa9c], ecx
mov dword [ebp - 0xa98], ecx
mov dword [ebp - 0xa94], ecx
mov dword [ebp - 0xa90], ecx
mov dword [ebp - 0xa8c], ecx
mov dword [ebp - 0xa88], ecx
mov dword [ebp - 0xa84], ecx
mov dword [ebp - 0xa7c], ecx
call fcn.00406860
mov esi, dword [ebp - 0xa74]
jmp 0x406028
mov esi, dword [ebp - 0xa74]
xor eax, eax
mov dword [esi + ebx], eax
mov dword [esi + ebx + 4], eax
mov dword [esi + ebx + 8], eax
mov dword [esi + ebx + 0xc], eax
mov dword [esi + ebx + 0x10], eax
mov dword [esi + ebx + 0x14], eax
mov dword [esi + ebx + 0x18], eax
mov dword [esi + ebx + 0x20], eax
mov eax, dword [ebp - 0xa78]
mov dword [esi + ebx + 0x1c], eax
mov ebx, dword [ebp - 0xa68]
push 0
push esi
push edi
mov eax, ebx
call fcn.00406860
mov ecx, dword [ebp - 0xaa0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xaac]
test eax, eax
je 0x406057
push eax
call fcn.00409587
add esp, 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40606b
push esi
call fcn.00409587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret