Function at 0x4976b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4976b9
add esp, 0xfffffcdc
mov eax, dword [ebp - 4]
mov eax, 0x5b04c2
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
call fcn.004d57f0
xor esi, esi
xor edi, edi
mov word [ebp - 0x14], 8
test byte [0x528c3c], 0x40
je 0x497705
mov eax, dword [ebp + 8]
push eax
push 0x5f5d06
push 0x528c40
call fcn.004541dc
add esp, 0xc
mov byte [ebx], 0
mov byte [0x63d8a6], 0
mov byte [0x5b04ac], 1
mov edx, dword [ebp + 8]
mov cl, byte [edx]
mov byte [ebp + edi - 0x68], cl
inc edi
lea eax, [ebp + edi - 0x68]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp + 8]
lea ecx, [edx + esi]
mov esi, ecx
mov al, byte [esi]
test al, al
je 0x497754
movsx edx, al
cmp edx, 0x2c
jne 0x497751
movsx ecx, byte [esi + 1]
push ecx
call fcn.004da860
pop ecx
mov edx, dword [ebp - 0x28]
mov byte [edx], al
inc edi
inc dword [ebp - 0x28]
inc esi
jmp 0x49772f
mov byte [ebp + edi - 0x68], 0
movsx eax, byte [0x52ede1]
push eax
push ebx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00460538
add esp, 0xc
test eax, eax
jne 0x4977d2
push 0x5f5d1a
push ebx
call fcn.004d2e40
add esp, 8
mov eax, dword [ebp + 8]
push eax
push ebx
call fcn.004d2e40
add esp, 8
push 0x5f5d1d
push ebx
call fcn.004d2e40
add esp, 8
mov byte [0x5b04ac], 0
test byte [0x528c3c], 0x40
je 0x4977c1
mov edx, dword [ebp + 8]
push edx
push 0x5f5d1f
push 0x528c40
call fcn.004541dc
add esp, 0xc
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x497da5
lea edi, [ebp - 0x68]
mov al, byte [edi]
test al, al
je 0x497d1d
lea edx, [ebp - 0x4325]
push edx
movsx ecx, byte [edi]
push ecx
call fcn.004da860
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d91ac
mov al, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], al
lea edx, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test edx, edx
je 0x49785b
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x49785b
lea eax, [ebp - 0x4328]
push eax
call fcn.004d2f1c
pop ecx
movsx edx, byte [ebp + eax - 0x4329]
cmp edx, 0x5c
je 0x49785b
push 0x5f5d38
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004d2e40
add esp, 8
lea eax, [ebp - 0x4328]
lea edx, [ebp - 0x21a8]
push eax
push 0x5f5d3a
push edx
call fcn.004d75f8
add esp, 0xc
lea ecx, [ebp - 0x21a8]
push ecx
push 0x5f5d55
lea eax, [ebp - 0x41a8]
push eax
push 0x5f5d50
push 0x5f5d48
call fcn.0040ca3c
add esp, 0x14
mov dl, byte [ebp - 0x41a8]
test dl, dl
je 0x4978df
mov cl, byte [ebx]
test cl, cl
je 0x4978b9
push 0x5f5d56
push ebx
call fcn.004d2e40
add esp, 8
lea eax, [ebp - 0x41a8]
push eax
lea edx, [ebp - 0x4328]
push edx
call fcn.004d2e40
add esp, 8
lea ecx, [ebp - 0x4328]
push ecx
push ebx
call fcn.004d2e40
add esp, 8
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004da860
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d91ac
mov cl, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], cl
lea eax, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test eax, eax
je 0x49795b
lea edx, [ebp - 0x4328]
push edx
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x49795b
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004d2f1c
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x49795b
push 0x5f5d58
lea edx, [ebp - 0x4328]
push edx
call fcn.004d2e40
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5f5d5a
push eax
call fcn.004d75f8
add esp, 0xc
lea edx, [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x21a8]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4979e7
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5f5d65
push ecx
call fcn.004d75f8
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x4979c6
push 0x5f5d6a
push ebx
call fcn.004d2e40
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004d2e40
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x497990
push esi
call sub.KERNEL32.dll_FindClose
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004da860
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d91ac
mov cl, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], cl
lea eax, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test eax, eax
je 0x497a69
lea edx, [ebp - 0x4328]
push edx
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x497a69
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004d2f1c
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x497a69
push 0x5f5d6c
lea edx, [ebp - 0x4328]
push edx
call fcn.004d2e40
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5f5d6e
push eax
call fcn.004d75f8
add esp, 0xc
lea edx, [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x21a8]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x497af5
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5f5d79
push ecx
call fcn.004d75f8
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x497ad4
push 0x5f5d7e
push ebx
call fcn.004d2e40
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004d2e40
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x497a9e
push esi
call sub.KERNEL32.dll_FindClose
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004da860
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d91ac
mov cl, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], cl
lea eax, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test eax, eax
je 0x497b77
lea edx, [ebp - 0x4328]
push edx
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x497b77
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004d2f1c
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x497b77
push 0x5f5d80
lea edx, [ebp - 0x4328]
push edx
call fcn.004d2e40
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5f5d82
push eax
call fcn.004d75f8
add esp, 0xc
lea edx, [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x21a8]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x497c03
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5f5d8d
push ecx
call fcn.004d75f8
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x497be2
push 0x5f5d92
push ebx
call fcn.004d2e40
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004d2e40
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x497bac
push esi
call sub.KERNEL32.dll_FindClose
lea eax, [ebp - 0x4325]
push eax
movsx edx, byte [edi]
push edx
call fcn.004da860
pop ecx
add eax, 0xffffffc0
push eax
call fcn.004d91ac
mov cl, byte [edi]
add esp, 8
mov byte [ebp - 0x4328], cl
lea eax, [ebp - 0x4328]
mov byte [ebp - 0x4327], 0x3a
mov byte [ebp - 0x4326], 0x5c
test eax, eax
je 0x497c85
lea edx, [ebp - 0x4328]
push edx
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x497c85
lea ecx, [ebp - 0x4328]
push ecx
call fcn.004d2f1c
pop ecx
movsx eax, byte [ebp + eax - 0x4329]
cmp eax, 0x5c
je 0x497c85
push 0x5f5d94
lea edx, [ebp - 0x4328]
push edx
call fcn.004d2e40
add esp, 8
lea ecx, [ebp - 0x4328]
lea eax, [ebp - 0x21a8]
push ecx
push 0x5f5d96
push eax
call fcn.004d75f8
add esp, 0xc
lea edx, [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x21a8]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x497d11
lea eax, [ebp - 0x17c]
lea edx, [ebp - 0x4328]
push eax
push edx
lea ecx, [ebp - 0x41a8]
push 0x5f5da1
push ecx
call fcn.004d75f8
add esp, 0x10
mov al, byte [ebx]
test al, al
je 0x497cf0
push 0x5f5da6
push ebx
call fcn.004d2e40
add esp, 8
lea edx, [ebp - 0x41a8]
push edx
push ebx
call fcn.004d2e40
add esp, 8
lea ecx, [ebp - 0x1a8]
push ecx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x497cba
push esi
call sub.KERNEL32.dll_FindClose
inc edi
jmp 0x4977d5
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
mov esi, 0x63d8a6
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [0x5b04ad], 1
mov byte [0x5b04ac], 0
test byte [0x528c3c], 0x40
je 0x497d6f
push 0x63d8a6
push 0x5f5da8
push 0x528c40
call fcn.004541dc
add esp, 0xc
mov word [ebp - 0x14], 0
jmp 0x497d96
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x4334]
mov esi, dword [ebp - 0x4330]
mov ebx, dword [ebp - 0x432c]
pop ebp
ret