Function at 0x5108e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574857
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x5d6b80]
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, ecx
mov dword [ebp - 0x880], ebx
push 0x100
lea eax, [ebp - 0x418]
push eax
push 0x100
lea eax, [ebp - 0x618]
push eax
push 0x100
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 4]
call fcn.0052c54d
lea ecx, [ebp - 0x618]
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510954
sub ecx, edx
lea eax, [ebp - 0x618]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0xc]
call fcn.0045b6e0
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510980
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0xc]
call fcn.00472540
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5109a5
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 8]
call fcn.0045b6e0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5109d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 8]
call fcn.00472540
mov edi, dword [ebx + 0x14]
mov ecx, 0x57a900
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x510a26
test dx, dx
je 0x510a22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x510a26
add eax, 4
add ecx, 4
test dx, dx
jne 0x510a00
xor eax, eax
jmp 0x510a2b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x510ca8
mov eax, dword [ebx + 0x10]
test al, 0x1c
jne 0x510a4a
test eax, 0x100
je 0x510ca8
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x870], esp
mov esi, esp
push eax
call fcn.0045a950
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov esi, esp
sub eax, 0x10
mov dword [ebp - 4], 0
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x874]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.00516220
add esp, 0xc
lea eax, [ebp - 0x868]
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x86c], eax
or ebx, 0xffffffff
cmp eax, 0xffffffff
je 0x510c7d
lea eax, [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x878]
call fcn.0045a3a0
mov esi, dword [ebp - 0x878]
mov eax, dword [ebp - 0x854]
mov dword [ebp - 0x87c], eax
mov eax, dword [ebp - 0x850]
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x870], eax
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x510b1a
cmp ecx, dword [esi - 0x10]
jne 0x510b1a
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x510b53
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x510cc4
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
lea ecx, [edi + 0x10]
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea eax, [edx*2 + 2]
push eax
push ecx
call fcn.0052628b
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 0x890], eax
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x510b87
cmp ecx, dword [esi]
jne 0x510b87
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x510bc3
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x510cc4
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
lea ecx, [edi + 0x10]
mov edx, dword [esi + 4]
lea eax, [edx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [edx*2 + 2]
push eax
push ecx
call fcn.0052628b
add esp, 0x10
mov eax, dword [ebp - 0x87c]
add edi, 0x10
mov dword [ebp - 0x888], eax
mov ecx, ebx
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x884], eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x88c], edi
mov byte [ebp - 4], 2
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x510bfe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x880]
lea eax, [ebp - 0x88c]
push eax
mov byte [ebp - 4], 4
lea ecx, [ecx + 0x18]
call fcn.0050f4d0
lea edx, [edi - 0x10]
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x510c34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x868]
push eax
push dword [ebp - 0x86c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, dword [ebp - 0x878]
neg eax
mov byte [ebp - 4], 1
sbb esi, esi
add edx, 0xfffffff0
inc esi
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x510c6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x86c]
test esi, esi
je 0x510ab7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x874]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x510ca8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00525878
mov esp, ebp
pop ebp
ret
call fcn.00494170
int3