Function at 0x409070
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bff7
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x438040]
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 byte [ebp - 0x265], dl
mov ebx, ecx
mov dword [ebp - 0x26c], ebx
cmp byte [0x439814], 0
je 0x4090d3
mov al, 1
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.0040f7c4
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x274]
call fcn.004031f0
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov eax, dword [ebp - 0x274]
cmp dword [eax - 0xc], 4
jge 0x4090fc
xor bl, bl
jmp 0x409544
push 4
push 0x433e48
lea ecx, [ebp - 0x274]
call fcn.00407b30
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x280], edi
cmp edi, 0xffffffff
je 0x409542
call fcn.00401920
test eax, eax
je 0x40956d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x270], edi
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x40939c
movzx esi, ax
mov ecx, esi
call fcn.00403e70
mov ebx, eax
test ebx, ebx
je 0x4091eb
mov ecx, esi
shr ecx, 4
push 6
inc ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4091eb
push esi
mov edx, eax
mov ecx, ebx
call fcn.00403e00
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4091eb
movzx esi, word [ebx]
mov edx, 1
mov ecx, dword [edi - 8]
sub edx, dword [edi - 4]
sub ecx, esi
or ecx, edx
jge 0x4091c1
push esi
lea ecx, [ebp - 0x270]
call fcn.00401430
mov edi, dword [ebp - 0x270]
movzx ecx, word [ebx]
lea eax, [ebx + 2]
push ecx
push eax
push esi
push edi
call fcn.00418d0f
push eax
call fcn.00403ef0
add esp, 0x14
cmp esi, dword [edi - 8]
jg 0x409577
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
mov ebx, dword [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.00401920
test eax, eax
je 0x40956d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4093f8
test ebx, 0xffff0000
jne 0x4093d2
movzx ebx, bx
mov ecx, ebx
call fcn.00403e70
mov dword [ebp - 0x278], eax
test eax, eax
je 0x4092c7
mov ecx, ebx
shr ecx, 4
push 6
inc ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4092c7
mov ecx, dword [ebp - 0x278]
mov edx, eax
push ebx
call fcn.00403e00
add esp, 4
mov dword [ebp - 0x278], eax
test eax, eax
je 0x4092c7
movzx ebx, word [eax]
mov edx, 1
mov ecx, dword [esi - 8]
sub edx, dword [esi - 4]
sub ecx, ebx
or ecx, edx
jge 0x40929d
push ebx
lea ecx, [ebp - 0x264]
call fcn.00401430
mov esi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x278]
movzx ecx, word [eax]
add eax, 2
push ecx
push eax
push ebx
push esi
call fcn.00418d0f
push eax
call fcn.00403ef0
add esp, 0x14
cmp ebx, dword [esi - 8]
jg 0x409577
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov ebx, dword [ebp - 0x26c]
push 1
push 0x433f24
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 4
call fcn.00407b30
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4092f0
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00407b30
test byte [ebp - 0x260], 0x10
jne 0x40940c
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x27c]
call fcn.004031f0
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x264]
cmp dword [esi - 4], 1
jle 0x409355
push dword [esi - 0xc]
lea ecx, [ebp - 0x264]
call fcn.00401540
mov esi, dword [ebp - 0x264]
push 0x439818
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
cmp byte [ebp - 0x265], 0
je 0x409371
call fcn.00408fd0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x27c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4094dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4094dc
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4093a5
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.00403530
mov edi, dword [ebp - 0x270]
jmp 0x4091f1
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4093d7
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x264]
call fcn.00403530
jmp 0x4092cd
xor ecx, ecx
push ecx
push ebx
lea ecx, [ebp - 0x264]
call fcn.00403530
jmp 0x4092cd
mov ecx, 0x434008
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409439
test dx, dx
je 0x409435
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409439
add eax, 4
add ecx, 4
test dx, dx
jne 0x409413
xor eax, eax
jmp 0x40943e
sbb eax, eax
or eax, 1
test eax, eax
je 0x4094d6
mov ecx, 0x43400c
mov eax, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409476
test dx, dx
je 0x409472
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409476
add eax, 4
add ecx, 4
test dx, dx
jne 0x409450
xor eax, eax
jmp 0x40947b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4094d6
mov esi, dword [ebp - 0x264]
cmp dword [esi - 4], 1
jle 0x40949f
push dword [esi - 0xc]
lea ecx, [ebp - 0x264]
call fcn.00401540
mov esi, dword [ebp - 0x264]
push 0x439818
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
cmp dword [esi - 4], 1
jle 0x4094c7
push dword [esi - 0xc]
lea ecx, [ebp - 0x264]
call fcn.00401540
mov esi, dword [ebp - 0x264]
mov dl, byte [ebp - 0x265]
mov ecx, esi
call fcn.00409070
jmp 0x4094dc
mov esi, dword [ebp - 0x264]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4094f8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x409516
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x280]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40953b
cmp byte [0x439814], 0
je 0x409132
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x409566
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x4090b7
push 0x80004005
call fcn.004016f0
push 0x80070057
call fcn.004016f0
int3