Function at 0x405fd0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454a2e
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x474238]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ac], ebx
push 0x20
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
call fcn.0041f484
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push 1
push eax
call fcn.004183a0
add esp, 0xc
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
jne 0x4060d8
push 0x20
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0041f484
mov ecx, eax
add esp, 4
mov dword [ecx], ecx
mov dword [ecx + 4], ecx
mov eax, dword [ebp - 0x2b0]
mov dword [ebx], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2ac], ecx
lea ecx, [ebp - 0x40]
mov dword [ebx + 4], eax
call fcn.00401dd0
mov ecx, dword [ebp - 0x2b0]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov edi, dword [ecx]
test edi, edi
je 0x4063f3
nop
mov esi, dword [edi]
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.00405f00
push 0x20
push edi
call fcn.0041f4b4
add esp, 0x10
mov edi, esi
test esi, esi
jne 0x4060b0
jmp 0x4063f3
push 4
push str..._
lea ecx, [ebp - 0x40]
call fcn.00402cf0
push 0x458a94
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401280
add esp, 0xc
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4061b8
push 0x20
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0041f484
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov ecx, dword [ebp - 0x2b0]
mov dword [ebx], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2ac], ecx
lea ecx, [ebp - 0x58]
mov dword [ebx + 4], eax
call fcn.00401dd0
lea ecx, [ebp - 0x40]
call fcn.00401dd0
mov ecx, dword [ebp - 0x2b0]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov edi, dword [ecx]
test edi, edi
je 0x4063f3
lea esp, [esp]
mov esi, dword [edi]
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.00405f00
push 0x20
push edi
call fcn.0041f4b4
add esp, 0x10
mov edi, esi
test esi, esi
jne 0x406190
jmp 0x4063f3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
mov ecx, 0x458a9c
lea eax, [ebp - 0x27c]
jmp 0x4061e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406206
test dx, dx
je 0x406202
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406206
add eax, 4
add ecx, 4
test dx, dx
jne 0x4061e0
xor eax, eax
jmp 0x40620b
sbb eax, eax
or eax, 1
test eax, eax
je 0x406351
mov eax, 0x458aa0
lea ecx, [ebp - 0x27c]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x406246
test dx, dx
je 0x406242
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x406246
add ecx, 4
add eax, 4
test dx, dx
jne 0x406220
xor eax, eax
jmp 0x40624b
sbb eax, eax
or eax, 1
test eax, eax
je 0x406351
test byte [ebp - 0x2a8], 0x10
je 0x406351
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402e70
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406280
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00402cf0
push 9
push str.wtoolex_
lea ecx, [ebp - 0x28]
call fcn.00402cf0
cmp dword [ebp - 0x2ac], 0x7ffffff
mov esi, dword [ebp - 0x2b0]
je 0x406421
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b8], eax
push 0x20
mov byte [ebp - 4], 4
mov dword [ebp - 0x2b4], 0
call fcn.0041f484
mov ecx, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
mov byte [ebp - 4], 3
mov dword [ebp - 0x2b4], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
xor eax, eax
inc dword [ebp - 0x2ac]
mov word [ebp - 0x28], ax
mov eax, dword [esi + 4]
mov dword [edx], esi
mov dword [edx + 4], eax
mov dword [esi + 4], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [eax], edx
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4061d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.0041f484
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov ecx, dword [ebp - 0x2b0]
mov dword [ebx], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2ac], ecx
lea ecx, [ebp - 0x58]
mov dword [ebx + 4], eax
call fcn.00401dd0
lea ecx, [ebp - 0x40]
call fcn.00401dd0
mov ecx, dword [ebp - 0x2b0]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov edi, dword [ecx]
test edi, edi
je 0x4063f3
nop
mov esi, dword [edi]
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.00405f00
push 0x20
push edi
call fcn.0041f4b4
add esp, 0x10
mov edi, esi
test esi, esi
jne 0x4063d0
push 0x20
push dword [ebp - 0x2b0]
call fcn.0041f4b4
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f721
mov esp, ebp
pop ebp
ret
push str.list_too_long
call fcn.0041d966
int3