Function at 0x47a8c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecbc7
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x53d100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x270], eax
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], 1
je 0x47a90a
push eax
call fcn.0042c92d
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x47a92e
push 0x505f04
call fcn.004cb5ea
add esp, 4
push eax
push 0x505f04
lea ecx, [ebp + 0x10]
call fcn.004253ae
lea ecx, [ebp - 0x260]
push ecx
push ecx
mov esi, esp
mov dword [ebp - 0x26c], esp
mov dword [ebp - 0x268], esi
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47a95e
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4fe58c
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x47a997
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c463d
test eax, eax
je 0x47a9b1
push edi
push eax
mov ecx, esi
call fcn.00424e82
jmp 0x47a9b1
push 0x4fe58c
call fcn.004cb5ea
add esp, 4
push eax
push 0x4fe58c
mov ecx, esi
call fcn.004253ae
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x268], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x264], esp
mov esi, esp
push eax
call fcn.0042541f
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x274]
mov byte [ebp - 4], 1
call fcn.00477ad0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
mov dword [ebp - 0x26c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47aa34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x47ac86
lea ecx, [ecx]
call fcn.004bc4b7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x47a954
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x264], ebx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
mov edx, ecx
test ecx, 0xffff0000
jne 0x47ab41
movzx esi, dx
push esi
call fcn.004c463d
mov edi, eax
test edi, edi
je 0x47ab63
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47ab63
push esi
push eax
push edi
call fcn.004226d6
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47ab63
movzx esi, word [edi]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x47aae1
push esi
lea ecx, [ebp - 0x264]
call fcn.004224f5
movzx eax, word [edi]
lea ebx, [edi + 2]
cmp eax, 0xffffffff
jne 0x47aaf6
push ebx
call fcn.004cb5ea
add esp, 4
inc eax
lea edx, [eax + eax]
push edx
push ebx
mov ebx, dword [ebp - 0x264]
lea edi, [esi + esi]
push edi
push ebx
call fcn.004cb072
add esp, 0x10
cmp eax, 0x50
ja case.0x47ab1e.1
movzx eax, byte [eax + 0x47ad00]
jmp dword [eax*4 + 0x47acf0]
test esi, esi
jl 0x47ac7c
cmp esi, dword [ebx - 8]
jg 0x47ac7c
xor ecx, ecx
mov dword [ebx - 0xc], esi
mov word [edi + ebx], cx
jmp 0x47ab5d
push edx
call fcn.004cb5ea
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.004253ae
mov ebx, dword [ebp - 0x264]
mov edi, dword [ebp - 0x270]
mov byte [ebp - 4], 6
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x47ab78
xor eax, eax
jmp 0x47ab80
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x47abbd
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 0x268], 0
mov eax, dword [ebp - 0x268]
push eax
push ecx
lea edx, [ebp - 0x264]
push edx
push 1
push esi
call fcn.00425e94
add esp, 0x14
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x47abdf
cmp ecx, esi
jbe 0x47abc6
call fcn.004cb761
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x27c]
push ecx
mov eax, edi
call fcn.004250dc
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47abff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x26c]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47aa40
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47ac45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ac6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x47acd1
call fcn.004bca1f
call fcn.004bca57
push 0x80070057
call fcn.00422000
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47aca9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47accf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 - 0x10]
xor ecx, ebp
call fcn.004cac83
mov esp, ebp
pop ebp
ret