Function at 0x58cfa0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b2d64
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x616040]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x616040]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [eax]
sub eax, 0x10
mov dword [esp + 0x20], 0
push eax
call fcn.00403660
add esp, 4
lea esi, [eax + 0x10]
mov dword [esp + 0x34], esi
push esi
mov dword [esp + 0x2a4], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esp + 0x28]
call fcn.00402f60
mov byte [esp + 0x2a0], 1
call fcn.0041505f
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x58d047
push 0x80004005
call fcn.00402740
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x28], ebx
push 0x5ec810
lea eax, [esp + 0x28]
mov byte [esp + 0x2a4], 2
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00407c60
add esp, 0xc
mov byte [esp + 0x2a0], 3
mov ecx, 1
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
sub ecx, dword [ebx - 4]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx - 8]
sub eax, 0x104
or eax, ecx
jge 0x58d0ae
push 0x104
lea ecx, [esp + 0x2c]
call fcn.00402c20
mov ebx, dword [esp + 0x28]
push edi
push dword [esp + 0x20]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov byte [esp + 0x2a0], 2
or edi, 0xffffffff
mov edx, dword [esp + 0x18]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x58d0e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx - 8]
push ebx
call fcn.00528e72
add esp, 8
test eax, eax
js 0x58d613
cmp eax, dword [ebx - 8]
jg 0x58d613
xor ecx, ecx
mov dword [ebx - 0xc], eax
push 0x250
mov word [ebx + eax*2], cx
lea eax, [esp + 0x40]
push ecx
push eax
call fcn.0052d150
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
je 0x58d57e
call fcn.0041505f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x58d03d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea eax, [esp + 0x68]
mov byte [esp + 0x2a0], 4
test eax, 0xffff0000
jne 0x58d183
movzx edi, ax
push edi
call fcn.004176a4
test eax, eax
je 0x58d1b2
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00403200
jmp 0x58d1ae
lea ecx, [esp + 0x68]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58d190
sub ecx, edx
lea eax, [esp + 0x68]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004035a0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x2a0], 5
mov edi, dword [esi - 0xc]
test edi, edi
js 0x58d613
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x58d1e4
push edi
lea ecx, [esp + 0x18]
call fcn.00402c20
mov esi, dword [esp + 0x14]
lea eax, [edi + 1]
push eax
push esi
call fcn.005299d2
add esp, 8
cmp edi, dword [esi - 8]
jg 0x58d613
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea edi, [esi - 0x10]
cmp edi, edi
je 0x58d2ab
cmp dword [edi + 0xc], eax
jl 0x58d29a
mov ecx, dword [edi]
cmp ecx, ecx
jne 0x58d29a
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x58d23e
cmp ecx, dword [edi]
jne 0x58d23e
mov esi, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x58d27a
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
je 0x58d60e
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00528d25
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x58d291
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x58d2ab
push dword [esi - 0xc]
lea ecx, [esp + 0x18]
push esi
call fcn.004035a0
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x58d2d1
push 0x104
lea ecx, [esp + 0x18]
call fcn.00402c20
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push dword [esi - 8]
push esi
call fcn.00528e72
add esp, 8
test eax, eax
js 0x58d613
cmp eax, dword [esi - 8]
jg 0x58d613
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x58d32a
cmp ecx, dword [esi - 0x10]
jne 0x58d32a
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x58d363
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x58d60e
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00528d25
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x2a0], 6
mov edi, dword [esi - 0xc]
test edi, edi
js 0x58d613
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x58d39c
push edi
lea ecx, [esp + 0x1c]
call fcn.00402c20
mov esi, dword [esp + 0x18]
lea eax, [edi + 1]
push eax
push esi
call fcn.005299d2
add esp, 8
cmp edi, dword [esi - 8]
jg 0x58d613
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea edi, [esi - 0x10]
cmp edi, edi
je 0x58d463
cmp dword [edi + 0xc], eax
jl 0x58d452
mov ecx, dword [edi]
cmp ecx, ecx
jne 0x58d452
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x58d3f6
cmp ecx, dword [edi]
jne 0x58d3f6
mov esi, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x58d432
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
je 0x58d60e
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00528d25
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x58d449
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x58d463
push dword [esi - 0xc]
lea ecx, [esp + 0x1c]
push esi
call fcn.004035a0
mov esi, dword [esp + 0x18]
push 0x5ea8bc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00407c60
add esp, 0xc
push 0x5e9af0
mov byte [esp + 0x2a4], 7
lea ecx, [esp + 0x18]
push dword [eax]
call fcn.00403990
mov byte [esp + 0x2a0], 6
or ecx, 0xffffffff
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58d4b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [edi - 0xc]
test ecx, ecx
jle 0x58d501
lea esp, [esp]
test eax, eax
js 0x58d613
cmp eax, ecx
jg 0x58d613
movzx eax, word [edi + eax*2]
push eax
call fcn.0052b904
add esp, 4
test eax, eax
je 0x58d514
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi - 0xc]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, ecx
jl 0x58d4d0
push edi
call fcn.0052a76a
add esp, 4
cmp dword [esp + 0x20], eax
jg 0x58d514
mov dword [esp + 0x20], eax
add esi, 0xfffffff0
mov byte [esp + 0x2a0], 5
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58d536
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [esp + 0x2a0], 2
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58d558
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x58d134
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x34]
or edi, 0xffffffff
add ebx, 0xfffffff0
mov byte [esp + 0x2a0], 1
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58d59f
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x2a0], 0
mov ecx, edi
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x58d5c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0x2a0], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x58d5e6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.00527e5c
mov esp, ebp
pop ebp
ret
call fcn.00402c80
push 0x80070057
call fcn.00402740
int3