Function at 0x41a1c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
mov eax, dword [0x44dd60]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x41a1de
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x20
jg 0x41a1f5
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jl 0x41a1f5
jmp 0x41a1d5
push 0x10
call fcn.0041b8d0
add esp, 4
mov dword [ebp - 0x20c], eax
mov edx, dword [ebp - 0x20c]
mov dword [edx], 1
mov eax, dword [ebp - 0x20c]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x20c]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x20c]
mov dword [edx + 0xc], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x41a24d
mov eax, dword [ebp - 0x20c]
jmp 0x41a7e8
mov byte [ebp - 0x411], 0
push 0x1ff
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x41c], ecx
lea edx, [ebp - 0x410]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
cmp eax, 2
jb 0x41a2db
movsx eax, byte [ebp - 0x40f]
cmp eax, 0x3a
jne 0x41a2db
movsx ecx, byte [ebp - 0x410]
push ecx
call dword [sym.imp.MSVCR100.dll_toupper]
add esp, 4
cmp eax, 0x5a
jg 0x41a2db
movsx edx, byte [ebp - 0x410]
push edx
call dword [sym.imp.MSVCR100.dll_toupper]
add esp, 4
cmp eax, 0x41
jl 0x41a2db
mov eax, dword [ebp - 0x41c]
add eax, 2
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x411], 1
push 0x2f
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.0041b000
add esp, 8
mov dword [ebp - 0x420], eax
push 0x5c
mov edx, dword [ebp - 0x41c]
push edx
call fcn.0041b000
add esp, 8
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
cmp eax, dword [ebp - 0x420]
jbe 0x41a325
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x418], ecx
jmp 0x41a331
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x418], edx
cmp dword [ebp - 0x418], 0
jne 0x41a355
movzx eax, byte [ebp - 0x411]
test eax, eax
je 0x41a355
mov byte [ebp - 0x40e], 0
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x418], 0
je 0x41a387
mov edx, dword [ebp - 0x418]
lea eax, [ebp - 0x410]
sub edx, eax
mov ecx, dword [ebp + 8]
lea edx, [ecx + edx + 1]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x418]
mov byte [eax + 1], 0
mov byte [ebp - 0x411], 1
mov cl, byte [0x449624]
mov byte [ebp - 0x208], cl
push 0x1ff
push 0
lea edx, [ebp - 0x207]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], 0
movzx eax, byte [ebp - 0x411]
test eax, eax
jne 0x41a3d8
mov byte [ebp - 0x410], 0x2e
mov byte [ebp - 0x40f], 0x5c
mov byte [ebp - 0x40e], 0
jmp 0x41a465
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x208]
push edx
call sub.MSVCR100.dll_strcpy
add esp, 8
lea eax, [ebp - 0x410]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
mov dl, byte [ebp + ecx - 0x209]
mov byte [ebp - 0x425], dl
movsx eax, byte [ebp - 0x425]
cmp eax, 0x2f
je 0x41a465
movsx ecx, byte [ebp - 0x425]
cmp ecx, 0x5c
je 0x41a465
movsx edx, byte [ebp - 0x425]
cmp edx, 0x3a
je 0x41a465
mov eax, dword [ebp - 0x210]
mov byte [ebp + eax - 0x208], 0x5c
mov ecx, dword [ebp - 0x210]
mov byte [ebp + ecx - 0x207], 0
mov edx, dword [ebp - 0x210]
add edx, 1
mov dword [ebp - 0x210], edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x770]
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
push 0x449628
lea edx, [ebp - 0x770]
push edx
call sub.MSVCR100.dll_strcat
add esp, 8
lea eax, [ebp - 0x568]
push eax
lea ecx, [ebp - 0x770]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x56c], eax
cmp dword [ebp - 0x56c], 0xffffffff
jne 0x41a4bd
mov eax, dword [ebp - 0x20c]
jmp 0x41a7e8
push 0x44962c
lea edx, [ebp - 0x53c]
push edx
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
je 0x41a693
push 0x449630
lea eax, [ebp - 0x53c]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
je 0x41a693
push 0
lea ecx, [ebp - 0x53c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041a090
add esp, 0xc
test eax, eax
je 0x41a693
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x20c]
mov edx, dword [eax + 4]
cmp edx, dword [ecx]
jne 0x41a5c8
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
add ecx, 0x32
mov edx, dword [ebp - 0x20c]
mov dword [edx], ecx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
lea edx, [ecx*4 + 0xc]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call fcn.0041b8f0
add esp, 8
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x20c]
lea ecx, [eax + edx*4 + 0xc]
mov dword [ebp - 0x774], ecx
mov edx, dword [ebp - 0x20c]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [edx]
sub ecx, dword [eax + 4]
mov dword [ebp - 0x778], ecx
jmp 0x41a5b1
mov edx, dword [ebp - 0x774]
add edx, 4
mov dword [ebp - 0x774], edx
mov eax, dword [ebp - 0x778]
sub eax, 1
mov dword [ebp - 0x778], eax
cmp dword [ebp - 0x778], 0
jbe 0x41a5c8
mov ecx, dword [ebp - 0x774]
mov dword [ecx], 0
jmp 0x41a593
movzx edx, byte [ebp - 0x411]
test edx, edx
jne 0x41a610
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x20c]
mov dword [ecx + edx*4 + 0xc], eax
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x20c]
mov dword [ecx + 4], eax
jmp 0x41a693
lea edx, [ebp - 0x53c]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x210]
lea edx, [ecx + eax + 1]
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x77c], eax
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x77c]
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
lea edx, [ebp - 0x53c]
push edx
mov eax, dword [ebp - 0x77c]
push eax
call sub.MSVCR100.dll_strcat
add esp, 8
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x77c]
mov dword [eax + edx*4 + 0xc], ecx
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x20c]
mov dword [ecx + 4], eax
lea edx, [ebp - 0x568]
push edx
mov eax, dword [ebp - 0x56c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41a4bd
mov ecx, dword [ebp - 0x56c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx edx, byte [ebp - 0x411]
test edx, edx
je 0x41a7d5
xor eax, eax
je 0x41a7d5
lea ecx, [ebp - 0x410]
push ecx
call sub.MSVCR100.dll_strlen
add esp, 4
mov dword [ebp - 0x780], eax
mov edx, dword [ebp - 0x780]
movsx eax, byte [ebp + edx - 0x411]
cmp eax, 0x2f
je 0x41a73d
mov ecx, dword [ebp - 0x780]
movsx edx, byte [ebp + ecx - 0x411]
cmp edx, 0x5c
je 0x41a73d
mov eax, dword [ebp - 0x780]
movsx ecx, byte [ebp + eax - 0x411]
cmp ecx, 0x3a
je 0x41a73d
mov edx, dword [ebp - 0x780]
mov byte [ebp + edx - 0x410], 0x5c
mov eax, dword [ebp - 0x780]
mov byte [ebp + eax - 0x40f], 0
mov ecx, dword [ebp - 0x20c]
add ecx, 0xc
mov dword [ebp - 0x784], ecx
mov edx, dword [ebp - 0x20c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x788], eax
jmp 0x41a77b
mov ecx, dword [ebp - 0x784]
add ecx, 4
mov dword [ebp - 0x784], ecx
mov edx, dword [ebp - 0x788]
sub edx, 1
mov dword [ebp - 0x788], edx
cmp dword [ebp - 0x788], 0
jbe 0x41a7d5
mov eax, dword [ebp - 0x784]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x410]
push edx
push str._s_s
lea eax, [ebp - 0x988]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
mov ecx, dword [ebp - 0x784]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea eax, [ebp - 0x988]
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x784]
mov dword [ecx], eax
jmp 0x41a75d
mov edx, dword [ebp - 0x20c]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004297b0
mov esp, ebp
pop ebp
ret