Function at 0x479e90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee347
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x541100]
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 0x479eda
push eax
call fcn.0042ad94
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x479efe
push 0x507ffc
call fcn.004ccd1a
add esp, 4
push eax
push 0x507ffc
lea ecx, [ebp + 0x10]
call fcn.00423404
lea ecx, [ebp - 0x260]
push ecx
push ecx
mov esi, esp
mov dword [ebp - 0x26c], esp
mov dword [ebp - 0x268], esi
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x479f2e
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x50057c
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x479f67
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c5d7f
test eax, eax
je 0x479f81
push edi
push eax
mov ecx, esi
call fcn.00422eb3
jmp 0x479f81
push 0x50057c
call fcn.004ccd1a
add esp, 4
push eax
push 0x50057c
mov ecx, esi
call fcn.00423404
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.00423475
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.00423475
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x274]
mov byte [ebp - 4], 1
call fcn.004770a0
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 0x47a004
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x47a256
lea ecx, [ecx]
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x479f24
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 0x47a111
movzx esi, dx
push esi
call fcn.004c5d7f
mov edi, eax
test edi, edi
je 0x47a133
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 0x47a133
push esi
push eax
push edi
call fcn.00420713
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47a133
movzx esi, word [edi]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x47a0b1
push esi
lea ecx, [ebp - 0x264]
call fcn.0042052a
movzx eax, word [edi]
lea ebx, [edi + 2]
cmp eax, 0xffffffff
jne 0x47a0c6
push ebx
call fcn.004ccd1a
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.004cc7a1
add esp, 0x10
cmp eax, 0x50
ja case.0x47a0ee.1
movzx eax, byte [eax + 0x47a2d0]
jmp dword [eax*4 + 0x47a2c0]
test esi, esi
jl 0x47a24c
cmp esi, dword [ebx - 8]
jg 0x47a24c
xor ecx, ecx
mov dword [ebx - 0xc], esi
mov word [edi + ebx], cx
jmp 0x47a12d
push edx
call fcn.004ccd1a
add esp, 4
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.00423404
mov ebx, dword [ebp - 0x264]
mov edi, dword [ebp - 0x270]
mov byte [ebp - 4], 6
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x47a148
xor eax, eax
jmp 0x47a150
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 0x47a18d
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.00423ecc
add esp, 0x14
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x47a1af
cmp ecx, esi
jbe 0x47a196
call fcn.004cce91
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.0042310d
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 0x47a1cf
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 0x47a010
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 0x47a215
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 0x47a23b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x47a2a1
call fcn.004be14b
call fcn.004be183
push 0x80070057
call fcn.00420000
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 0x47a279
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 0x47a29f
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.004cc3b2
mov esp, ebp
pop ebp
ret