Function at 0x47c3d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b950
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4b900c]
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 edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 0x250
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.00480150
add esp, 0xc
call fcn.00404b00
mov ecx, eax
test ecx, ecx
je 0x47c5e4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
add eax, 1
mov dword [ebp - 0x270], eax
js 0x47c5ee
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, dword [ebp - 0x270]
or eax, ecx
jge 0x47c478
push dword [ebp - 0x270]
lea ecx, [ebp - 0x18]
call fcn.004074b0
mov edx, dword [ebx]
mov esi, dword [ebp - 0x18]
mov eax, dword [edx - 0xc]
lea ecx, [ebp - 0x26c]
push ecx
push esi
inc eax
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x270], eax
test eax, eax
je 0x47c4a2
mov ecx, dword [ebp - 0x26c]
xor eax, eax
mov word [ecx - 2], ax
push dword [esi - 8]
push esi
call fcn.0048616c
add esp, 8
test eax, eax
js 0x47c5ee
cmp eax, dword [esi - 8]
jg 0x47c5ee
xor ecx, ecx
mov dword [esi - 0xc], eax
or ebx, 0xffffffff
mov word [esi + eax*2], cx
cmp dword [ebp - 0x270], ecx
je 0x47c5ac
lea eax, [ebp - 0x268]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, ebx
je 0x47c5ac
call fcn.00404b00
mov ecx, eax
test ecx, ecx
je 0x47c5f8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x270]
mov byte [ebp - 4], 1
nop dword [eax + eax]
test byte [ebp - 0x268], 0x10
jne 0x47c572
lea eax, [ebp - 0x23c]
push eax
push esi
lea eax, [ebp - 0x14]
push str._s_s
push eax
call fcn.0040ac60
mov ebx, dword [edi + 4]
add esp, 0x10
cmp dword [edi + 8], ebx
je 0x47c560
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0041df50
add eax, 0x10
mov dword [ebx], eax
add dword [edi + 4], 4
jmp 0x47c56c
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push ebx
call fcn.004477b0
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47c520
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47c5ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x47c5c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0047e577
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048d0
push 0x80070057
call fcn.004048d0
push 0x80004005
call fcn.004048d0
int3