Function at 0x4c5f20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550da5
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x8870bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x274], esi
mov eax, dword [ebp + 8]
xor cl, cl
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x288], eax
xor eax, eax
mov dword [ebp - 0x268], eax
cmp dword [esi + 8], 0xffffffff
mov dword [ebp - 0x280], eax
jne 0x4c6204
cmp byte [esi + 0x10], al
jne 0x4c6204
lea eax, [ebp - 0x304]
mov byte [ebp - 0x261], 1
push eax
call fcn.00460630
add esp, 4
mov ecx, dword [eax]
cmp ecx, dword [0x886ae4]
jne 0x4c5fbd
push 0x886ae4
push eax
call fcn.004606e0
add esp, 8
test eax, eax
js 0x4c5fbd
mov ecx, 1
jmp 0x4c5fbf
xor ecx, ecx
lea eax, [ecx + ecx]
push eax
xor eax, eax
cmp byte [esi + 0x18], al
push 0
setne al
push eax
lea eax, [ebp - 0x260]
push eax
push ecx
mov ecx, esi
call fcn.0040bc30
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4c61fe
push 1
push str._UNC_
push 8
mov ecx, esi
call fcn.0040ab00
test al, al
je 0x4c61fe
push 1
push 1
push ecx
mov eax, esp
mov ecx, 0x5c
mov word [eax], cx
lea eax, [ebp - 0x270]
push eax
mov ecx, esi
call fcn.0040a9e0
mov eax, dword [ebp - 0x270]
mov dword [ebp - 4], 0
cmp dword [eax + 4], 4
jne 0x4c6131
mov ecx, dword [eax + 0xc]
lea edx, [eax + 0x18]
add edx, ecx
mov dword [ebp - 0x29c], 2
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x298], 0x72a854
mov eax, dword [ecx + eax + 0x20]
lea ecx, [ebp - 0x28c]
add eax, 2
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00403110
mov eax, dword [ebp - 0x28c]
mov esi, dword [ebp - 0x29c]
mov ecx, dword [eax + 0xc]
add ecx, eax
mov eax, dword [ebp - 0x298]
push ecx
push esi
push eax
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x290], eax
call fcn.004040f0
lea eax, [esi + esi]
add esp, 0xc
mov esi, dword [ebp - 0x278]
add esi, eax
mov eax, dword [ebp - 0x284]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x278], ecx
test edx, edx
jne 0x4c60d2
mov eax, dword [0x6f6bac]
lea ecx, [eax + 0x6f6ba0]
jmp 0x4c60df
mov edx, dword [edx]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ecx*2]
add ecx, edx
mov eax, dword [ebp - 0x278]
add eax, eax
push eax
push ecx
push esi
call fcn.005229c0
mov esi, dword [ebp - 0x274]
mov eax, 3
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], 2
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.0045aba0
add esp, 0x14
mov byte [ebp - 0x269], 1
test al, al
mov eax, dword [ebp - 0x270]
jne 0x4c6138
mov byte [ebp - 0x269], 0
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 4], 0
test cl, 1
je 0x4c6164
and ecx, 0xfffffffe
mov dword [ebp - 0x268], ecx
lea ecx, [ebp - 0x28c]
call fcn.004011e0
mov eax, dword [ebp - 0x270]
cmp byte [ebp - 0x269], 0
je 0x4c61b7
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + 0xc]
cmp ecx, dword [edx + 8]
jne 0x4c61b3
mov eax, dword [eax]
test eax, eax
je 0x4c619a
cmp eax, 0xffffffff
je 0x4c61ac
mov eax, dword [ebp - 0x270]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c61ac
push 4
push 0xc
push dword [ebp - 0x270]
call fcn.004016c0
add esp, 0xc
xor al, al
jmp 0x4c6647
mov byte [esi + 0x10], 1
mov eax, dword [eax]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4c61e0
cmp eax, 0xffffffff
je 0x4c61f2
mov eax, dword [ebp - 0x270]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c61f2
push 4
push 0xc
push dword [ebp - 0x270]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x280], eax
mov cl, byte [ebp - 0x261]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x4c6212
cmp byte [esi + 0x10], 0
je 0x4c61ac
test cl, cl
jne 0x4c6249
cmp byte [esi + 0x10], cl
je 0x4c6233
inc dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp dword [esi + 0x14], ecx
jl 0x4c6249
xor al, al
jmp 0x4c6647
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4c61ac
cmp byte [esi + 0x10], 0
je 0x4c633f
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
add eax, 4
add eax, dword [esi + 0x14]
lea edx, [ecx + eax*4]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 4], 3
mov eax, dword [ecx]
test eax, eax
je 0x4c6286
cmp eax, 0xffffffff
je 0x4c6286
mov eax, 1
lock xadd dword [ecx], eax
or dword [ebp - 0x268], 8
lea ecx, [ebp - 0x27c]
push edx
call fcn.00403e30
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00453c70
mov esi, eax
mov eax, dword [ebp - 0x288]
mov edx, dword [eax]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [esi], edx
mov edx, eax
mov eax, dword [esi + 4]
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x2e4]
movzx eax, word [esi + 8]
mov word [edx + 8], ax
movzx eax, word [esi + 0xa]
mov word [edx + 0xa], ax
movzx eax, word [esi + 0xc]
mov word [edx + 0xc], ax
call fcn.00411820
mov eax, dword [ebp - 0x27c]
mov eax, dword [eax]
test eax, eax
je 0x4c6314
cmp eax, 0xffffffff
je 0x4c6326
mov eax, dword [ebp - 0x27c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c6326
push 4
push 2
push dword [ebp - 0x27c]
call fcn.004016c0
add esp, 0xc
mov dword [edi + 0x10], 0x10
or dword [edi + 4], 0x440000
or dword [edi], 0x560000
jmp 0x4c6645
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00406d40
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x274], ecx
mov dword [eax], 0x6f6ba0
mov eax, dword [ebp - 0x280]
or eax, 0x50
test al, 0x20
je 0x4c63bb
and eax, 0xffffffdf
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x278]
mov eax, dword [eax]
test eax, eax
je 0x4c63a3
cmp eax, 0xffffffff
je 0x4c63b5
mov eax, dword [ebp - 0x278]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c63b5
push 4
push 2
push dword [ebp - 0x278]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x268]
and eax, 0xffffffef
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x284]
mov eax, dword [eax]
test eax, eax
je 0x4c63ec
cmp eax, 0xffffffff
je 0x4c63fe
mov eax, dword [ebp - 0x284]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c63fe
push 4
push 2
push dword [ebp - 0x284]
call fcn.004016c0
add esp, 0xc
mov ecx, dword [esi + 4]
mov dword [ebp - 0x290], ecx
mov dword [ebp - 4], 6
mov eax, dword [ecx]
test eax, eax
je 0x4c6422
cmp eax, 0xffffffff
je 0x4c6422
mov eax, 1
lock xadd dword [ecx], eax
or dword [ebp - 0x268], 0x80
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x290]
call fcn.00403e30
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00453c70
mov esi, eax
mov eax, dword [ebp - 0x288]
mov edx, dword [eax]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [esi], edx
mov edx, eax
mov eax, dword [esi + 4]
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x2f4]
movzx eax, word [esi + 8]
mov word [edx + 8], ax
movzx eax, word [esi + 0xa]
mov word [edx + 0xa], ax
movzx eax, word [esi + 0xc]
mov word [edx + 0xc], ax
call fcn.00411820
mov eax, dword [ebp - 0x290]
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x4c64bd
cmp eax, 0xffffffff
je 0x4c64cf
mov eax, dword [ebp - 0x290]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c64cf
push 4
push 2
push dword [ebp - 0x290]
call fcn.004016c0
add esp, 0xc
mov dword [ebp - 0x2d4], 0
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0xffffffff
mov dword [ebp - 0x2c8], 0xffffffff
movups xmm0, xmmword [ebp - 0x2d4]
push 1
push str..lnk
movups xmmword [edi], xmm0
push 4
movups xmm0, xmmword [ebp - 0x2c4]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x2b4]
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [ebp - 0x2a4]
movq qword [edi + 0x30], xmm0
call fcn.00406260
test al, al
jne 0x4c660b
mov eax, dword [ebp - 0x260]
mov dword [edi + 0x10], eax
test al, 2
je 0x4c6554
or dword [edi + 4], 0x100000
test al, 0x10
mov ecx, 0x40000
mov eax, 0x20000
cmovne eax, ecx
mov ecx, dword [ebp - 0x24c]
or eax, dword [edi + 4]
or eax, 0x400000
mov dword [edi + 4], eax
or dword [edi], 0x560000
test byte [edi + 0x10], 0x10
mov eax, dword [ebp - 0x25c]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x258]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x254]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x250]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x248]
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], eax
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], eax
je 0x4c65c6
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
jmp 0x4c65dd
mov ecx, dword [ebp - 0x244]
xor eax, eax
add eax, dword [ebp - 0x240]
mov dword [edi + 8], eax
adc ecx, 0
mov dword [edi + 0xc], ecx
or dword [edi], 0x2210000
mov eax, dword [edi + 4]
and eax, 0xfffeffff
mov dword [edi + 4], eax
test dword [edi + 0x10], 0x400
je 0x4c660b
cmp dword [ebp - 0x23c], 0xa000000c
jne 0x4c660b
or eax, 0x10000
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x274]
mov eax, dword [eax]
test eax, eax
je 0x4c6633
cmp eax, 0xffffffff
je 0x4c6645
mov eax, dword [ebp - 0x274]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4c6645
push 4
push 2
push dword [ebp - 0x274]
call fcn.004016c0
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520afb
mov esp, ebp
pop ebp
ret 8