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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4794dc
mov eax, dword fs:[0]
push eax
sub esp, 0xb3c
mov eax, dword [0x48d744]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xaf8], ecx
cmp dword [ebp + 8], 0
je 0x412761
cmp dword [ebp + 8], 0x47fdae
jne 0x412766
jmp 0x412d1e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xafc], eax
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0xb00], ecx
mov edx, dword [ebp - 0xb00]
mov dword [ebp - 0xb04], edx
mov eax, dword [ebp - 0xafc]
mov cl, byte [eax]
mov byte [ebp - 0xb05], cl
mov edx, dword [ebp - 0xb00]
mov al, byte [ebp - 0xb05]
mov byte [edx], al
mov ecx, dword [ebp - 0xafc]
add ecx, 1
mov dword [ebp - 0xafc], ecx
mov edx, dword [ebp - 0xb00]
add edx, 1
mov dword [ebp - 0xb00], edx
cmp byte [ebp - 0xb05], 0
jne 0x412787
lea eax, [ebp - 0x43c]
add eax, 0xffffffff
mov dword [ebp - 0xb0c], eax
mov ecx, dword [ebp - 0xb0c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0xb0d], dl
add dword [ebp - 0xb0c], 1
cmp byte [ebp - 0xb0d], 0
jne 0x4127d9
mov edi, dword [ebp - 0xb0c]
mov eax, dword [str..]
mov dword [edi], eax
mov cl, byte [0x482c24]
mov byte [edi + 4], cl
lea ecx, [ebp - 0x448]
call fcn.004169e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x43c]
push edx
lea ecx, [ebp - 0x448]
call fcn.00416630
lea ecx, [ebp - 0x6d8]
call fcn.00409020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004169e0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00416630
lea ecx, [ebp - 0x69c]
push ecx
lea ecx, [ebp - 0x448]
call fcn.00402850
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4128ba
push 0x482c28
call fcn.0044b4a1
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00416a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6d8]
call fcn.00409080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call fcn.00416a10
jmp 0x412d1e
lea ecx, [ebp - 0x6ac]
call fcn.00413600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6ac]
call fcn.00413820
lea edx, [ebp - 0x69c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x412be8
lea ecx, [ebp - 0xae8]
call fcn.004169e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x670]
push ecx
lea ecx, [ebp - 0xae8]
call fcn.00416290
mov dword [ebp - 0xb14], 0x482c34
lea edx, [ebp - 0x670]
mov dword [ebp - 0xb18], edx
mov eax, dword [ebp - 0xb18]
mov cx, word [eax]
mov word [ebp - 0xb1a], cx
mov edx, dword [ebp - 0xb14]
cmp cx, word [edx]
jne 0x41298a
cmp word [ebp - 0xb1a], 0
je 0x41297e
mov eax, dword [ebp - 0xb18]
mov cx, word [eax + 2]
mov word [ebp - 0xb1c], cx
mov edx, dword [ebp - 0xb14]
cmp cx, word [edx + 2]
jne 0x41298a
add dword [ebp - 0xb18], 4
add dword [ebp - 0xb14], 4
cmp word [ebp - 0xb1c], 0
jne 0x412924
mov dword [ebp - 0xb20], 0
jmp 0x412995
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0xb20], eax
mov ecx, dword [ebp - 0xb20]
mov dword [ebp - 0xb24], ecx
cmp dword [ebp - 0xb24], 0
je 0x412a4a
mov dword [ebp - 0xb28], 0x482c38
lea edx, [ebp - 0x670]
mov dword [ebp - 0xb2c], edx
mov eax, dword [ebp - 0xb2c]
mov cx, word [eax]
mov word [ebp - 0xb2e], cx
mov edx, dword [ebp - 0xb28]
cmp cx, word [edx]
jne 0x412a2a
cmp word [ebp - 0xb2e], 0
je 0x412a1e
mov eax, dword [ebp - 0xb2c]
mov cx, word [eax + 2]
mov word [ebp - 0xb30], cx
mov edx, dword [ebp - 0xb28]
cmp cx, word [edx + 2]
jne 0x412a2a
add dword [ebp - 0xb2c], 4
add dword [ebp - 0xb28], 4
cmp word [ebp - 0xb30], 0
jne 0x4129c4
mov dword [ebp - 0xb34], 0
jmp 0x412a35
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0xb34], eax
mov ecx, dword [ebp - 0xb34]
mov dword [ebp - 0xb38], ecx
cmp dword [ebp - 0xb38], 0
jne 0x412a5e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xae8]
call fcn.00416a10
jmp 0x4128d4
lea ecx, [ebp - 0xae8]
call fcn.00424f10
push eax
mov edx, dword [ebp + 8]
push edx
push 0x482c40
lea eax, [ebp - 0xadc]
push eax
call fcn.0044ab71
add esp, 0x10
lea ecx, [ebp - 0x6d8]
call fcn.004089d0
lea ecx, [ebp - 0xadc]
push ecx
lea ecx, [ebp - 0x6d8]
call fcn.00408030
mov edx, dword [ebp - 0x69c]
and edx, 0x10
je 0x412b0f
lea eax, [ebp - 0xadc]
push eax
mov ecx, dword [ebp - 0xaf8]
call fcn.00412e80
mov ecx, dword [ebp - 0xaf8]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x6d8]
call fcn.004080f0
push eax
mov ecx, dword [ebp - 0xaf8]
call fcn.00412f20
lea eax, [ebp - 0xadc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406c40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x6ac]
call fcn.00413720
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00406d50
jmp 0x412bd4
lea edx, [ebp - 0xadc]
push edx
mov ecx, dword [ebp - 0xaf8]
call fcn.00412d40
mov eax, dword [ebp - 0xaf8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x6d8]
call fcn.004080f0
push eax
mov ecx, dword [ebp - 0xaf8]
call fcn.00412de0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xaf0], esp
lea edx, [ebp - 0xadc]
push edx
call fcn.00406c40
mov dword [ebp - 0xb3c], eax
mov ecx, dword [ebp - 0xaf8]
call fcn.00413550
mov byte [ebp - 0xb3d], al
movzx eax, byte [ebp - 0xb3d]
test eax, eax
jne 0x412bd4
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xae8]
call fcn.00416a10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6ac]
call fcn.0040b110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00416a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6d8]
call fcn.00409080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call fcn.00416a10
jmp 0x412d1e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xae8]
call fcn.00416a10
jmp 0x4128d4
mov dword [ebp - 0xaec], 0
jmp 0x412c03
mov edx, dword [ebp - 0xaec]
add edx, 1
mov dword [ebp - 0xaec], edx
lea ecx, [ebp - 0x6ac]
call fcn.0040b130
cmp dword [ebp - 0xaec], eax
jae 0x412cd8
mov eax, dword [ebp - 0xaec]
push eax
lea ecx, [ebp - 0x6ac]
call fcn.0040b150
mov ecx, eax
call fcn.00406d70
push eax
mov ecx, dword [ebp - 0xaf8]
call fcn.00412720
mov ecx, dword [ebp - 0xaec]
push ecx
lea ecx, [ebp - 0x6ac]
call fcn.0040b150
mov ecx, eax
call fcn.00406d70
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xaf4], esp
push eax
call fcn.00406c40
mov dword [ebp - 0xb44], eax
mov ecx, dword [ebp - 0xaf8]
call fcn.00413550
mov byte [ebp - 0xb45], al
movzx edx, byte [ebp - 0xb45]
test edx, edx
jne 0x412cd3
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6ac]
call fcn.0040b110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00416a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6d8]
call fcn.00409080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call fcn.00416a10
jmp 0x412d1e
jmp 0x412bf4
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6ac]
call fcn.0040b110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00416a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6d8]
call fcn.00409080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x448]
call fcn.00416a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ab62
mov esp, ebp
pop ebp
ret 4