Function at 0x47e560
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1fcb
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x4e3ec8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x370], eax
xor eax, eax
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0x360], eax
push esi
lea ecx, [ebp - 0x364]
mov dword [ebp - 0x37c], esi
mov dword [ebp - 4], eax
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x364]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_7322]
test al, al
je 0x47e602
lea ecx, [ebp - 0x364]
call dword [sym.imp.mfc100.dll_Ordinal_901]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e770
mov esp, ebp
pop ebp
ret
push ecx
lea edx, [ebp - 0x364]
mov ecx, esp
mov dword [ebp - 0x36c], esp
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
call fcn.00473a70
add esp, 4
test al, al
je 0x47e5d8
mov ecx, esi
lea edx, [ebp - 0x21c]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x47e630
lea eax, [ebp - 0x21c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47e641
mov cx, word [0x4c49c4]
mov dl, byte [0x4c49c6]
mov word [eax], cx
mov byte [eax + 2], dl
mov ecx, esi
lea edx, [ebp - 0x118]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x47e664
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47e675
mov ax, word [0x4b0cd8]
lea ecx, [ebp - 0x35c]
push ecx
lea edx, [ebp - 0x21c]
push edx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x378], eax
cmp eax, 0xffffffff
je 0x47e5d8
lea ecx, [ebp - 0x118]
lea edx, [ebp - 0x21c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x47e6b5
nop
mov ecx, dword [ebp - 0x378]
mov al, 1
test al, al
je 0x47e960
lea eax, [ebp - 0x35c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x47e6c0
lea edx, [ebp - 0x330]
push edx
call fcn.00473ab0
add esp, 4
test eax, eax
jne 0x47e6c0
mov ecx, esi
lea edx, [ebp - 0x118]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x47e700
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47e711
mov ax, word [0x4b0cd8]
mov word [edi], ax
lea eax, [ebp - 0x330]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47e730
lea edi, [ebp - 0x118]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x47e740
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp - 0x35c], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x47e5d8
lea ecx, [ebp - 0x388]
push ecx
call fcn.00476b60
add esp, 4
push eax
lea edx, [ebp - 0x374]
push 0x4af5dc
push edx
mov byte [ebp - 4], 2
call fcn.00401a70
add esp, 0xc
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov esi, dword [sym.imp.MSVCR100.dll__mbscmp]
lea eax, [ebp - 0x118]
push str.C:UsersManageLocal
push eax
call esi
add esp, 8
test eax, eax
je 0x47e86b
lea ecx, [ebp - 0x118]
push str.C:UsersDefault_User
push ecx
call esi
add esp, 8
test eax, eax
je 0x47e86b
lea edx, [ebp - 0x118]
push str.C:UsersDefault
push edx
call esi
add esp, 8
test eax, eax
je 0x47e86b
lea eax, [ebp - 0x118]
push str.C:UsersAll_Users
push eax
call esi
add esp, 8
test eax, eax
je 0x47e86b
lea ecx, [ebp - 0x118]
push str.C:UsersPublic
push ecx
call esi
add esp, 8
test eax, eax
je 0x47e86b
lea edx, [ebp - 0x380]
push edx
call fcn.00476b60
add esp, 4
or dword [ebp - 0x360], 1
push eax
lea eax, [ebp - 0x38c]
push 0x4af5dc
push eax
mov byte [ebp - 4], 5
call fcn.00401a70
or dword [ebp - 0x360], 2
add esp, 0xc
mov ecx, eax
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x118]
push ecx
call esi
add esp, 8
test eax, eax
je 0x47e86b
xor bl, bl
jmp 0x47e86d
mov bl, 1
test byte [ebp - 0x360], 2
je 0x47e889
and dword [ebp - 0x360], 0xfffffffd
lea ecx, [ebp - 0x38c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
test byte [ebp - 0x360], 1
mov dword [ebp - 4], 4
je 0x47e8ac
and dword [ebp - 0x360], 0xfffffffe
lea ecx, [ebp - 0x380]
call dword [sym.imp.mfc100.dll_Ordinal_901]
test bl, bl
je 0x47e8cb
lea ecx, [ebp - 0x374]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov esi, dword [ebp - 0x37c]
jmp 0x47e6c0
cmp byte [ebp + 0x14], 0
jne 0x47e8b0
mov eax, dword [ebp - 0x370]
inc dword [eax]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47e8e2
sub eax, edx
push eax
lea edx, [ebp - 0x10f]
push edx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
mov esi, dword [ebp - 0x368]
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x36c]
push esi
push edx
call fcn.004019e0
add esp, 0x18
push 0x4b38c0
push eax
lea eax, [ebp - 0x384]
push eax
mov byte [ebp - 4], 6
call fcn.004019e0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x384]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x36c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
jmp 0x47e8b0
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x364]
call dword [sym.imp.mfc100.dll_Ordinal_901]
jmp 0x47e5e6