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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2f8], eax
mov eax, dword [esi + 0x10]
add eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x2f0], ecx
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x2f4], esi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], edi
mov word [ebp - 0x20], cx
cmp eax, 7
je 0x409d04
push 1
push eax
lea eax, [ebp - 0x20]
call fcn.004085c0
test al, al
je 0x409d04
mov eax, dword [ebp - 0x20]
mov ebx, 8
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xc], ebx
jae 0x409cfd
lea eax, [ebp - 0x20]
xor ecx, ecx
mov word [eax], cx
jmp 0x409d09
mov ebx, 8
push edi
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x20]
call fcn.00408c70
push edi
lea edx, [ebp + 0xc]
push edx
or eax, 0xffffffff
call fcn.00408c70
push 1
mov eax, 0x401a10
mov ecx, esi
call fcn.00408790
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], ebx
jae 0x409d3b
mov eax, esi
push eax
lea eax, [ebp - 0x90]
call fcn.004081d0
add esp, 4
push 1
mov eax, 0x401a14
lea ecx, [ebp - 0x20]
call fcn.00408790
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], ebx
jae 0x409d64
lea eax, [ebp - 0x20]
push edi
push edi
push edi
lea ecx, [ebp - 0x2e0]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0x2ec], eax
cmp eax, 0xffffffff
jne 0x409deb
cmp dword [ebp - 0x7c], 0x10
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x409d99
mov edx, dword [ebp - 0x90]
push edx
call esi
add esp, 4
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], edi
mov byte [ebp - 0x90], 0
cmp dword [ebp - 0xc], ebx
jb 0x409db8
mov eax, dword [ebp - 0x20]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], edi
mov word [ebp - 0x20], cx
cmp dword [ebp + 0x20], ebx
jb 0x409dd6
mov edx, dword [ebp + 0xc]
push edx
call esi
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret 0x28
push 0x24
mov byte [ebp - 0x2e1], 1
mov dword [ebp - 0x300], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2e8], ebx
cmp ebx, edi
je 0x40a318
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
jmp 0x409e20
test byte [ebp - 0x2e0], 0x10
lea ecx, [ebp - 0x2b4]
je 0x409f8e
mov eax, 0x401a18
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409e5e
cmp dx, di
je 0x409e5a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409e5e
add eax, 4
add ecx, 4
cmp dx, di
jne 0x409e38
xor eax, eax
jmp 0x409e63
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x409f60
lea ecx, [ebp - 0x2b4]
mov eax, 0x401a1c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409e9c
cmp dx, di
je 0x409e98
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409e9c
add eax, 4
add ecx, 4
cmp dx, di
jne 0x409e76
xor eax, eax
jmp 0x409ea1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x409f60
lea ecx, [ebp - 0x2b4]
mov eax, 0x40179c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409eda
cmp dx, di
je 0x409ed6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409eda
add eax, 4
add ecx, 4
cmp dx, di
jne 0x409eb4
xor eax, eax
jmp 0x409edf
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x409f60
xor eax, eax
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409f00
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2b4]
lea esi, [ebp - 0x3c]
call fcn.004088c0
mov edx, dword [ebx + 4]
mov ecx, esi
push ecx
push edx
push ebx
call fcn.0040a890
mov ecx, 0x9249248
sub ecx, dword [ebp - 0x300]
cmp ecx, 1
jb 0x40a0e2
inc dword [ebp - 0x300]
mov dword [ebx + 4], eax
mov edx, dword [eax + 4]
mov dword [edx], eax
cmp dword [ebp - 0x28], 8
jb 0x409f60
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, 0xf
mov edx, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2e0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40a1e4
mov ebx, dword [ebp - 0x2e8]
xor edi, edi
jmp 0x409e20
push ecx
lea eax, [ebp - 0x3c]
call fcn.004081d0
add esp, 4
lea edx, [ebp - 0x90]
push edx
mov edi, eax
call fcn.0040ab00
mov esi, eax
lea eax, [ebp - 0x58]
mov ebx, 0xf
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, esi
je 0x40a006
xor edi, edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x58], 0
cmp dword [esi + 0x14], 0x10
jae 0x409fea
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
mov edx, eax
push esi
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x409ff1
mov eax, dword [esi]
mov dword [ebp - 0x58], eax
mov dword [esi], edi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x48], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x44], edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov byte [esi], 0
cmp dword [ebp - 0x28], 0x10
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x40a01b
mov eax, dword [ebp - 0x3c]
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a032
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x2f8]
lea ecx, [ebp - 0x74]
call fcn.0040a7c0
cmp dword [ebp - 0x44], 0x10
mov ecx, dword [ebp - 0x2f4]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x58]
jae 0x40a060
lea ecx, [ebp - 0x58]
add eax, ecx
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40a067
sub ecx, esi
push ecx
lea ecx, [ebp - 0x74]
call fcn.0040a6e0
cmp dword [ebp - 0x60], 0x10
mov edx, dword [ebp - 0x74]
jae 0x40a085
lea edx, [ebp - 0x74]
cmp dword [ebp - 0x44], 0x10
mov ecx, dword [ebp - 0x58]
jae 0x40a091
lea ecx, [ebp - 0x58]
mov esi, dword [ebp - 0x2f0]
call fcn.00409b80
mov byte [ebp - 0x2e1], al
test al, al
je 0x40a0ed
mov esi, 0x10
cmp dword [ebp - 0x60], esi
jb 0x40a0b9
mov edx, dword [ebp - 0x74]
push edx
call edi
add esp, 4
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp dword [ebp - 0x44], esi
jb 0x409f65
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x409f65
push 0x401ab0
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
xor eax, eax
mov word [ebp - 0x3c], ax
push 0x1b
mov eax, 0x401a24
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
call fcn.004088c0
mov ecx, dword [ebp - 0x2f4]
push 0
push ecx
or eax, 0xffffffff
call fcn.00408c70
push 0
lea edx, [ebp + 0xc]
push edx
or eax, 0xffffffff
call fcn.00408c70
push 1
mov eax, 0x401a10
mov ecx, esi
call fcn.00408790
lea eax, [ebp - 0x2b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a146
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2b4]
lea ecx, [ebp - 0x3c]
call fcn.00408790
mov eax, dword [ebp - 0x3c]
mov esi, 8
cmp dword [ebp - 0x28], esi
jae 0x40a174
lea eax, [ebp - 0x3c]
push 0x40000
push 0x401464
push eax
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x28], esi
jb 0x40a19d
mov edx, dword [ebp - 0x3c]
push edx
call edi
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0x60], esi
jb 0x40a1c4
mov ecx, dword [ebp - 0x74]
push ecx
call edi
add esp, 4
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp dword [ebp - 0x44], esi
jb 0x40a1e4
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x2c], 0
je 0x40a26d
cmp byte [ebp - 0x2e1], 0
je 0x40a26d
push 1
mov eax, 0x401a10
lea ecx, [ebp + 0xc]
call fcn.00408790
mov eax, dword [ebp - 0x2e8]
mov esi, dword [eax]
cmp esi, eax
je 0x40a26d
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp - 0x2f8]
push edx
push eax
sub esp, 0x1c
lea edx, [ebp + 0xc]
mov eax, esp
push edx
lea ebx, [esi + 8]
call fcn.0040aa00
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x2f0]
add esp, 4
push eax
call fcn.00409c90
mov byte [ebp - 0x2e1], al
test al, al
je 0x40a268
mov esi, dword [esi]
cmp esi, dword [ebp - 0x2e8]
jne 0x40a223
mov ebx, 0xf
mov eax, dword [ebp - 0x2e8]
mov esi, dword [eax]
mov dword [eax], eax
mov dword [eax + 4], eax
cmp esi, eax
je 0x40a29b
mov edi, edi
mov edi, dword [esi]
call fcn.0040aaa0
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, edi
cmp edi, dword [ebp - 0x2e8]
jne 0x40a280
mov ecx, dword [ebp - 0x2e8]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
push ecx
call edi
add esp, 4
cmp dword [ebp - 0x7c], 0x10
jb 0x40a2bf
mov edx, dword [ebp - 0x90]
push edx
call edi
add esp, 4
mov dword [ebp - 0x7c], ebx
xor esi, esi
mov ebx, 8
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x90], 0
cmp dword [ebp - 0xc], ebx
jb 0x40a2e1
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], cx
cmp dword [ebp + 0x20], ebx
jb 0x40a2ff
mov edx, dword [ebp + 0xc]
push edx
call edi
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2e1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret 0x28
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x304]
mov dword [ebp - 0x2ec], edi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x41bde8
lea ecx, [ebp - 0x304]
push ecx
mov dword [ebp - 0x304], 0x401794
call sub.MSVCR100.dll__CxxThrowException
int3