Function at 0x4539e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
mov eax, dword [0x470530]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x4539fe
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 0x453a15
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jl 0x453a15
jmp 0x4539f5
push 0x10
call fcn.00454df0
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 0x453a6d
mov eax, dword [ebp - 0x20c]
jmp 0x454008
mov byte [ebp - 0x411], 0
push 0x1ff
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x41c], ecx
lea edx, [ebp - 0x410]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
cmp eax, 2
jb 0x453afb
movsx eax, byte [ebp - 0x40f]
cmp eax, 0x3a
jne 0x453afb
movsx ecx, byte [ebp - 0x410]
push ecx
call dword [sym.imp.MSVCR90.dll_toupper]
add esp, 4
cmp eax, 0x5a
jg 0x453afb
movsx edx, byte [ebp - 0x410]
push edx
call dword [sym.imp.MSVCR90.dll_toupper]
add esp, 4
cmp eax, 0x41
jl 0x453afb
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.00453600
add esp, 8
mov dword [ebp - 0x420], eax
push 0x5c
mov edx, dword [ebp - 0x41c]
push edx
call fcn.00453600
add esp, 8
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
cmp eax, dword [ebp - 0x420]
jbe 0x453b45
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x418], ecx
jmp 0x453b51
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x418], edx
cmp dword [ebp - 0x418], 0
jne 0x453b75
movzx eax, byte [ebp - 0x411]
test eax, eax
je 0x453b75
mov byte [ebp - 0x40e], 0
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x418], 0
je 0x453ba7
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 [0x468018]
mov byte [ebp - 0x208], cl
push 0x1ff
push 0
lea edx, [ebp - 0x207]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x210], 0
movzx eax, byte [ebp - 0x411]
test eax, eax
jne 0x453bf8
mov byte [ebp - 0x410], 0x2e
mov byte [ebp - 0x40f], 0x5c
mov byte [ebp - 0x40e], 0
jmp 0x453c85
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x208]
push edx
call sub.MSVCR90.dll_strcpy
add esp, 8
lea eax, [ebp - 0x410]
push eax
call sub.MSVCR90.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 0x453c85
movsx ecx, byte [ebp - 0x425]
cmp ecx, 0x5c
je 0x453c85
movsx edx, byte [ebp - 0x425]
cmp edx, 0x3a
je 0x453c85
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.MSVCR90.dll_strcpy
add esp, 8
push 0x46801c
lea edx, [ebp - 0x770]
push edx
call sub.MSVCR90.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 0x453cdd
mov eax, dword [ebp - 0x20c]
jmp 0x454008
push 0x468020
lea edx, [ebp - 0x53c]
push edx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
je 0x453eb3
push 0x468024
lea eax, [ebp - 0x53c]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
je 0x453eb3
push 0
lea ecx, [ebp - 0x53c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004538b0
add esp, 0xc
test eax, eax
je 0x453eb3
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x20c]
mov edx, dword [eax + 4]
cmp edx, dword [ecx]
jne 0x453de8
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.00454e10
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 0x453dd1
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 0x453de8
mov ecx, dword [ebp - 0x774]
mov dword [ecx], 0
jmp 0x453db3
movzx edx, byte [ebp - 0x411]
test edx, edx
jne 0x453e30
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.MSVCR90.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 0x453eb3
lea edx, [ebp - 0x53c]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x210]
lea edx, [ecx + eax + 1]
push edx
call dword [sym.imp.MSVCR90.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.MSVCR90.dll_strcpy
add esp, 8
lea edx, [ebp - 0x53c]
push edx
mov eax, dword [ebp - 0x77c]
push eax
call sub.MSVCR90.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 0x453cdd
mov ecx, dword [ebp - 0x56c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx edx, byte [ebp - 0x411]
test edx, edx
je 0x453ff5
xor eax, eax
je 0x453ff5
lea ecx, [ebp - 0x410]
push ecx
call sub.MSVCR90.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 0x453f5d
mov ecx, dword [ebp - 0x780]
movsx edx, byte [ebp + ecx - 0x411]
cmp edx, 0x5c
je 0x453f5d
mov eax, dword [ebp - 0x780]
movsx ecx, byte [ebp + eax - 0x411]
cmp ecx, 0x3a
je 0x453f5d
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 0x453f9b
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 0x453ff5
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.MSVCR90.dll_sprintf]
add esp, 0x10
mov ecx, dword [ebp - 0x784]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea eax, [ebp - 0x988]
push eax
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x784]
mov dword [ecx], eax
jmp 0x453f7d
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.004555a2
mov esp, ebp
pop ebp
ret