Function at 0x45c480
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509c17
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x5522c0]
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 0x45c73c
mov edx, dword [0x551f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x551f18
call eax
add eax, 0x10
mov dword [ebp - 0x26c], eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x278]
push edx
mov ebx, 0x51d5c8
mov byte [ebp - 4], 2
xor esi, esi
call fcn.0045ce40
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x274]
push edx
mov ebx, eax
mov byte [ebp - 4], 3
call fcn.0045cd90
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 0x45c53d
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 0x45c6e2
cmp esi, 0x12
je 0x45c6e2
lea eax, [ebp - 0x23c]
lea edx, [eax + 2]
jmp 0x45c580
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45c580
sub eax, edx
lea ecx, [ebp - 0x23c]
sar eax, 1
push ecx
lea edx, [ebp - 0x26c]
push edx
mov ebx, eax
call fcn.004594e0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x280]
push ecx
mov ebx, 0x51d5c8
call fcn.0045ce40
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.0045cd90
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 0x45c63b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x45c62b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45c62b
call fcn.0045d010
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x45c61a
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 0x45c63b
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x26c]
push ecx
call fcn.004594e0
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 0x45c661
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 0x45c687
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.0045d010
add eax, 0x10
mov dword [esi], eax
call fcn.0045c3c0
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 0x45c560
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 0x45c716
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 0x45c73c
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 0x45c75f
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 0x45c785
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.004e4be0
mov esp, ebp
pop ebp
ret