Function at 0x4372c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
mov eax, dword [0x486d20]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x4372de
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 0x4372f5
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jl 0x4372f5
jmp 0x4372d5
push 0x10
call fcn.00438730
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 0x43734d
mov eax, dword [ebp - 0x20c]
jmp 0x4378e8
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 0x4373db
movsx eax, byte [ebp - 0x40f]
cmp eax, 0x3a
jne 0x4373db
movsx ecx, byte [ebp - 0x410]
push ecx
call dword [sym.imp.MSVCR100.dll_toupper]
add esp, 4
cmp eax, 0x5a
jg 0x4373db
movsx edx, byte [ebp - 0x410]
push edx
call dword [sym.imp.MSVCR100.dll_toupper]
add esp, 4
cmp eax, 0x41
jl 0x4373db
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.004380f0
add esp, 8
mov dword [ebp - 0x420], eax
push 0x5c
mov edx, dword [ebp - 0x41c]
push edx
call fcn.004380f0
add esp, 8
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
cmp eax, dword [ebp - 0x420]
jbe 0x437425
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x418], ecx
jmp 0x437431
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x418], edx
cmp dword [ebp - 0x418], 0
jne 0x437455
movzx eax, byte [ebp - 0x411]
test eax, eax
je 0x437455
mov byte [ebp - 0x40e], 0
mov ecx, dword [ebp + 8]
add ecx, 2
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x418], 0
je 0x437487
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 [0x47ccb0]
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 0x4374d8
mov byte [ebp - 0x410], 0x2e
mov byte [ebp - 0x40f], 0x5c
mov byte [ebp - 0x40e], 0
jmp 0x437565
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 0x437565
movsx ecx, byte [ebp - 0x425]
cmp ecx, 0x5c
je 0x437565
movsx edx, byte [ebp - 0x425]
cmp edx, 0x3a
je 0x437565
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 0x47ccb4
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 0x4375bd
mov eax, dword [ebp - 0x20c]
jmp 0x4378e8
push 0x47ccb8
lea edx, [ebp - 0x53c]
push edx
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
je 0x437793
push 0x47ccbc
lea eax, [ebp - 0x53c]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
je 0x437793
push 0
lea ecx, [ebp - 0x53c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00437190
add esp, 0xc
test eax, eax
je 0x437793
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x20c]
mov edx, dword [eax + 4]
cmp edx, dword [ecx]
jne 0x4376c8
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.00438750
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 0x4376b1
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 0x4376c8
mov ecx, dword [ebp - 0x774]
mov dword [ecx], 0
jmp 0x437693
movzx edx, byte [ebp - 0x411]
test edx, edx
jne 0x437710
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 0x437793
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 0x4375bd
mov ecx, dword [ebp - 0x56c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx edx, byte [ebp - 0x411]
test edx, edx
je 0x4378d5
xor eax, eax
je 0x4378d5
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 0x43783d
mov ecx, dword [ebp - 0x780]
movsx edx, byte [ebp + ecx - 0x411]
cmp edx, 0x5c
je 0x43783d
mov eax, dword [ebp - 0x780]
movsx ecx, byte [ebp + eax - 0x411]
cmp ecx, 0x3a
je 0x43783d
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 0x43787b
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 0x4378d5
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 0x43785d
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.00458368
mov esp, ebp
pop ebp
ret