Function at 0x5b1de0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5ae1
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x638fe4]
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 eax, edx
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x264], ecx
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0x274], 0
push eax
call fcn.004035b0
add esp, 4
lea ebx, [eax + 0x10]
mov dword [ebp - 0x288], ebx
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00403280
mov byte [ebp - 4], 1
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x5b1e70
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b1e85
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5b1e87
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x278], edi
push 0x60fca8
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004087e0
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, 1
mov esi, dword [eax]
mov eax, dword [ebp - 0x264]
sub ecx, dword [edi - 4]
mov eax, dword [eax]
mov dword [ebp - 0x264], eax
mov eax, dword [edi - 8]
sub eax, 0x104
or eax, ecx
jge 0x5b1eed
push 0x104
lea ecx, [ebp - 0x278]
call fcn.00402cf0
mov edi, dword [ebp - 0x278]
push esi
push dword [ebp - 0x264]
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b1f44
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b1f40
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b1f40
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b1f44
mov ecx, edx
call esi
push dword [edi - 8]
push edi
call fcn.0054c667
add esp, 8
test eax, eax
js 0x5b235e
cmp eax, dword [edi - 8]
jg 0x5b235e
xor ecx, ecx
mov dword [edi - 0xc], eax
push 0x250
mov word [edi + eax*2], cx
lea eax, [ebp - 0x260]
push ecx
push eax
call fcn.00547850
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x28c], eax
cmp eax, 0xffffffff
je 0x5b231f
lea esp, [esp]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x268]
call fcn.00403280
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x268]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x5b235e
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x5b1fea
push esi
lea ecx, [ebp - 0x268]
call fcn.00402cf0
mov eax, dword [ebp - 0x268]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0054e051
mov eax, dword [ebp - 0x268]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x5b235e
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x268]
mov edx, 1
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x5b2046
push 0x104
lea ecx, [ebp - 0x268]
call fcn.00402cf0
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x268]
push dword [eax - 8]
push eax
call fcn.0054c667
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x5b235e
mov eax, dword [ebp - 0x268]
cmp ecx, dword [eax - 8]
jg 0x5b235e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x268]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x280]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x26c], eax
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x5b20a9
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x5b20bb
cmp ecx, dword [esi]
jne 0x5b20bb
lock inc dword [eax]
jmp 0x5b2103
lea eax, [esi + 4]
push 2
push dword [eax]
mov dword [ebp - 0x264], eax
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x5b2368
mov edx, dword [ebp - 0x264]
mov ecx, dword [edx]
mov dword [esi + 4], ecx
mov edx, dword [edx]
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
lea ecx, [esi + 0x10]
call fcn.0056c4f0
add esp, 8
add esi, 0x10
mov dword [ebp - 0x26c], esi
mov byte [ebp - 4], 5
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x264], edx
test edx, edx
js 0x5b235e
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x5b214a
push edx
lea ecx, [ebp - 0x26c]
call fcn.00402cf0
mov esi, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x264]
lea eax, [edx + 1]
push eax
push esi
call fcn.0054e051
mov eax, dword [ebp - 0x264]
add esp, 8
cmp eax, dword [esi - 8]
jg 0x5b235e
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x26c]
push 0x60dcf4
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.004087e0
add esp, 0xc
push 0x60ab98
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x268]
push dword [eax]
call fcn.004045b0
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov ecx, dword [ebp - 0x284]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b220b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x270], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b2203
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x270], ebx
mov ebx, dword [ebp - 0x288]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b21f9
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b220b
mov ecx, edx
call dword [ebp - 0x270]
jmp 0x5b220b
mov ecx, edx
call dword [ebp - 0x270]
mov eax, dword [ebp - 0x268]
xor ecx, ecx
mov dword [ebp - 0x264], ecx
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x5b225b
test ecx, ecx
js 0x5b235e
cmp ecx, edx
jg 0x5b235e
movzx eax, word [eax + ecx*2]
push eax
call fcn.00552eed
add esp, 4
test eax, eax
je 0x5b2272
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x264]
inc ecx
mov dword [ebp - 0x264], ecx
mov edx, dword [eax - 0xc]
cmp ecx, edx
jl 0x5b2220
push eax
call fcn.0054ea10
add esp, 4
cmp dword [ebp - 0x274], eax
jg 0x5b2272
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5b22b3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b22b1
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b22b1
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b22b3
call edx
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b22fc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b22f8
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b22f8
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b22fc
mov ecx, edx
call esi
mov esi, dword [ebp - 0x28c]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5b1fa0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x5b236f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b236d
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b236d
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5b236f
push 0x80070057
call fcn.00402650
call fcn.00402e60
call edx
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov ecx, dword [ebp - 0x27c]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5b23bc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b23b8
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b23b8
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [edx + 4]
call esi
jmp 0x5b23c2
mov ecx, edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x5b23ff
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5b23fd
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5b23fd
push 0
push dword [ecx + 4]
call esi
jmp 0x5b23ff
call edx
mov eax, dword [ebp - 0x274]
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.00544774
mov esp, ebp
pop ebp
ret