Function at 0x402cf0
Capabilities:
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40ce62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f0
mov eax, dword [0x410240]
xor eax, esp
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, dword [esp + 0x30c]
push edi
mov dword [esp + 0x2fc], eax
xor eax, eax
mov ecx, 0x4f
lea edi, [esp + 0xbc]
mov dword [esp + 0xb8], ebx
rep stosd dword es:[edi], eax
mov byte [esp + 0x1f8], bl
mov ecx, 0x40
lea edi, [esp + 0x1f9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, 0xf
stosb byte es:[edi], al
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
mov dword [esp + 0x308], ebx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov eax, esi
mov byte [esp + 0x308], 2
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402db0
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x88]
call fcn.00402070
push 4
push str..
lea ecx, [esp + 0x88]
mov byte [esp + 0x310], 3
call fcn.00402750
push esi
lea eax, [esp + 0x1fc]
push str._s.tmp
push eax
call fcn.004042cf
lea eax, [esp + 0x204]
add esp, 0xc
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402e10
sub eax, ecx
push eax
lea ecx, [esp + 0x1fc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402070
push 0x40d25c
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x314], 4
call fcn.00402900
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x314], 5
call fcn.00401f80
mov eax, dword [esp + 0x44]
mov edi, 0x10
cmp eax, edi
jb 0x402e79
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00404f12
add esp, 4
cmp dword [esp + 0x28], edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x308], 3
jb 0x402ea0
mov edx, dword [esp + 0x14]
push edx
call fcn.00404f12
add esp, 4
cmp dword [esp + 0x60], edi
mov eax, dword [esp + 0x4c]
jae 0x402eae
lea eax, [esp + 0x4c]
push eax
call fcn.00401540
mov eax, dword [esp + 0x64]
add esp, 4
cmp eax, edi
mov eax, dword [esp + 0x4c]
jae 0x402ec7
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [esp + 0x60], edi
mov ecx, dword [esp + 0x4c]
jae 0x402edc
lea ecx, [esp + 0x4c]
or eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x98], edi
mov eax, dword [esp + 0x84]
jae 0x402efe
lea eax, [esp + 0x84]
lea ecx, [esp + 0xb8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402fa3
cmp dword [esp + 0x98], edi
jb 0x402f31
mov edx, dword [esp + 0x84]
push edx
call fcn.00404f12
add esp, 4
cmp dword [esp + 0x60], edi
mov esi, 0xf
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
jb 0x402f5e
mov eax, dword [esp + 0x4c]
push eax
call fcn.00404f12
add esp, 4
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x402f7d
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00404f12
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jb 0x40319b
mov edx, dword [esp + 0xa0]
push edx
jmp 0x403193
lea eax, [esp + 0xe4]
push 0x40d1f8
push eax
call fcn.00403fe6
add esp, 8
test eax, eax
je 0x4030f3
lea ecx, [esp + 0xe4]
push 0x40d1f4
push ecx
call fcn.00403fe6
add esp, 8
test eax, eax
je 0x4030f3
test byte [esp + 0xb8], 0x10
jne 0x4030f3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402ff0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x6c]
call fcn.00402070
push 1
push 0x40d25c
lea ecx, [esp + 0x6c]
call fcn.00402750
lea eax, [esp + 0xe4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403020
sub eax, edx
push eax
lea edx, [esp + 0xe8]
push edx
lea ecx, [esp + 0x6c]
call fcn.00402750
lea eax, [esp + 0x1f8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403045
sub eax, edx
push eax
lea eax, [esp + 0x1fc]
push eax
lea ecx, [esp + 0xa4]
call fcn.00402070
push 1
push 0x40d25c
lea ecx, [esp + 0xa4]
call fcn.00402750
lea eax, [esp + 0xe4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403080
sub eax, edx
push eax
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0xa4]
call fcn.00402750
cmp dword [esp + 0xb4], edi
mov ecx, dword [esp + 0xa0]
jae 0x4030b5
lea ecx, [esp + 0xa0]
cmp dword [esp + 0x7c], edi
mov eax, dword [esp + 0x68]
jae 0x4030c3
lea eax, [esp + 0x68]
push 1
push ecx
push eax
call fcn.00401290
add esp, 0xc
test eax, eax
je 0x4030f3
cmp dword [esp + 0xb4], edi
mov eax, dword [esp + 0xa0]
jae 0x4030ea
lea eax, [esp + 0xa0]
push eax
call fcn.00401280
add esp, 4
lea edx, [esp + 0xb8]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402fa3
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x98], edi
jb 0x40312a
mov eax, dword [esp + 0x84]
push eax
call fcn.00404f12
add esp, 4
cmp dword [esp + 0x60], edi
mov esi, 0xf
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
jb 0x403157
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00404f12
add esp, 4
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x403176
mov edx, dword [esp + 0x68]
push edx
call fcn.00404f12
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jb 0x40319b
mov eax, dword [esp + 0xa0]
push eax
call fcn.00404f12
add esp, 4
mov ecx, dword [esp + 0x300]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2f0]
pop ebx
xor ecx, esp
call fcn.00404293
add esp, 0x2fc
ret 4