Function at 0x58ac80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b05e2
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x614040]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x614040]
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.00414eab
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x58ad27
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 0x5ea794
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 0x58ad8e
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 0x58adc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx - 8]
push ebx
call fcn.00528e42
add esp, 8
test eax, eax
js 0x58b2f3
cmp eax, dword [ebx - 8]
jg 0x58b2f3
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.0052d120
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 0x58b25e
call fcn.00414eab
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x58ad1d
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 0x58ae63
movzx edi, ax
push edi
call fcn.004174c3
test eax, eax
je 0x58ae92
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00403200
jmp 0x58ae8e
lea ecx, [esp + 0x68]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58ae70
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 0x58b2f3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x58aec4
push edi
lea ecx, [esp + 0x18]
call fcn.00402c20
mov esi, dword [esp + 0x14]
lea eax, [edi + 1]
push eax
push esi
call fcn.005299a2
add esp, 8
cmp edi, dword [esi - 8]
jg 0x58b2f3
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea edi, [esi - 0x10]
cmp edi, edi
je 0x58af8b
cmp dword [edi + 0xc], eax
jl 0x58af7a
mov ecx, dword [edi]
cmp ecx, ecx
jne 0x58af7a
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x58af1e
cmp ecx, dword [edi]
jne 0x58af1e
mov esi, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x58af5a
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
je 0x58b2ee
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.00528cf5
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x58af71
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x58af8b
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 0x58afb1
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.00528e42
add esp, 8
test eax, eax
js 0x58b2f3
cmp eax, dword [esi - 8]
jg 0x58b2f3
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 0x58b00a
cmp ecx, dword [esi - 0x10]
jne 0x58b00a
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x58b043
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x58b2ee
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.00528cf5
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 0x58b2f3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x58b07c
push edi
lea ecx, [esp + 0x1c]
call fcn.00402c20
mov esi, dword [esp + 0x18]
lea eax, [edi + 1]
push eax
push esi
call fcn.005299a2
add esp, 8
cmp edi, dword [esi - 8]
jg 0x58b2f3
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea edi, [esi - 0x10]
cmp edi, edi
je 0x58b143
cmp dword [edi + 0xc], eax
jl 0x58b132
mov ecx, dword [edi]
cmp ecx, ecx
jne 0x58b132
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x58b0d6
cmp ecx, dword [edi]
jne 0x58b0d6
mov esi, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x58b112
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
je 0x58b2ee
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.00528cf5
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x58b129
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x58b143
push dword [esi - 0xc]
lea ecx, [esp + 0x1c]
push esi
call fcn.004035a0
mov esi, dword [esp + 0x18]
push 0x5e88b4
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00407c60
add esp, 0xc
push 0x5e7af0
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 0x58b198
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 0x58b1e1
lea esp, [esp]
test eax, eax
js 0x58b2f3
cmp eax, ecx
jg 0x58b2f3
movzx eax, word [edi + eax*2]
push eax
call fcn.0052b8d4
add esp, 4
test eax, eax
je 0x58b1f4
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi - 0xc]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, ecx
jl 0x58b1b0
push edi
call fcn.0052a73a
add esp, 4
cmp dword [esp + 0x20], eax
jg 0x58b1f4
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 0x58b216
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 0x58b238
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 0x58ae14
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 0x58b27f
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 0x58b2a4
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 0x58b2c6
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.00527e2c
mov esp, ebp
pop ebp
ret
call fcn.00402c80
push 0x80070057
call fcn.00402740
int3