Function at 0x492bf0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568c52
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x5d6b80]
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 dword [ebp - 0x290], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x270], eax
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x492c52
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x27c], eax
push dword [ebx]
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 0
push 0x580968
push eax
call fcn.0045acb0
mov ebx, dword [ebp - 0x27c]
lea eax, [ebp - 0x260]
add esp, 0xc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or edi, 0xffffffff
mov dword [ebp - 0x284], esi
cmp esi, edi
je 0x492f54
mov esi, 8
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x492c48
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x280]
push dword [eax]
lea eax, [ebp - 0x268]
push 0x57e340
push eax
call fcn.0045acb0
add esp, 0x10
mov dword [ebp - 0x264], 0
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 2
push eax
push 0x57e144
push 0x17
push 0
push 0x57e244
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x264]
js 0x492fbd
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0xfc]
xor eax, eax
mov dword [ebp - 0x274], 0
mov word [ebp - 0x2a0], ax
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
js 0x492fb7
mov edi, dword [ebp - 0x268]
push edi
mov word [ebp - 0x2a0], si
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x298], eax
test eax, eax
jne 0x492d80
test edi, edi
jne 0x492f97
mov eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x274]
movdqu xmm0, xmmword [ebp - 0x2a0]
push ecx
sub esp, 0x10
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov ecx, esp
push eax
movdqu xmmword [ecx], xmm0
call dword [edx + 0xe8]
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
js 0x492efc
cmp word [ebp - 0x274], 0xffff
jne 0x492efc
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x492c48
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 4
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x492c48
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x264]
call fcn.0048d330
mov esi, dword [ebp - 0x278]
test eax, eax
je 0x492eba
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x28c]
push eax
push esi
call fcn.004e0110
test eax, eax
jne 0x492eab
mov eax, dword [ebp - 0x270]
cmp dword [eax], 0
jne 0x492e97
push 1
push dword [eax + 8]
mov ecx, eax
call fcn.00521c60
test al, al
je 0x492fad
mov eax, dword [ebp - 0x270]
push dword [ebp - 0x288]
mov ecx, eax
push dword [ebp - 0x28c]
push esi
call fcn.0045d5b0
lea ecx, [eax + 4]
lea eax, [ebp - 0x26c]
push eax
call fcn.0045a580
mov edx, dword [ebp - 0x26c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x492ede
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x492efc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x264]
mov byte [ebp - 4], 1
test eax, eax
je 0x492f10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x492f2e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x284]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x492ca4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
mov esi, 1
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x492f77
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.00525878
mov esp, ebp
pop ebp
ret 8
mov eax, 0xa
mov dword [ebp - 0x298], 0x8007000e
mov word [ebp - 0x2a0], ax
push 0x8007000e
call fcn.0045a8f0
push eax
call fcn.0045a8f0
mov byte [ebp - 4], 1
test eax, eax
je 0x492fcb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x268]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x492ff1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x492f59