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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d599
mov eax, dword fs:[0]
push eax
sub esp, 0x3c4
mov eax, dword [0x496d50]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x30]
mov dword [ebp - 0x3ac], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x3bc], ecx
mov ecx, dword [ebp + 0x3c]
mov dword [ebp - 0x3c0], edx
mov edx, dword [ebp + 0x40]
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x3a4], ecx
mov dword [ebp - 0x3b8], edx
mov dword [ebp - 0x3b4], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], cx
xor edx, edx
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x134], ebx
mov word [ebp - 0x144], dx
xor eax, eax
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], ebx
mov word [ebp - 0x128], ax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 5
push ebx
push 0x473064
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xfc], ebx
mov word [ebp - 0x10c], ax
call fcn.00401740
mov byte [ebp - 4], 6
xor ecx, ecx
push 0x18
mov word [ebp - 0x48], cx
push 0x474adc
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
call fcn.00401740
mov byte [ebp - 4], 7
call fcn.0043a1b1
mov edi, eax
mov dword [ebp - 0x3a0], edi
call fcn.0043a06b
push ebx
lea ecx, [ebp - 0x39c]
mov esi, eax
call fcn.00439fa0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x4096c1
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x39c]
call fcn.00439fc8
mov eax, dword [ebp - 0x3b4]
lea edx, [ebp - 0x3a0]
push edx
lea ecx, [ebp - 0x48]
push 0x474ab0
add eax, 0x1dc
push ecx
mov byte [ebp - 4], 8
call fcn.00414fc0
add esp, 0xc
mov byte [ebp - 4], 7
cmp edi, ebx
je 0x40973b
push ebx
lea ecx, [ebp - 0x3a0]
call fcn.00439fa0
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x409717
cmp eax, 0xffffffff
jae 0x409717
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [ebp - 0x3a0]
and esi, edi
call fcn.00439fc8
cmp esi, ebx
je 0x40973b
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
call fcn.0043a1b1
mov dword [ebp - 0x39c], eax
call fcn.0043a06b
push ebx
lea ecx, [ebp - 0x3a0]
mov esi, eax
call fcn.00439fa0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x409765
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x3a0]
call fcn.00439fc8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov eax, ecx
cmp edx, 8
jae 0x409786
lea eax, [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x38]
lea ecx, [ecx + edx*2]
cmp eax, ecx
je 0x4097ab
lea edx, [ebp - 0x39c]
push edx
push eax
lea edx, [ebp - 0x3a8]
push edx
mov ebx, ecx
call fcn.00417fd0
add esp, 0xc
xor ebx, ebx
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x39c]
cmp edi, ebx
je 0x4097f9
push ebx
lea ecx, [ebp - 0x3a0]
call fcn.00439fa0
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x4097d5
cmp eax, 0xffffffff
jae 0x4097d5
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [ebp - 0x3a0]
and esi, edi
call fcn.00439fc8
cmp esi, ebx
je 0x4097f9
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x144]
call fcn.004015e0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0xd4]
call fcn.004015e0
push 1
mov eax, 0x47469c
lea esi, [ebp - 0xd4]
call fcn.00412040
cmp dword [ebp - 0xc0], 8
mov eax, dword [ebp - 0xd4]
jae 0x409840
mov eax, esi
lea edx, [ebp - 0x398]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x39c], eax
mov edi, 7
lea esp, [esp]
cmp dword [ebp - 0x39c], 0xffffffff
je 0x409fd0
mov ecx, 0x4746a0
lea eax, [ebp - 0x36c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40989e
cmp dx, bx
je 0x40989a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40989e
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x409878
xor eax, eax
jmp 0x4098a3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x409fd0
mov ecx, 0x4746a4
lea eax, [ebp - 0x36c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4098dc
cmp dx, bx
je 0x4098d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4098dc
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4098b6
xor eax, eax
jmp 0x4098e1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x409fd0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x64]
call fcn.004015e0
lea eax, [ebp - 0x36c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409904
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x36c]
lea esi, [ebp - 0x64]
call fcn.00412040
mov eax, dword [ebp - 0x398]
test al, 0x10
je 0x409ccc
test eax, 0x400
je 0x409c3c
lea ecx, [ebp - 0x10c]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3a8], esp
push 0xffffffffffffffff
push ebx
mov eax, esi
xor edx, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.004015e0
lea esi, [ebp - 0x80]
call fcn.0040a140
add esp, 0x20
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.00401560
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], 8
jb 0x409991
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0044e60d
add esp, 4
cmp dword [ebp - 0x1c], ebx
jne 0x4099bc
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004015e0
cmp dword [ebp - 0x1c], ebx
jne 0x4099bc
push 0x10
push 0x474b10
lea ecx, [ebp - 0x2c]
call fcn.00401740
mov eax, 0x473064
mov ecx, eax
push ecx
mov ecx, dword [ebp - 0x3c4]
push eax
sub esp, 0xc
mov eax, esp
mov edx, 0x474b34
mov dword [eax], edx
lea edx, [ebp - 0x2c]
mov esi, 0x474b3c
mov dword [eax + 4], esi
push edx
mov dword [eax + 8], ecx
call fcn.004170f0
mov eax, 0x473064
add esp, 0x18
mov ecx, eax
push ecx
mov ecx, dword [ebp - 0x3c4]
push eax
sub esp, 0xc
mov eax, esp
mov edx, 0x474b40
mov dword [eax], edx
lea edx, [ebp - 0x2c]
mov esi, 0x474b46
mov dword [eax + 4], esi
push edx
mov dword [eax + 8], ecx
call fcn.004170f0
add esp, 0x18
cmp dword [ebp + 0x34], ebx
jne 0x409b25
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x409a35
lea eax, [ebp - 0x48]
mov edi, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00410890
test eax, eax
je 0x409b25
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x409a58
lea eax, [ebp - 0x64]
push 0x474b48
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x409b25
sub esp, 0x1c
lea eax, [ebp - 0x64]
mov ecx, esp
mov dword [ebp - 0x3a8], esp
push eax
call fcn.0040eaa0
mov ecx, dword [ebp - 0x3b8]
call fcn.00426440
add esp, 0x1c
test eax, eax
je 0x409aa5
mov ecx, dword [ebp - 0x3b4]
cmp dword [ecx + 0x350], 0
je 0x409fc6
mov esi, dword [ebp - 0x3bc]
cmp dword [esi], 0
jne 0x409ac1
mov edx, dword [ebp - 0x3a4]
push edx
mov eax, 0x474c08
call fcn.0040eb50
lea eax, [ebp - 0x9c]
push 0x474640
push eax
lea ebx, [ebp - 0x64]
mov dword [esi], 1
call fcn.00414e00
push eax
mov eax, 0x474bf8
lea edi, [ebp - 0xb8]
mov byte [ebp - 4], 0xf
call fcn.00414ee0
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 0x10
call fcn.00415040
push eax
mov eax, 0x474c8c
lea edi, [ebp - 0xf0]
mov byte [ebp - 4], 0x11
call fcn.00414ee0
add esp, 4
mov byte [ebp - 4], 0x12
jmp 0x409e58
mov ecx, dword [ebp - 0x3ac]
cmp dword [ecx], 0
jne 0x409b42
mov esi, dword [ebp - 0x3b0]
push 0x38
mov eax, 0x474b70
call fcn.00412040
mov edx, dword [ebp - 0x3ac]
lea eax, [ebp - 0xf0]
push 0x474640
push eax
lea ebx, [ebp - 0x64]
mov dword [edx], 1
call fcn.00414e00
push eax
mov eax, 0x474bf8
lea edi, [ebp - 0x80]
mov byte [ebp - 4], 0xb
call fcn.00414ee0
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0xb8]
mov byte [ebp - 4], 0xc
call fcn.00415040
push eax
mov eax, 0x474be4
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 0xd
call fcn.00414ee0
add esp, 4
mov ecx, dword [ebp - 0x3b0]
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov byte [ebp - 4], 0xe
call fcn.00411f30
mov esi, 8
cmp dword [ebp - 0x88], esi
jb 0x409bd4
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0044e60d
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0xa4], esi
jb 0x409c05
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0044e60d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], edi
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x6c], esi
jb 0x409c2b
mov edx, dword [ebp - 0x80]
push edx
call fcn.0044e60d
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
jmp 0x409fac
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x128]
call fcn.004015e0
push 1
mov eax, 0x4743e0
lea esi, [ebp - 0x128]
call fcn.00412040
mov eax, dword [ebp - 0x3b4]
mov ecx, dword [ebp - 0x3b8]
mov edx, dword [ebp - 0x3a4]
push eax
mov eax, dword [ebp - 0x3b0]
push ecx
mov ecx, dword [ebp + 0x34]
push edx
mov edx, dword [ebp - 0x3c0]
push eax
push ecx
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3a8], esp
push 0xffffffffffffffff
push ebx
mov edx, esi
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.004015e0
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [ebp - 0x3ac]
push esi
push eax
push ecx
call fcn.00409580
add esp, 0x40
add esi, eax
mov dword [ebp + 0x10], esi
jmp 0x409fd0
test eax, 0x400
je 0x409fd0
lea edx, [ebp - 0x10c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3a8], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x64]
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.004015e0
lea esi, [ebp - 0xf0]
call fcn.0040a140
add esp, 0x20
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.00401560
mov byte [ebp - 4], 7
cmp dword [ebp - 0xdc], 8
jb 0x409d37
mov eax, dword [ebp - 0xf0]
push eax
call fcn.0044e60d
add esp, 4
cmp dword [ebp - 0x1c], ebx
jne 0x409d62
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004015e0
cmp dword [ebp - 0x1c], ebx
jne 0x409d62
push 0x10
push 0x474b10
lea ecx, [ebp - 0x2c]
call fcn.00401740
cmp dword [ebp + 0x34], ebx
jne 0x409e9a
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x409d77
lea eax, [ebp - 0x48]
mov edi, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00410890
test eax, eax
je 0x409e9a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3a8], esp
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x64]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.004015e0
mov ecx, dword [ebp - 0x3b8]
call fcn.00426440
add esp, 0x1c
test eax, eax
je 0x409ddd
mov ecx, dword [ebp - 0x3b4]
cmp dword [ecx + 0x350], 0
je 0x409fc6
mov esi, dword [ebp - 0x3bc]
cmp dword [esi], 0
jne 0x409df9
mov edx, dword [ebp - 0x3a4]
push edx
mov eax, 0x474cb8
call fcn.0040eb50
lea eax, [ebp - 0x9c]
push 0x474640
push eax
lea ebx, [ebp - 0x64]
mov dword [esi], 1
call fcn.00414e00
push eax
mov eax, 0x474bf8
lea edi, [ebp - 0xb8]
mov byte [ebp - 4], 0x18
call fcn.00414ee0
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 0x19
call fcn.00415040
push eax
mov eax, 0x474ca0
lea edi, [ebp - 0xf0]
mov byte [ebp - 4], 0x1a
call fcn.00414ee0
add esp, 4
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x3a4]
push 0xffffffffffffffff
push 0
push eax
call fcn.00411f30
lea ecx, [ebp - 0xf0]
call fcn.00401500
lea ecx, [ebp - 0x80]
call fcn.00401500
lea ecx, [ebp - 0xb8]
call fcn.00401500
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.00401500
jmp 0x409fc6
mov ecx, dword [ebp - 0x3ac]
cmp dword [ecx], 0
jne 0x409eb7
mov esi, dword [ebp - 0x3b0]
push 0x38
mov eax, 0x474b70
call fcn.00412040
mov edx, dword [ebp - 0x3ac]
lea eax, [ebp - 0xf0]
push 0x474640
push eax
lea ebx, [ebp - 0x64]
mov dword [edx], 1
call fcn.00414e00
push eax
mov eax, 0x474bf8
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 0x14
call fcn.00414ee0
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0xb8]
mov byte [ebp - 4], 0x15
call fcn.00415040
push eax
mov eax, 0x474ca0
lea edi, [ebp - 0x80]
mov byte [ebp - 4], 0x16
call fcn.00414ee0
add esp, 4
mov ecx, dword [ebp - 0x3b0]
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
mov byte [ebp - 4], 0x17
call fcn.00411f30
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x409f43
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0044e60d
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], dx
cmp dword [ebp - 0xa4], esi
jb 0x409f6b
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0044e60d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], edi
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x88], esi
jb 0x409f97
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0044e60d
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0xdc], esi
jb 0x409fc6
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.0044e60d
add esp, 4
inc dword [ebp + 0x10]
mov edi, 7
xor ebx, ebx
mov eax, dword [ebp - 0x39c]
lea edx, [ebp - 0x398]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409860
mov ecx, dword [ebp - 0x39c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x40a00f
mov edx, dword [ebp - 0x48]
push edx
call fcn.0044e60d
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0xf8], esi
jb 0x40a032
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.0044e60d
add esp, 4
xor edx, edx
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xfc], ebx
mov word [ebp - 0x10c], dx
cmp dword [ebp - 0x18], esi
jb 0x40a058
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0044e60d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], esi
jb 0x40a075
mov edx, dword [ebp - 0x64]
push edx
call fcn.0044e60d
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x114], esi
jb 0x40a098
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.0044e60d
add esp, 4
xor edx, edx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ebx
mov word [ebp - 0x128], dx
cmp dword [ebp - 0x130], esi
jb 0x40a0c4
mov eax, dword [ebp - 0x144]
push eax
call fcn.0044e60d
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x134], ebx
mov word [ebp - 0x144], cx
cmp dword [ebp - 0xc0], esi
jb 0x40a0f0
mov edx, dword [ebp - 0xd4]
push edx
call fcn.0044e60d
add esp, 4
xor eax, eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], ax
cmp dword [ebp + 0x28], esi
jb 0x40a116
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0044e60d
add esp, 4
mov eax, dword [ebp + 0x10]
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.0044e488
mov esp, ebp
pop ebp
ret