Function at 0x547240
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c33f5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x71c56c]
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 0x547495
cmp byte [edi + 0x28], cl
jne 0x547495
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.004906d0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x54748f
push 1
push str._UNC_
push 8
mov ecx, edi
call fcn.0048f820
test al, al
je 0x54748f
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.0048f730
cmp dword [ebp - 0x27c], 4
mov dword [ebp - 4], 0
jne 0x5473e9
mov esi, dword [ebp - 0x280]
mov dword [ebp - 0x26c], 2
mov dword [ebp - 0x268], 0x652c84
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x294]
add eax, 2
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00487190
mov eax, dword [ebp - 0x290]
mov ecx, 0x5d0e60
test eax, eax
cmovne ecx, eax
push ecx
push 0x652c84
push 2
mov dword [ebp - 0x270], ecx
call fcn.004884e0
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 0x5473ba
add eax, eax
push eax
push dword [esi + 0x14]
push ecx
call fcn.00591570
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.0050b600
add esp, 8
mov byte [ebp - 0x262], 1
test al, al
jne 0x5473f0
mov byte [ebp - 0x262], 0
test byte [ebp - 0x274], 1
mov dword [ebp - 4], 0
je 0x54740b
lea ecx, [ebp - 0x294]
call fcn.004019e0
cmp byte [ebp - 0x262], 0
je 0x547455
cmp dword [edi + 0x24], 0
jne 0x547451
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x547581
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x547581
push 4
push 8
push dword [ebp - 0x284]
call fcn.004597e0
add esp, 0xc
xor al, al
jmp 0x5477ca
mov byte [edi + 0x28], 1
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x547489
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x547489
push 4
push 8
push dword [ebp - 0x284]
call fcn.004597e0
add esp, 0xc
mov esi, dword [ebp - 0x288]
mov cl, byte [ebp - 0x261]
mov eax, dword [edi + 0x18]
cmp eax, 0xffffffff
jne 0x5474a7
cmp byte [edi + 0x28], 0
je 0x547581
test cl, cl
jne 0x5474c3
cmp byte [edi + 0x28], cl
je 0x54756b
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
cmp eax, dword [edi + 0x24]
jge 0x547581
cmp byte [edi + 0x28], 0
lea edx, [edi + 0xc]
je 0x547588
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.004d0140
lea eax, [ebp - 0x284]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2b4]
call fcn.005020d0
mov ecx, dword [ebp - 0x278]
push eax
call fcn.004dc670
lea ecx, [ebp - 0x2b4]
call fcn.004a90a0
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x547552
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x547552
push 4
push 2
push dword [ebp - 0x284]
call fcn.004597e0
add esp, 0xc
mov dword [esi + 0x10], 0x10
or dword [esi + 4], 0x440000
or dword [esi], 0x560000
jmp 0x5477c8
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5474c3
xor al, al
jmp 0x5477ca
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.004ae6d0
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.004d0140
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2b4]
call fcn.005020d0
mov ecx, dword [ebp - 0x278]
push eax
call fcn.004dc670
lea ecx, [ebp - 0x2b4]
call fcn.004a90a0
mov ecx, dword [ebp - 0x284]
or edi, 0xffffffff
mov byte [ebp - 4], 4
test ecx, ecx
je 0x547629
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x547629
push 4
push 2
push dword [ebp - 0x284]
call fcn.004597e0
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 0x6530ac
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.0048ab40
test al, al
jne 0x5477a3
mov eax, dword [ebp - 0x260]
mov dword [esi + 0x10], eax
test al, 2
je 0x5476ae
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 0x54773c
xorps xmm0, xmm0
movlpd qword [ebp - 0x26c], xmm0
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x26c]
jmp 0x54774d
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 0x5477a3
mov eax, dword [ebp - 0x23c]
cmp eax, 0xa000000c
jne 0x54778a
or edx, 0x10000
jmp 0x5477a0
cmp dword [ebp - 0x274], 0
je 0x5477a3
cmp eax, 0xa0000003
jne 0x5477a3
or edx, 0x4000000
mov dword [esi + 4], edx
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x5477c8
lock xadd dword [eax], edi
cmp edi, 1
jne 0x5477c8
push 4
push 2
push dword [ebp - 0x294]
call fcn.004597e0
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.0058e709
mov esp, ebp
pop ebp
ret 8