Function at 0x4c7df0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5043b7
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x53f030]
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.004df101
lea ecx, [ebp - 0x618]
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7e64
sub ecx, edx
lea eax, [ebp - 0x618]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0xc]
call fcn.0043b750
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7e90
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0xc]
call fcn.00452320
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7eb5
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 8]
call fcn.0043b750
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c7ee0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 8]
call fcn.00452320
mov edi, dword [ebx + 0x14]
mov ecx, 0x507ffc
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c7f36
test dx, dx
je 0x4c7f32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c7f36
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c7f10
xor eax, eax
jmp 0x4c7f3b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4c81b8
mov eax, dword [ebx + 0x10]
test al, 0x1c
jne 0x4c7f5a
test eax, 0x100
je 0x4c81b8
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x870], esp
mov esi, esp
push eax
call fcn.0043a9d0
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.0043a9d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x874]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.004c4580
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 0x4c818d
lea eax, [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x878]
call fcn.0043a420
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 0x4c802a
cmp ecx, dword [esi - 0x10]
jne 0x4c802a
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4c8063
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x4c81d4
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.004d93d7
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 0x4c8097
cmp ecx, dword [esi]
jne 0x4c8097
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4c80d3
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x4c81d4
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.004d93d7
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 0x4c810e
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.004c69e0
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 0x4c8144
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 0x4c817f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x86c]
test esi, esi
je 0x4c7fc7
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 0x4c81b8
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.004d89fb
mov esp, ebp
pop ebp
ret
call fcn.0043b9d0
int3