Function at 0x52fa60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5778aa
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5d52e0]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
sub eax, 0x10
xor esi, esi
push eax
mov edi, ecx
mov dword [esp + 0x20], esi
call fcn.00401a10
add eax, 0x10
add esp, 4
mov dword [esp + 0x2c], eax
push eax
mov dword [esp + 0x29c], esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esp + 0x24]
call fcn.00401210
mov byte [esp + 0x298], 1
call fcn.0040c84f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x52fafe
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x5ac394
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x2a4], 2
call fcn.00406e20
add esp, 0xc
mov byte [esp + 0x298], 3
mov ebx, dword [eax]
mov eax, dword [esi - 8]
mov edi, dword [edi]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x52fb5f
push 0x104
lea ecx, [esp + 0x1c]
call fcn.004019b0
mov esi, dword [esp + 0x18]
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov byte [esp + 0x298], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52fb90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x5300c2
cmp eax, dword [esi - 8]
jg 0x5300c2
xor ecx, ecx
push 0x250
push ecx
lea edx, [esp + 0x3c]
mov dword [esi - 0xc], eax
push edx
mov word [esi + eax*2], cx
call fcn.00503ac0
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x530023
call fcn.0040c84f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x52faf4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x60]
mov byte [esp + 0x298], 4
test ecx, 0xffff0000
jne 0x52fc37
mov edx, ecx
movzx edi, dx
push edi
call fcn.0040c76a
test eax, eax
je 0x52fc62
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00401440
jmp 0x52fc5e
lea eax, [esp + 0x60]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x52fc40
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x18]
call fcn.00401900
mov esi, dword [esp + 0x10]
mov byte [esp + 0x298], 5
mov edi, dword [esi - 0xc]
test edi, edi
js 0x5300c2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x52fc94
push edi
lea ecx, [esp + 0x14]
call fcn.004019b0
mov esi, dword [esp + 0x10]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.0050084d
add esp, 8
cmp edi, dword [esi - 8]
jg 0x5300c2
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
lea edi, [esi - 0x10]
cmp edi, edi
je 0x52fd5d
cmp dword [edi + 0xc], edx
lea ebx, [edi + 0xc]
jl 0x52fd4b
mov ecx, dword [edi]
cmp ecx, ecx
jne 0x52fd4b
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x52fcf1
cmp eax, dword [edi]
jne 0x52fcf1
mov esi, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x52fd2c
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x5300cc
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.004ffad4
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x52fd42
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0x10
mov dword [esp + 0x10], esi
jmp 0x52fd5d
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401900
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x52fd83
push 0x104
lea ecx, [esp + 0x14]
call fcn.004019b0
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ff818
add esp, 8
test eax, eax
js 0x5300c2
cmp eax, dword [esi - 8]
jg 0x5300c2
mov edx, dword [esp + 0x28]
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov esi, dword [edx]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x52fddd
cmp eax, dword [esi - 0x10]
jne 0x52fddd
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x52fe15
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x5300cc
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004ffad4
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x14], edi
mov byte [esp + 0x298], 6
mov esi, dword [edi - 0xc]
test esi, esi
js 0x5300c2
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x52fe4e
push esi
lea ecx, [esp + 0x18]
call fcn.004019b0
mov edi, dword [esp + 0x14]
lea ecx, [esi + 1]
push ecx
push edi
call fcn.0050084d
add esp, 8
cmp esi, dword [edi - 8]
jg 0x5300c2
xor edx, edx
mov dword [edi - 0xc], esi
mov word [edi + esi*2], dx
lea esi, [edi - 0x10]
cmp esi, esi
je 0x52ff17
cmp dword [esi + 0xc], edx
lea ebx, [esi + 0xc]
jl 0x52ff05
mov ecx, dword [esi]
cmp ecx, ecx
jne 0x52ff05
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x52feab
cmp eax, dword [esi]
jne 0x52feab
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x52fee6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x5300cc
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004ffad4
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x52fefc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x52ff17
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00401900
mov edi, dword [esp + 0x14]
push 0x5a99ac
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00406e20
add esp, 0xc
mov byte [esp + 0x298], 7
mov eax, dword [eax]
push 0x5a95c8
push eax
lea ecx, [esp + 0x18]
call fcn.00402c50
mov byte [esp + 0x298], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52ff6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx - 0xc]
xor esi, esi
test eax, eax
jle 0x52ffa5
test esi, esi
js 0x5300c2
cmp esi, eax
jg 0x5300c2
movzx eax, word [ebx + esi*2]
push eax
call fcn.00503056
add esp, 4
test eax, eax
je 0x52ffb8
mov eax, dword [ebx - 0xc]
inc esi
cmp esi, eax
jl 0x52ff7c
push ebx
call fcn.00501fe3
add esp, 4
cmp dword [esp + 0x1c], eax
jg 0x52ffb8
mov dword [esp + 0x1c], eax
add edi, 0xfffffff0
mov byte [esp + 0x298], 5
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52ffdc
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0xfffffff0
mov byte [esp + 0x298], 2
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x530000
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x52fbe3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x18]
lea eax, [esi - 0x10]
mov byte [esp + 0x298], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x530047
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x298], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53006f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x298], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53009a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004ff57c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004010a0
call fcn.00401ae0
int3