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

Disassembly:
push 0xffffffffffffffff
push 0x40b1ce
mov eax, dword fs:[0]
push eax
mov eax, 0x33f8
call fcn.0040abe0
mov eax, dword [0x410018]
xor eax, esp
mov dword [esp + 0x33f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x410018]
xor eax, esp
push eax
lea eax, [esp + 0x340c]
mov dword fs:[0], eax
mov dword [esp + 0x3414], 1
cmp dword [esp + 0x3434], 0x10
mov eax, dword [esp + 0x3420]
jae 0x407502
lea eax, [esp + 0x3420]
push 0xfde9
lea ecx, [esp + 0x140]
push eax
lea eax, [esp + 0x140]
mov dword [esp + 0x140], ecx
call fcn.00409390
lea edx, [esp + 0x14]
mov byte [esp + 0x3414], 2
mov ecx, dword [esp + 0x138]
push edx
call fcn.004091e0
mov byte [esp + 0x3414], 4
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x13c]
cmp eax, ecx
je 0x40755f
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x274]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x407ca2
nop
test byte [esp + 0x274], 0x10
je 0x407820
push 0x7fc
lea ecx, [esp + 0xbf8]
push 0
push ecx
mov dword [esp + 0xbfc], 0
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x2ac]
push edx
lea eax, [esp + 0xc00]
push 0x400
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
mov ecx, dword [0x40c6f0]
mov dx, word [0x40c6f4]
add esp, 0x18
xor eax, eax
mov dword [esp + 0x240], eax
mov dword [esp + 0x244], eax
mov dword [esp + 0x248], eax
mov dword [esp + 0x24c], eax
mov dword [esp + 0x4c4], ecx
mov dword [esp + 0x4ca], eax
mov dword [esp + 0x4ce], eax
mov dword [esp + 0x4d2], eax
mov word [esp + 0x4d6], ax
mov dword [esp + 0x23c], 0x2e
mov word [esp + 0x4c8], dx
lea ecx, [esp + 0x23c]
lea eax, [esp + 0xbf0]
jmp 0x407640
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407666
test dx, dx
je 0x407662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407666
add eax, 4
add ecx, 4
test dx, dx
jne 0x407640
xor eax, eax
jmp 0x40766b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407c7c
lea ecx, [esp + 0x4c4]
lea eax, [esp + 0xbf0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4076a7
test dx, dx
je 0x4076a3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4076a7
add eax, 4
add ecx, 4
test dx, dx
jne 0x407681
xor eax, eax
jmp 0x4076ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407c7c
push 0x1008
lea eax, [esp + 0x2404]
push 0
push eax
mov dword [esp + 0x2408], 0
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x20]
mov eax, edx
add esp, 0xc
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4076e0
sub eax, esi
sar eax, 1
lea ecx, [eax + eax - 2]
push ecx
push edx
lea edx, [esp + 0x2404]
push edx
call sub.MSVCR90.dll_memcpy
mov esi, dword [sym.imp.MSVCR90.dll_wcscat_s]
lea eax, [esp + 0x2ac]
push eax
lea ecx, [esp + 0x240c]
push 0x806
push ecx
call esi
push 0x40c778
lea edx, [esp + 0x2418]
push 0x806
push edx
call esi
add esp, 0x24
lea eax, [esp + 0x34]
push 0xfde9
lea ecx, [esp + 0x2400]
mov dword [esp + 0x34], eax
push ecx
lea eax, [esp + 0x38]
call fcn.004092d0
lea edx, [esp + 0x24]
mov byte [esp + 0x3414], 5
mov ecx, dword [esp + 0x30]
push edx
call fcn.00409140
mov byte [esp + 0x3414], 7
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x407788
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40c47c
lea ecx, [esp + 0x240]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x3414], 8
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x240]
call dword [0x40c150]
sub esp, 0x1c
lea eax, [esp + 0x3454]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x1c
lea edx, [esp + 0x274]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
mov byte [esp + 0x3450], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [esp + 0x344c], 8
call fcn.004074a0
add esp, 0x38
lea ecx, [esp + 0x23c]
mov byte [esp + 0x3414], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x3414], 4
mov eax, dword [esp + 0x24]
jmp 0x407c60
mov ebx, dword [esp + 0x294]
mov ebp, dword [esp + 0x290]
push 0x1008
lea ecx, [esp + 0x13f8]
push 0
push ecx
mov dword [esp + 0x13fc], 0
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x20]
mov eax, edx
add esp, 0xc
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407860
sub eax, esi
sar eax, 1
lea eax, [eax + eax - 2]
push eax
push edx
lea ecx, [esp + 0x13f8]
push ecx
call sub.MSVCR90.dll_memcpy
lea edx, [esp + 0x2ac]
push edx
lea eax, [esp + 0x1400]
push 0x806
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
add esp, 0x18
push 0xfde9
lea edx, [esp + 0x13f4]
lea ecx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
call fcn.004092d0
lea eax, [esp + 0x1c]
mov byte [esp + 0x3414], 0xa
mov ecx, dword [esp + 0x30]
push eax
call fcn.00409140
mov byte [esp + 0x3414], 0xc
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4078f2
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor edx, edx
push 0x21a
push edx
lea eax, [esp + 0x9de]
push eax
mov word [esp + 0x9e0], dx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407918
lea edi, [esp + 0x9d4]
sub eax, ecx
mov esi, ecx
dec edi
jmp 0x407930
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407930
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
jl 0x407c54
jg 0x407958
test ebx, ebx
jbe 0x407c54
cmp dword [esp + 0x3450], 0x10
mov eax, dword [esp + 0x343c]
jae 0x407970
lea eax, [esp + 0x343c]
push eax
lea ecx, [esp + 0x9d8]
push ecx
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
je 0x407c54
xor edx, edx
push 0xf8
push edx
lea eax, [esp + 0x4e2]
push eax
mov word [esp + 0x4e4], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push closesocket
lea ecx, [esp + 0x1408]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4079f3
push esi
lea edi, [esp + 0x4dc]
call fcn.00408f40
add esp, 4
test eax, eax
je 0x4079f3
mov edx, edi
push edx
push 0x40c67c
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x5de]
push ecx
mov word [esp + 0x5e0], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
test ebp, ebp
jl 0x407aaa
jg 0x407a2c
cmp ebx, 0x400
jbe 0x407aaa
test ebp, ebp
jl 0x407a72
jg 0x407a3a
cmp ebx, 0x100000
jbe 0x407a72
mov esi, dword [0x412d38]
mov edi, 0x10
cmp dword [0x412d4c], edi
jae 0x407a52
mov esi, 0x412d38
push 0
push 0x100000
push ebp
push ebx
call fcn.0040ac10
push edx
push eax
push esi
push str._s_ld_MB
lea edx, [esp + 0x5e4]
push edx
jmp 0x407ad1
mov esi, dword [0x412d38]
mov edi, 0x10
cmp dword [0x412d4c], edi
jae 0x407a8a
mov esi, 0x412d38
push 0
push 0x400
push ebp
push ebx
call fcn.0040ac10
push edx
push eax
push esi
push str._s_ld_KB
lea eax, [esp + 0x5e4]
push eax
jmp 0x407ad1
mov eax, dword [0x412d38]
mov edi, 0x10
cmp dword [0x412d4c], edi
jae 0x407ac1
mov eax, 0x412d38
push ebp
push ebx
push eax
push str._s__ld_
lea ecx, [esp + 0x5e4]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, dword [0x412d54]
add esp, 0x14
cmp dword [0x412d68], edi
jae 0x407aec
mov eax, 0x412d54
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407af0
lea edi, [esp + 0x5d4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407b01
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x4d8]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407b22
lea edi, [esp + 0x5d4]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407b35
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0xfde9
lea eax, [esp + 0x13f4]
and ecx, 3
lea edx, [esp + 0xbc]
push eax
lea eax, [esp + 0xbc]
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0xbc], edx
call fcn.004092d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x3414], 0xd
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.00409140
mov byte [esp + 0x3414], 0xf
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0xb8]
cmp eax, edx
je 0x407baf
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x40c47c
lea ecx, [esp + 0x25c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x3414], 0x10
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x25c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [esp + 0x5d4]
push ecx
lea ecx, [esp + 0x25c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x12
sub esp, 0x1c
lea edx, [esp + 0x278]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00407160
inc dword [0x4124c8]
add esp, 0x20
lea ecx, [esp + 0x258]
mov byte [esp + 0x3414], 0xf
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x3414], 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3414], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x274]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407580
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [0x4124c8]
mov byte [esp + 0x3414], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407cd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x341c]
mov byte [esp + 0x3414], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3438]
mov dword [esp + 0x3414], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x340c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x33f4]
xor ecx, esp
call fcn.00409cfa
add esp, 0x3404
ret