Function at 0x409e80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52db2d
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x58e188]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409ecb
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x470], edi
mov eax, dword [0x58f9c0]
add eax, 0xfffffff0
push eax
mov dword [ebp - 4], 0
call fcn.00402000
lea ebx, [eax + 0x10]
mov dword [ebp - 0x47c], ebx
push 0x53ec30
lea ecx, [ebp - 0x47c]
push ecx
lea edx, [ebp - 0x484]
push edx
mov byte [ebp - 4], 1
call fcn.00404620
add esp, 0x10
mov ecx, dword [ebp - 0x484]
lea eax, [ebp - 0x46c]
push eax
push ecx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x48c], esi
cmp esi, 0xffffffff
je 0x40a2b7
mov eax, 1
test eax, eax
je 0x40a2b0
lea eax, [ebp - 0x440]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409f60
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x440]
push edx
lea ecx, [ebp - 0x470]
call fcn.00402320
mov edi, dword [ebp - 0x470]
mov esi, dword [edi - 0xc]
test esi, esi
jns 0x409f99
push 0x80070057
call fcn.00401040
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x409fbc
push esi
lea ecx, [ebp - 0x470]
call fcn.00401fa0
mov edi, dword [ebp - 0x470]
lea eax, [esi + 1]
push eax
push edi
call fcn.00515fee
add esp, 8
cmp esi, dword [edi - 8]
jg 0x409f8f
xor ecx, ecx
mov dword [edi - 0xc], esi
mov word [edi + esi*2], cx
test byte [ebp - 0x46c], 0x10
jne 0x40a27c
mov esi, dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
push str..reg
push edi
call esi
test eax, eax
je 0x40a160
lea edx, [ebp - 0x440]
push edx
push ebx
lea eax, [ebp - 0x470]
push 0x53ec24
push eax
call fcn.00402570
add esp, 0x10
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a030
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x474], eax
mov edi, dword [ebp - 0x470]
lea ecx, [ebp - 0x474]
push ecx
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x478], esp
mov esi, esp
push eax
mov byte [ebp - 4], 4
call fcn.00402000
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00406aa0
mov ebx, dword [ebp - 0x474]
add esp, 8
push ebx
lea edx, [ebp - 0x118]
push str._Regedit__find___s__
push edx
call fcn.00402df0
lea eax, [ebp - 0x118]
push eax
call fcn.0040d9d0
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x478], esp
push str._SystemRoot__regedit.exe
call fcn.00402730
lea ecx, [ebp - 0x480]
push ecx
call fcn.00406240
add esp, 8
push ecx
mov edx, esp
mov dword [ebp - 0x478], esp
lea eax, [ebp - 0x470]
push eax
push 0x53ecd8
push edx
mov byte [ebp - 4], 5
call fcn.00406e80
add esp, 0xc
mov eax, dword [ebp - 0x480]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x488], esp
mov esi, esp
push eax
mov byte [ebp - 4], 6
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 5
call fcn.00406070
add esp, 8
push ebx
lea ecx, [ebp - 0x118]
push str._Regedit__reg___s__end_
push ecx
call fcn.00402df0
lea edx, [ebp - 0x118]
push edx
call fcn.0040d9d0
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a25c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a25c
push str..cfg
push edi
call esi
test eax, eax
je 0x40a27c
lea ecx, [ebp - 0x440]
push ecx
push ebx
lea edx, [ebp - 0x470]
push 0x53ec24
push edx
call fcn.00402570
add esp, 0x10
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a1a6
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x474], eax
mov edi, dword [ebp - 0x470]
lea ecx, [ebp - 0x474]
push ecx
push ecx
lea esi, [edi - 0x10]
mov dword [ebp - 0x488], esp
mov ebx, esp
push esi
mov byte [ebp - 4], 7
call fcn.00402000
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00406aa0
mov ebx, dword [ebp - 0x474]
add esp, 8
push ebx
lea edx, [ebp - 0x21c]
push str._Regedit__find___s__
push edx
call fcn.00402df0
lea eax, [ebp - 0x21c]
push eax
call fcn.0040d9d0
add esp, 0x10
push ecx
mov dword [ebp - 0x488], esp
mov dword [ebp - 0x478], esp
push esi
call fcn.00402000
mov ecx, dword [ebp - 0x478]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
call fcn.004080c0
add esp, 4
push ebx
lea edx, [ebp - 0x21c]
push str._Regedit__reg___s__end_
push edx
call fcn.00402df0
lea eax, [ebp - 0x21c]
push eax
call fcn.0040d9d0
add esp, 0x10
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a27c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x48c]
lea ecx, [ebp - 0x46c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [ebp - 0x47c]
jmp 0x409f48
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a2e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a30a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a32d
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00514c0e
mov esp, ebp
pop ebp
ret