Function at 0x460510
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b39b
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x5caea4]
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
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.0044baa0
push 1
push 0x5bed60
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004517a0
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x28]
push eax
call fcn.004517a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4605f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push eax
cmovae ecx, dword [ebp + 8]
push ecx
push str.____FindFirstFile_fails_in_directory__s._Code__lu.
call fcn.0045a000
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x460730
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x460726
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4607dc
jmp 0x460726
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push 0x5be168
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x460704
push 0x5c09b0
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x460704
mov eax, dword [ebp - 0x290]
test eax, 0x400
jne 0x460704
test al, 0x10
je 0x460704
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [ebp - 0x298], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp - 0x264]
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460670
sub eax, edi
mov ecx, edx
sar eax, 1
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0044a1c0
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0044baa0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0045e250
add esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0044baa0
call fcn.00460250
mov byte [ebp - 4], 2
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x460704
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4606fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4607dc
push edx
push ecx
call fcn.00518d68
add esp, 8
lea eax, [ebp - 0x290]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x460600
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4605bb
push edx
push ecx
call fcn.00518d68
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
cmp edx, 8
jb 0x460776
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46076c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4607dc
push edx
push ecx
call fcn.00518d68
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x4607c0
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4607b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4607dc
push edx
push ecx
call fcn.00518d68
add esp, 8
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.00518b27
mov esp, ebp
pop ebp
ret
call fcn.005343f1
int3