Function at 0x4b4ed0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556f4a
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x6f9540]
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 eax, dword [ebp + 8]
xor cl, cl
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x284], eax
xor eax, eax
mov dword [ebp - 0x26c], eax
cmp dword [esi + 8], 0xffffffff
jne 0x4b5195
cmp byte [esi + 0x10], al
jne 0x4b5195
lea eax, [ebp - 0x294]
mov byte [ebp - 0x265], 1
push eax
call fcn.0046cd60
add esp, 4
mov ecx, dword [eax]
cmp ecx, dword [0x5cea30]
jne 0x4b4f61
push 0x5cea30
push eax
call fcn.0046ce10
add esp, 8
test eax, eax
js 0x4b4f61
mov ecx, 1
jmp 0x4b4f63
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.0040dd20
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4b518f
push 1
push str._UNC_
push 8
mov ecx, esi
call fcn.0040ca40
test al, al
je 0x4b518f
push 1
push ecx
mov eax, esp
push ecx
mov ecx, 0x5c
mov dword [eax], 1
mov eax, esp
mov word [eax], cx
lea eax, [ebp - 0x264]
push eax
mov ecx, esi
call fcn.0040c920
mov eax, dword [ebp - 0x264]
mov dword [ebp - 4], 0
cmp dword [eax + 4], 4
jne 0x4b50ca
mov ecx, dword [eax + 0xc]
lea edx, [eax + 0x18]
add edx, ecx
mov dword [ebp - 0x28c], 2
mov dword [ebp - 0x270], edx
mov dword [ebp - 0x288], 0x593444
mov eax, dword [ecx + eax + 0x20]
lea ecx, [ebp - 0x27c]
add eax, 2
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00405b80
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax + 0xc]
add ecx, eax
push ecx
push 2
push 0x593444
mov dword [ebp - 0x278], ecx
call fcn.00406b90
mov eax, 2
add esp, 0xc
add eax, eax
add dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x270]
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x270], ecx
test edx, edx
jne 0x4b5072
mov eax, dword [0x6e619c]
lea ecx, [eax + 0x6e6190]
jmp 0x4b507f
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 - 0x270]
add eax, eax
push eax
push ecx
push dword [ebp - 0x278]
call fcn.00526450
mov eax, 0x41
mov dword [ebp - 4], 2
mov dword [ebp - 0x26c], eax
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00456780
add esp, 0x14
mov byte [ebp - 0x271], 1
test al, al
mov eax, dword [ebp - 0x264]
jne 0x4b50d1
mov byte [ebp - 0x271], 0
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 4], 0
test cl, 1
je 0x4b50fd
and ecx, 0xfffffffe
mov dword [ebp - 0x26c], ecx
lea ecx, [ebp - 0x27c]
call fcn.00401a70
mov eax, dword [ebp - 0x264]
cmp byte [ebp - 0x271], 0
je 0x4b5156
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + 0xc]
cmp ecx, dword [edx + 8]
jne 0x4b5152
mov eax, dword [eax]
test eax, eax
je 0x4b5139
cmp eax, 0xffffffff
je 0x4b52cd
mov eax, dword [ebp - 0x264]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4b52cd
push 4
push 0xc
push dword [ebp - 0x264]
call fcn.00403d20
add esp, 0xc
xor al, al
jmp 0x4b5614
mov byte [esi + 0x10], 1
mov eax, dword [eax]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4b517d
cmp eax, 0xffffffff
je 0x4b518f
mov eax, dword [ebp - 0x264]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4b518f
push 4
push 0xc
push dword [ebp - 0x264]
call fcn.00403d20
add esp, 0xc
mov cl, byte [ebp - 0x265]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x4b51a7
cmp byte [esi + 0x10], 0
je 0x4b52cd
test cl, cl
jne 0x4b51c9
cmp byte [esi + 0x10], cl
je 0x4b52b7
inc dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp dword [esi + 0x14], ecx
jge 0x4b52cd
cmp byte [esi + 0x10], 0
je 0x4b52d4
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
add eax, dword [ecx + 8]
add ecx, 0x10
lea edx, [ecx + eax*4]
mov eax, dword [esi + 4]
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 3
mov ecx, dword [eax]
test ecx, ecx
je 0x4b5200
cmp ecx, 0xffffffff
je 0x4b5200
lock inc dword [eax]
or dword [ebp - 0x26c], 2
lea ecx, [ebp - 0x264]
push edx
call fcn.00406870
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x294]
call fcn.0044c7f0
mov esi, eax
mov eax, dword [ebp - 0x284]
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 - 0x294]
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.0041dd50
mov eax, dword [ebp - 0x264]
mov eax, dword [eax]
test eax, eax
je 0x4b528c
cmp eax, 0xffffffff
je 0x4b529e
mov eax, dword [ebp - 0x264]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4b529e
push 4
push 2
push dword [ebp - 0x264]
call fcn.00403d20
add esp, 0xc
mov dword [edi + 0x10], 0x10
or dword [edi + 4], 0x440000
or dword [edi], 0x560000
jmp 0x4b5612
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b51c9
xor al, al
jmp 0x4b5614
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00409480
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x278], ecx
mov dword [eax], 0x6e6190
mov eax, dword [ebp - 0x26c]
or eax, 0x14
mov dword [ebp - 0x26c], eax
test al, 8
je 0x4b5349
and eax, 0xfffffff7
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax]
test ecx, ecx
je 0x4b5336
cmp ecx, 0xffffffff
je 0x4b5343
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne cl
test cl, cl
jne 0x4b5343
push 4
push 2
push eax
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x26c]
test al, 4
je 0x4b538e
and eax, 0xfffffffb
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x27c]
mov eax, dword [eax]
test eax, eax
je 0x4b537c
cmp eax, 0xffffffff
je 0x4b538e
mov eax, dword [ebp - 0x27c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4b538e
push 4
push 2
push dword [ebp - 0x27c]
call fcn.00403d20
add esp, 0xc
mov dword [ebp - 4], 5
mov eax, dword [esi + 4]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 6
mov ecx, dword [eax]
test ecx, ecx
je 0x4b53b0
cmp ecx, 0xffffffff
je 0x4b53b0
lock inc dword [eax]
or dword [ebp - 0x26c], 0x20
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x264]
call fcn.00406870
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x294]
call fcn.0044c7f0
mov esi, eax
mov eax, dword [ebp - 0x284]
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 - 0x294]
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.0041dd50
mov eax, dword [ebp - 0x264]
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x4b5446
cmp eax, 0xffffffff
je 0x4b5458
mov eax, dword [ebp - 0x264]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4b5458
push 4
push 2
push dword [ebp - 0x264]
call fcn.00403d20
add esp, 0xc
mov dword [ebp - 0x2cc], 0
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xffffffff
mov dword [ebp - 0x2c0], 0xffffffff
movups xmm0, xmmword [ebp - 0x2cc]
push 1
push str..lnk
movups xmmword [edi], xmm0
push 4
movups xmm0, xmmword [ebp - 0x2bc]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x2ac]
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [ebp - 0x29c]
movq qword [edi + 0x30], xmm0
call fcn.00408a10
test al, al
jne 0x4b55da
mov edx, dword [ebp - 0x260]
mov dword [edi + 0x10], edx
test dl, 2
je 0x4b54de
or dword [edi + 4], 0x100000
test dl, 0x10
mov ecx, 0x40000
mov eax, 0x20000
cmovne eax, ecx
mov ecx, dword [ebp - 0x258]
or eax, dword [edi + 4]
or eax, 0x400000
mov dword [edi + 4], eax
or dword [edi], 0x560000
mov eax, dword [ebp - 0x25c]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x254]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x248]
mov dword [edi + 0x30], eax
mov dword [edi + 0x20], eax
mov eax, edx
mov dword [edi + 0x18], ecx
and eax, 0x10
mov ecx, dword [ebp - 0x250]
mov dword [edi + 0x28], ecx
mov ecx, dword [ebp - 0x24c]
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x1c], ecx
mov dword [ebp - 0x270], eax
je 0x4b5561
xorps xmm0, xmm0
movlpd qword [ebp - 0x280], xmm0
mov esi, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x280]
jmp 0x4b558d
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x27c], esi
xor esi, esi
add dword [ebp - 0x27c], esi
mov dword [edi + 0xc], eax
adc esi, eax
mov dword [edi + 8], 0
mov eax, dword [ebp - 0x27c]
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
or dword [edi], 0x2210000
mov eax, dword [edi + 4]
and eax, 0xfffeffff
mov dword [edi + 4], eax
test edx, 0x400
je 0x4b55da
mov ecx, dword [ebp - 0x23c]
cmp ecx, 0xa000000c
jne 0x4b55c1
or eax, 0x10000
jmp 0x4b55d7
cmp dword [ebp - 0x270], 0
je 0x4b55da
cmp ecx, 0xa0000003
jne 0x4b55da
or eax, 0x4000000
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x278]
mov eax, dword [eax]
test eax, eax
je 0x4b5600
cmp eax, 0xffffffff
je 0x4b5612
mov eax, dword [ebp - 0x278]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4b5612
push 4
push 2
push dword [ebp - 0x278]
call fcn.00403d20
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.00524b20
mov esp, ebp
pop ebp
ret 8