Function at 0x54f240
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cb415
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x72cec4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor cl, cl
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x274], 0
cmp dword [edi + 0x18], 0xffffffff
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x288], esi
jne 0x54f495
cmp byte [edi + 0x28], cl
jne 0x54f495
xor eax, eax
mov byte [ebp - 0x261], 1
cmp byte [edi + 0x30], al
mov ecx, edi
push 2
push 0
setne al
push eax
lea eax, [ebp - 0x260]
push eax
push 1
call fcn.00498670
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x54f48f
push 1
push str._UNC_
push 8
mov ecx, edi
call fcn.004977d0
test al, al
je 0x54f48f
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
push 1
push ecx
mov dword [ebp - 0x26c], eax
mov eax, esp
mov dword [ebp - 0x268], ecx
push ecx
mov ecx, 0x5c
mov dword [eax], 1
mov eax, esp
mov word [eax], cx
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004976e0
cmp dword [ebp - 0x27c], 4
mov dword [ebp - 4], 0
jne 0x54f3e9
mov esi, dword [ebp - 0x280]
mov dword [ebp - 0x26c], 2
mov dword [ebp - 0x268], 0x668e54
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x294]
add eax, 2
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0048f140
mov eax, dword [ebp - 0x290]
mov ecx, 0x5e7030
test eax, eax
cmovne ecx, eax
push ecx
push 0x668e54
push 2
mov dword [ebp - 0x270], ecx
call fcn.00490490
mov ecx, dword [ebp - 0x270]
mov eax, 2
add eax, eax
add esp, 0xc
add ecx, eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x54f3ba
add eax, eax
push eax
push dword [esi + 0x14]
push ecx
call fcn.00599570
add esp, 0xc
lea eax, [edi + 0x1c]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x294]
mov dword [ebp - 0x274], 3
push eax
call fcn.005135e0
add esp, 8
mov byte [ebp - 0x262], 1
test al, al
jne 0x54f3f0
mov byte [ebp - 0x262], 0
test byte [ebp - 0x274], 1
mov dword [ebp - 4], 0
je 0x54f40b
lea ecx, [ebp - 0x294]
call fcn.004019e0
cmp byte [ebp - 0x262], 0
je 0x54f455
cmp dword [edi + 0x24], 0
jne 0x54f451
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x54f581
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x54f581
push 4
push 8
push dword [ebp - 0x284]
call fcn.00461780
add esp, 0xc
xor al, al
jmp 0x54f7ca
mov byte [edi + 0x28], 1
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x54f489
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x54f489
push 4
push 8
push dword [ebp - 0x284]
call fcn.00461780
add esp, 0xc
mov esi, dword [ebp - 0x288]
mov cl, byte [ebp - 0x261]
mov eax, dword [edi + 0x18]
cmp eax, 0xffffffff
jne 0x54f4a7
cmp byte [edi + 0x28], 0
je 0x54f581
test cl, cl
jne 0x54f4c3
cmp byte [edi + 0x28], cl
je 0x54f56b
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
cmp eax, dword [edi + 0x24]
jge 0x54f581
cmp byte [edi + 0x28], 0
lea edx, [edi + 0xc]
je 0x54f588
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x26c], edx
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x20]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x268], eax
lea ecx, [ebp - 0x26c]
lea eax, [ebp - 0x284]
push eax
call fcn.004d8120
lea eax, [ebp - 0x284]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2b4]
call fcn.0050a090
mov ecx, dword [ebp - 0x278]
push eax
call fcn.004e4650
lea ecx, [ebp - 0x2b4]
call fcn.004b1050
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x54f552
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x54f552
push 4
push 2
push dword [ebp - 0x284]
call fcn.00461780
add esp, 0xc
mov dword [esi + 0x10], 0x10
or dword [esi + 4], 0x440000
or dword [esi], 0x560000
jmp 0x54f7c8
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x54f4c3
xor al, al
jmp 0x54f7ca
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.004b6680
add esp, 0xc
lea eax, [edi + 0xc]
mov dword [ebp - 4], 4
mov dword [ebp - 0x26c], eax
lea ecx, [ebp - 0x26c]
lea eax, [ebp - 0x294]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x284]
push eax
call fcn.004d8120
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2b4]
call fcn.0050a090
mov ecx, dword [ebp - 0x278]
push eax
call fcn.004e4650
lea ecx, [ebp - 0x2b4]
call fcn.004b1050
mov ecx, dword [ebp - 0x284]
or edi, 0xffffffff
mov byte [ebp - 4], 4
test ecx, ecx
je 0x54f629
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x54f629
push 4
push 2
push dword [ebp - 0x284]
call fcn.00461780
add esp, 0xc
mov dword [ebp - 0x2cc], 0
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xffffffff
mov dword [ebp - 0x2c0], 0xffffffff
movups xmm0, xmmword [ebp - 0x2cc]
push 1
push 0x66927c
movups xmmword [esi], xmm0
push 4
movups xmm0, xmmword [ebp - 0x2bc]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x2ac]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [ebp - 0x29c]
movq qword [esi + 0x30], xmm0
call fcn.00492af0
test al, al
jne 0x54f7a3
mov eax, dword [ebp - 0x260]
mov dword [esi + 0x10], eax
test al, 2
je 0x54f6ae
or dword [esi + 4], 0x100000
mov ecx, dword [ebp - 0x258]
test al, 0x10
mov eax, 0x40000
mov edx, 0x20000
cmovne edx, eax
mov eax, dword [esi]
or edx, dword [esi + 4]
or eax, 0x560000
mov dword [ebp - 0x270], eax
or edx, 0x400000
mov eax, dword [ebp - 0x25c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x254]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x30], eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x278], eax
and eax, 0x10
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 0x24c]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x1c], ecx
mov dword [ebp - 0x274], eax
je 0x54f73c
xorps xmm0, xmm0
movlpd qword [ebp - 0x26c], xmm0
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x26c]
jmp 0x54f74d
mov eax, dword [ebp - 0x244]
xor ecx, ecx
add ecx, dword [ebp - 0x240]
adc eax, 0
mov dword [esi + 8], ecx
and edx, 0xfffeffff
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x270]
or eax, 0x2210000
test dword [ebp - 0x278], 0x400
mov dword [esi], eax
mov dword [esi + 4], edx
je 0x54f7a3
mov eax, dword [ebp - 0x23c]
cmp eax, 0xa000000c
jne 0x54f78a
or edx, 0x10000
jmp 0x54f7a0
cmp dword [ebp - 0x274], 0
je 0x54f7a3
cmp eax, 0xa0000003
jne 0x54f7a3
or edx, 0x4000000
mov dword [esi + 4], edx
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x54f7c8
lock xadd dword [eax], edi
cmp edi, 1
jne 0x54f7c8
push 4
push 2
push dword [ebp - 0x294]
call fcn.00461780
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.00596709
mov esp, ebp
pop ebp
ret 8