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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b5cd
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x49611c]
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 esi, ecx
mov dword [ebp - 0x2dc], esi
push 0x47d4a8
mov edx, esi
lea ecx, [ebp - 0x324]
call fcn.00406c30
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x412d03
mov eax, dword [eax]
lea ecx, [ebp - 0x2d8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x310]
mov edi, eax
cmp ecx, 8
jb 0x412d31
inc ecx
push ecx
push dword [ebp - 0x324]
lea ecx, [ebp - 0x324]
call fcn.00405c10
xor eax, eax
mov dword [ebp - 0x310], 7
mov dword [ebp - 0x314], 0
mov word [ebp - 0x324], ax
cmp edi, 0xffffffff
je 0x413193
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebp - 0x2ac], ax
je 0x412d95
lea eax, [ebp - 0x2ac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412d86
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040e1e0
push 0x47ba78
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0040f930
test eax, eax
je 0x413134
push 0x47d4b0
lea ecx, [ebp - 0x40]
call fcn.0040f930
test eax, eax
je 0x413134
push 0x47d4e4
mov edx, esi
lea ecx, [ebp - 0x33c]
call fcn.00406c30
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00406d40
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x328]
cmp eax, 8
jb 0x412e1f
inc eax
lea ecx, [ebp - 0x33c]
push eax
push dword [ebp - 0x33c]
call fcn.00405c10
xor eax, eax
mov dword [ebp - 0x328], 7
test byte [ebp - 0x2d8], 0x10
mov dword [ebp - 0x32c], 0
mov word [ebp - 0x33c], ax
je 0x412fac
call fcn.0040a9c0
mov eax, dword [eax]
cmp eax, 1
jle 0x412f9f
xor eax, eax
mov dword [ebp - 0x5c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x70], ax
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], 0
push eax
call fcn.00405e70
xor eax, eax
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push eax
mov word [ebp - 0x30c], ax
lea ecx, [ebp - 0x30c]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2f8], 7
push eax
mov dword [ebp - 0x2fc], 0
call fcn.00405e70
xor eax, eax
mov dword [ebp - 0x2e0], 7
mov word [ebp - 0x2f4], ax
lea ecx, [ebp - 0x2f4]
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x2e4], 0
push eax
call fcn.004075b0
lea eax, [ebp - 0x2f4]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.0040a9c0
mov ecx, eax
call fcn.00418230
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x348]
test ecx, ecx
je 0x412f28
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x412f28
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x412f22
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x412f26
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x2e0]
cmp eax, 8
jb 0x412f46
inc eax
lea ecx, [ebp - 0x2f4]
push eax
push dword [ebp - 0x2f4]
call fcn.00405c10
xor eax, eax
mov dword [ebp - 0x2e0], 7
mov word [ebp - 0x2f4], ax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2e4], 0
cmp eax, 8
jb 0x412f81
inc eax
lea ecx, [ebp - 0x30c]
push eax
push dword [ebp - 0x30c]
call fcn.00405c10
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4130ed
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00405c10
jmp 0x4130ed
lea ecx, [ebp - 0x28]
call fcn.00412cb0
jmp 0x4130ed
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.00412950
mov byte [ebp - 4], 8
cmp dword [ebp - 0x48], 0
je 0x4130c4
push dword [ebp - 0x2dc]
mov edx, dword [0x49a6ac]
lea eax, [ebp - 0x58]
mov ecx, dword [0x49a6a8]
push eax
call fcn.00419210
add esp, 8
cmp eax, dword [0x49a6ac]
je 0x4130be
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x41300c
mov eax, dword [ecx]
jmp 0x41300e
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00405e70
lea ecx, [ebp - 0x88]
call fcn.00414950
add esp, 0x18
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x88]
call fcn.00418e30
test eax, eax
je 0x4130b3
cmp dword [ebp - 0x2b8], 0x400
jbe 0x4130b3
xor eax, eax
mov dword [ebp - 0x354], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x368], ax
lea ecx, [ebp - 0x368]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x358], 0
push eax
call fcn.00405e70
lea eax, [ebp - 0x368]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x350]
push eax
call fcn.0040a9c0
mov ecx, eax
call fcn.00418450
lea ecx, [ebp - 0x350]
call fcn.0040a8c0
lea ecx, [ebp - 0x368]
call fcn.00403880
lea ecx, [ebp - 0x88]
call fcn.00403880
mov esi, dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4130d9
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00405c10
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x413102
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405c10
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x41317a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00405c10
jmp 0x41317a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x41317a
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
ja 0x4131af
add eax, eax
cmp eax, 0x1000
jb 0x413171
test cl, 0x1f
jne 0x4131af
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4131af
sub ecx, eax
cmp ecx, 4
jb 0x4131af
cmp ecx, 0x23
ja 0x4131af
mov ecx, eax
push ecx
call fcn.00448f45
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push edi
call ebx
test eax, eax
jne 0x412d60
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
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.00448a58
mov esp, ebp
pop ebp
ret
call fcn.00450abf
int3