Function at 0x405d08
Capabilities:
Enumerate files on windows

Disassembly:
push 0x53c
mov eax, 0x430568
call fcn.0042fed0
mov ebx, ecx
movzx eax, byte [ebx + 0x98]
lea ecx, [ebp - 0x548]
and dword [ebp - 0x4fc], 0
xor edi, edi
push eax
lea eax, [ebx + 0xc0]
mov dword [ebp - 0x4f8], edi
push eax
lea eax, [ebx + 0x48]
push eax
call fcn.0040d28a
xor ecx, ecx
xor esi, esi
mov dword [ebp - 4], ecx
inc esi
mov eax, dword [ebx + 0x58]
test eax, eax
js 0x4061d7
cmp eax, esi
jle 0x405e74
cmp eax, 2
jne 0x4061d7
mov esi, dword [ebx + 4]
jmp 0x405dfa
push ecx
push ecx
mov ecx, esi
call fcn.00406321
cmp eax, 0xffffffff
je 0x405d9a
inc edi
cmp dword [esi + 0x14], 8
jb 0x405d8b
mov eax, dword [esi]
jmp 0x405d8d
mov eax, esi
push eax
push 0x96a
call fcn.0040dcfd
jmp 0x405df5
cmp byte [ebx + 0x9a], 0
je 0x405dbc
cmp dword [esi + 0x14], 8
jb 0x405dad
mov eax, dword [esi]
jmp 0x405daf
mov eax, esi
push eax
push 0x961
call fcn.0040dd9f
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x548]
call fcn.0040d5a9
test al, al
jne 0x405dcf
inc edi
jmp 0x405df7
inc dword [ebp - 0x4fc]
cmp byte [ebx + 0x98], 0
jne 0x405df7
cmp dword [esi + 0x14], 8
jb 0x405de8
mov eax, dword [esi]
jmp 0x405dea
mov eax, esi
push eax
push 0x964
call fcn.0040dd9f
pop ecx
pop ecx
add esi, 0x1c
cmp esi, dword [ebx + 8]
jne 0x405d72
xor esi, esi
inc esi
cmp byte [ebx + 0x9a], 0
jne 0x405e24
cmp byte [ebx + 0x98], 0
jne 0x406219
test edi, edi
je 0x40621d
push esi
call fcn.00430469
push eax
push 0xa
call dword [sym.imp.msvcrt.dll_fputwc]
mov ecx, dword [ebp - 0x4fc]
add esp, 0xc
cmp byte [ebx + 0x9a], 0
jne 0x405e4d
test ecx, ecx
je 0x4061ff
mov eax, dword [ebx + 0x58]
test eax, eax
js 0x4061f5
cmp eax, esi
jle 0x4061e6
cmp eax, 2
jne 0x4061f5
push ecx
push 0x966
jmp 0x4061ec
mov dword [ebp - 0x50c], ecx
mov byte [ebp - 0x508], cl
mov esi, dword [ebx + 4]
jmp 0x4061b8
push ecx
push 0x4022e8
mov ecx, esi
call fcn.00406292
xor edi, edi
mov dword [ebp - 0x258], 7
xor ecx, ecx
mov dword [ebp - 0x25c], edi
mov word [ebp - 0x26c], cx
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x405ee8
inc eax
push eax
push ecx
lea eax, [ebp - 0x288]
mov ecx, esi
push eax
call fcn.0040625a
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 3
call fcn.004063a1
push edi
push 1
lea ecx, [ebp - 0x288]
call fcn.00406a5f
push 0x4022f0
lea ecx, [ebp - 0x50c]
call fcn.0040d236
push 0x250
lea eax, [ebp - 0x4f4]
mov dword [ebp - 0x500], edi
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x405f1d
mov eax, dword [esi]
jmp 0x405f1f
mov eax, esi
lea ecx, [ebp - 0x4f4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x510], edi
mov byte [ebp - 4], 4
cmp edi, 0xffffffff
jne 0x405f78
mov edi, dword [ebp - 0x4f8]
inc edi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4f8], edi
jb 0x405f55
mov eax, dword [esi]
jmp 0x405f57
mov eax, esi
push eax
push 0x3ec
call fcn.0040dcfd
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x26c]
call fcn.00406a5f
jmp 0x4061b5
mov esi, dword [ebp - 0x4f8]
test byte [ebp - 0x4f4], 0x10
jne 0x40614e
inc dword [ebp - 0x500]
lea eax, [ebp - 0x4c8]
push eax
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x234]
call fcn.00406408
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x405fbe
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x50c]
call fcn.0040d236
cmp byte [ebx + 0x9a], 0
je 0x406009
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x405ffc
lea eax, [ebp - 0x234]
push eax
push 0x960
call fcn.0040dd9f
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x23c], 7
xor eax, eax
mov dword [ebp - 0x240], ecx
mov word [ebp - 0x250], ax
mov byte [ebp - 4], 6
cmp dword [ebx + 0x58], ecx
jne 0x406065
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x548]
call fcn.0040d64e
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 7
call fcn.004063a1
lea ecx, [ebp - 0x288]
jmp 0x406095
push ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x548]
call fcn.0040d64e
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 8
call fcn.004063a1
lea ecx, [ebp - 0x2a4]
push 0
push 1
call fcn.00406a5f
cmp dword [ebp - 0x240], 0
jne 0x4060aa
inc esi
jmp 0x40611c
inc dword [ebp - 0x4fc]
cmp byte [ebx + 0x98], 0
jne 0x40611c
cmp dword [ebx + 0x58], 0
jne 0x4060e3
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4060d4
lea eax, [ebp - 0x234]
push eax
push 0x962
call fcn.0040dd9f
pop ecx
pop ecx
jmp 0x40611c
cmp dword [ebp - 0x23c], 8
mov ecx, dword [ebp - 0x250]
jae 0x4060f8
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40610d
lea eax, [ebp - 0x234]
push ecx
push eax
push 0x963
call fcn.0040dd9f
add esp, 0xc
push 0x4022f0
lea ecx, [ebp - 0x50c]
call fcn.0040d236
push 0
push 1
lea ecx, [ebp - 0x250]
call fcn.00406a5f
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.00406a5f
lea eax, [ebp - 0x4f4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405f7e
mov eax, dword [ebp - 0x500]
mov dword [ebp - 0x4f8], esi
mov esi, dword [ebp - 0x504]
test eax, eax
jne 0x406199
inc dword [ebp - 0x4f8]
cmp dword [esi + 0x14], 8
jb 0x40618a
mov eax, dword [esi]
jmp 0x40618c
mov eax, esi
push eax
push 0x3ec
call fcn.0040dcfd
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x26c]
call fcn.00406a5f
mov edi, dword [ebp - 0x4f8]
add esi, 0x1c
mov dword [ebp - 0x504], esi
cmp esi, dword [ebx + 8]
jne 0x405e88
lea ecx, [ebp - 0x50c]
call fcn.0040d26c
jmp 0x405e03
mov ecx, 0x3f0
call fcn.0040dc73
jmp 0x405e06
push ecx
push 0x965
call fcn.0040dd9f
pop ecx
pop ecx
jmp 0x4061ff
mov ecx, 0x3f0
call fcn.0040dc73
cmp byte [ebx + 0x9a], 0
jne 0x40620c
test edi, edi
je 0x40621d
push edi
push 0x7d1
call fcn.0040dd9f
pop ecx
pop ecx
test edi, edi
jne 0x40623e
cmp dword [ebp - 0x4fc], 0
je 0x40622a
xor esi, esi
jmp 0x40623e
mov ecx, 0x7d3
call fcn.0040dc73
mov ecx, 0x3f0
call fcn.0040dc73
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x548]
call fcn.0040d564
mov eax, esi
call fcn.0042fe70
ret