Function at 0x404560
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aadd7
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4e42d0]
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
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40481c
mov edx, dword [0x4e3f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3f18
call eax
add eax, 0x10
mov dword [ebp - 0x26c], eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x278]
push edx
mov ebx, 0x4ba360
mov byte [ebp - 4], 2
xor esi, esi
call fcn.00404f20
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x274]
push edx
mov ebx, eax
mov byte [ebp - 4], 3
call fcn.00404e70
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40461d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x274]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x270], edi
lea ecx, [ecx]
cmp edi, 0xffffffff
je 0x4047c2
cmp esi, 0x12
je 0x4047c2
lea eax, [ebp - 0x23c]
lea edx, [eax + 2]
jmp 0x404660
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404660
sub eax, edx
lea ecx, [ebp - 0x23c]
sar eax, 1
push ecx
lea edx, [ebp - 0x26c]
push edx
mov ebx, eax
call fcn.00402a30
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x280]
push ecx
mov ebx, 0x4ba360
call fcn.00404f20
add esp, 8
lea edx, [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x27c]
push ecx
mov ebx, eax
mov byte [ebp - 4], 7
call fcn.00404e70
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov esi, dword [ebp - 0x26c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40471b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40470b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40470b
call fcn.004050f0
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4046fa
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x26c], edi
mov edi, dword [ebp - 0x270]
jmp 0x40471b
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00402a30
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404741
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x280]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x284], esp
mov esi, esp
call fcn.004050f0
add eax, 0x10
mov dword [esi], eax
call fcn.004044a0
add esp, 4
lea ecx, [ebp - 0x268]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x404640
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 5
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40481c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40483f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404865
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.0048f6cb
mov esp, ebp
pop ebp
ret