Function at 0x40130b
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x43cb3c
call fcn.0041d79c
sub esp, 0x2a4
push ebx
push esi
push edi
mov ebx, ecx
and byte [ebp - 0x2b0], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x2af]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
cmp byte [ebp + 0x1c], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x40137f
mov esi, dword [ebp + 0xc]
mov edx, 0x440680
test esi, esi
jne 0x40134f
mov esi, edx
mov eax, dword [ebx + 0x88]
mov ecx, edx
test eax, eax
je 0x40135d
mov ecx, eax
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x401366
mov eax, edx
push esi
push ecx
push eax
lea eax, [ebp - 0x2b0]
push str._s_s_s.
push eax
call fcn.0041d950
add esp, 0x14
jmp 0x4013c4
push dword [0x44067c]
lea eax, [ebp + 8]
lea ecx, [ebx + 0x84]
push 0
push eax
call fcn.00402a76
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4013a2
mov ecx, 0x440680
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x4013ae
mov eax, 0x440680
push ecx
push eax
lea eax, [ebp - 0x2b0]
push str._s_s.
push eax
call fcn.0041d950
add esp, 0x10
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x401681
mov esi, dword [sym.imp.USER32.dll_CharLowerA]
mov edi, 0x44e1c8
cmp dword [ebp - 0x1b0], 0x10
je 0x401573
cmp dword [ebp - 0x1b0], 0x30
je 0x401573
lea eax, [ebp - 0x184]
push str..dir
push eax
call fcn.0041d8d0
pop ecx
test eax, eax
pop ecx
jne 0x401669
lea eax, [ebp - 0x184]
push str..src2
push eax
call fcn.0041d8d0
pop ecx
test eax, eax
pop ecx
jne 0x401669
lea eax, [ebp - 0x184]
push str..exe
push eax
call fcn.0041d8d0
pop ecx
test eax, eax
pop ecx
jne 0x401669
lea eax, [ebp - 0x184]
push str..src
push eax
call fcn.0041d8d0
pop ecx
test eax, eax
pop ecx
jne 0x401669
lea eax, [ebp - 0x184]
push str..hdr
push eax
call fcn.0041d8d0
pop ecx
test eax, eax
pop ecx
jne 0x401669
lea eax, [ebp - 0x184]
push str..lst
push eax
call fcn.0041d8d0
pop ecx
test eax, eax
pop ecx
jne 0x401669
cmp byte [ebp + 0x1c], al
je 0x40151c
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00403714
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403714
add esp, 0x18
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00402b70
cmp dword [ebp - 0x1c], 0
je 0x4014f7
lea ecx, [ebp - 0x20]
call fcn.00402b44
mov eax, dword [ebp - 0x1c]
jmp 0x4014fc
mov eax, 0x440680
push eax
call esi
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x94]
push eax
call fcn.00402a65
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x20]
jmp 0x401664
lea eax, [ebp - 0x184]
push eax
call esi
mov al, byte [ebp + 0x1f]
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], al
call fcn.00402b70
lea eax, [ebp - 0x184]
push eax
call fcn.0041d7c0
pop ecx
push eax
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402d52
lea eax, [ebp - 0x50]
lea ecx, [ebx + 0x94]
push eax
mov byte [ebp - 4], 8
call fcn.00402a65
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x50]
jmp 0x401664
lea eax, [ebp - 0x184]
push 0x44e194
push eax
call fcn.0041d840
pop ecx
test eax, eax
pop ecx
je 0x401669
lea eax, [ebp - 0x184]
push 0x44e190
push eax
call fcn.0041d840
pop ecx
test eax, eax
pop ecx
je 0x401669
cmp byte [ebp + 0x1c], 0
je 0x401615
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00403714
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403714
add esp, 0x18
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00402b70
cmp dword [ebp - 0x2c], 0
je 0x4015f6
lea ecx, [ebp - 0x30]
call fcn.00402b44
mov eax, dword [ebp - 0x2c]
jmp 0x4015fb
mov eax, 0x440680
push eax
call esi
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x30]
push eax
call fcn.00402a65
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x30]
jmp 0x401664
lea eax, [ebp - 0x184]
push eax
call esi
mov al, byte [ebp + 0x1f]
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
call fcn.00402b70
lea eax, [ebp - 0x184]
push eax
call fcn.0041d7c0
pop ecx
push eax
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402d52
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.00402a65
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00402b70
lea eax, [ebp - 0x1b0]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4013ef
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
and byte [ebx + 0x6c], 0
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.00402b70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18