Function at 0x47a770
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x944
mov eax, dword [0x4fad59]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
push 0
push 0
push 0x14b
push eax
call ebp
mov edi, dword [esp + 0x958]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x154]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
dec esi
js 0x47a7e8
mov al, byte [esp + esi + 0x154]
cmp al, 0x2f
je 0x47a7e8
cmp al, 0x5c
je 0x47a7e8
cmp al, 0x3a
je 0x47a7e8
dec esi
jns 0x47a7d2
cmp esi, 1
jle 0x47a895
lea ecx, [esp + 0x14]
lea edx, [esp + 0x154]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edx, eax
cmp edx, 0xffffffff
je 0x47a83a
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + esi + 0x155]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [esp + 0x157]
lea esi, [esp + 0x157]
test al, al
je 0x47a87d
mov bl, byte [esi]
cmp bl, 0x5c
je 0x47a858
cmp bl, 0x2f
jne 0x47a875
mov edx, dword [0x4fad59]
lea ecx, [esp + 0x154]
push ecx
push 0
push 0x143
push edx
mov byte [esi], 0
call ebp
mov byte [esi], bl
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x47a84c
mov ecx, dword [0x4fad59]
lea eax, [esp + 0x154]
push eax
push 0
push 0x143
push ecx
call ebp
lea edi, [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str..
mov ebx, ecx
or ecx, 0xffffffff
inc ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x47a965
lea ebx, [esp + ebx + 0x154]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, ebx
and eax, 0x10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test al, al
rep movsb byte es:[edi], byte [esi]
je 0x47a946
cmp byte [esp + 0x40], 0x2e
je 0x47a946
mov edx, dword [0x4fad59]
lea ecx, [esp + 0x154]
push ecx
push 0
push 0x143
push edx
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x47a8fb
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [0x4fad59]
lea eax, [esp + 0x154]
push eax
push 0xc000
push 0x145
push ecx
call ebp
mov edx, dword [0x4fad59]
push 0x4d8868
push 0xffffffffffffffff
push 0x14c
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x47aa2a
mov bl, 0x42
mov ecx, dword [0x4fad59]
lea eax, [esp + 0x554]
push eax
push esi
push 0x148
push ecx
call ebp
mov dl, byte [esp + 0x556]
mov eax, dword [0x4fad59]
push 0
push esi
sub dl, 0x20
push 0x144
push eax
mov byte [esp + 0x564], dl
mov byte [esp + 0x565], 0x3a
mov byte [esp + 0x566], 0
call ebp
cmp byte [esp + 0x554], bl
jle 0x47aa0b
mov edx, dword [0x4fad59]
lea ecx, [esp + 0x554]
push ecx
push 0
push 0x143
push edx
call ebp
mov eax, dword [0x4fad59]
push 0x4d8868
push 0xffffffffffffffff
push 0x14c
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x47a9a2
mov ecx, dword [esp + 0x958]
mov edx, dword [0x4fad59]
push ecx
push 0xffffffffffffffff
push 0x158
push edx
call ebp
push 0
push eax
mov eax, dword [0x4fad59]
push 0x14e
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x944
ret