Function at 0x550390
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x86cdbe
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x2ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c4]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x2d4]
mov dword [esp + 0x2cc], ebp
cmp dword [eax - 0xc], ebp
jl 0x550437
push 0x404c48
push eax
call fcn.0080292f
add esp, 8
cmp eax, ebp
je 0x550437
mov ecx, dword [esp + 0x2d4]
sub eax, ecx
sar eax, 1
js 0x550437
lea eax, [ecx - 0x10]
mov dword [esp + 0x2cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x550430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x550a84
lea ecx, [esp + 0x2d4]
call fcn.004aa620
mov ecx, eax
call fcn.004aa3a0
mov ecx, ebx
call fcn.004afe70
call fcn.007c9a2f
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x2d4]
lea ecx, [esp + 0x4c]
push ecx
push ebp
add eax, 0x360
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x550558
test byte [esp + 0x4c], 0x10
je 0x550558
mov eax, dword [esp + 0x2d4]
add eax, 0xfffffff0
push eax
mov byte [esp + 0x1b], 1
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 0x4152e0
push 0x4152d8
lea ecx, [esp + 0x20]
mov byte [esp + 0x2d4], 1
call fcn.004f7060
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004af3d0
add esp, 0xc
push eax
lea ecx, [esp + 0x2d8]
mov byte [esp + 0x2d0], 2
call fcn.004aa540
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x2cc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x55050e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2cc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x550536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2d4]
push 0x5c
push ecx
call fcn.00806ba1
mov ecx, dword [esp + 0x2dc]
add esp, 8
cmp eax, ebp
jne 0x55055f
or esi, 0xffffffff
jmp 0x550565
mov byte [esp + 0x17], 0
jmp 0x550536
sub eax, ecx
sar eax, 1
mov esi, eax
push 0x2f
push ecx
call fcn.00806ba1
mov ecx, dword [esp + 0x2dc]
add esp, 8
cmp eax, ebp
jne 0x550580
or eax, 0xffffffff
jmp 0x550584
sub eax, ecx
sar eax, 1
cmp esi, eax
jle 0x55058c
push 0x5c
jmp 0x55058e
push 0x2f
push ecx
call fcn.00806ba1
add esp, 8
cmp eax, ebp
jne 0x5505a0
or eax, 0xffffffff
jmp 0x5505a9
sub eax, dword [esp + 0x2d4]
sar eax, 1
inc eax
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x2dc]
call fcn.004ac570
mov ecx, dword [esp + 0x2d4]
lea eax, [esp + 0x70]
push eax
push ecx
mov byte [esp + 0x2d4], 3
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x38], eax
cmp eax, 0xffffffff
je 0x5509af
test byte [esp + 0x70], 0x10
jne 0x550930
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x1c]
call fcn.004a8f10
mov eax, dword [esp + 0x18]
push 0x2e
push eax
mov byte [esp + 0x2d4], 4
call fcn.00806ba1
add esp, 8
cmp eax, ebp
jne 0x550620
or eax, 0xffffffff
jmp 0x550626
sub eax, dword [esp + 0x18]
sar eax, 1
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x20]
call fcn.004aa4c0
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
mov byte [esp + 0x2cc], 5
cmp esi, ebp
jl 0x550987
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x550665
push esi
mov ecx, edi
call fcn.004a8a90
mov eax, dword [edi]
lea edx, [esi + 1]
push edx
push eax
call fcn.00803997
mov eax, dword [edi]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x550987
mov dword [eax - 0xc], esi
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + esi*2], cx
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004a9b50
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x2cc], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5506c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004af3d0
add esp, 0xc
cmp byte [esp + 0x17], 0
mov byte [esp + 0x2cc], 8
je 0x55071a
push ebp
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.004a9b50
mov ecx, dword [esp + 0x30]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00528c50
test al, al
je 0x5508b8
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
cmp dword [ecx + 8], ebp
jbe 0x5508b8
mov dword [esp + 0x1c], ebp
nop
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp edx, dword [eax + 8]
jae 0x550987
mov esi, dword [esp + 0x3c]
mov edi, dword [eax + 4]
add edi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x44], esp
mov ebx, esp
call edx
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x550779
cmp eax, dword [esi - 0x10]
jne 0x550779
lea ebp, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x5507b1
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x550991
mov eax, dword [esi - 0xc]
mov dword [ebp + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
add ebp, 0x10
mov ecx, edi
mov dword [ebx], ebp
call fcn.00528820
mov esi, dword [esp + 0x24]
test al, al
je 0x550800
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esi + 8]
jae 0x550987
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
call fcn.00536140
mov eax, dword [eax]
or dword [esp + 0x20], 1
push 0x4104e4
push eax
call fcn.00801f5b
add esp, 8
test eax, eax
je 0x550800
mov bl, 1
jmp 0x550802
xor bl, bl
test byte [esp + 0x20], 1
mov dword [esp + 0x2cc], 8
je 0x550839
mov eax, dword [esp + 0x44]
and dword [esp + 0x20], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x550839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x550856
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], 0x48
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esi + 8]
jb 0x550730
jmp 0x5508b2
mov edi, dword [esp + 0x30]
mov ebx, dword [edi + 4]
mov ecx, edi
call fcn.005dfd30
mov esi, dword [edi + 0x10]
mov ebp, dword [esi]
mov dword [esp + 0x40], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x2cc], 0xa
test esi, esi
je 0x550893
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
call fcn.004a9b50
add esp, 4
add eax, 0x10
mov dword [esi + 8], eax
mov dword [edi + 0x10], ebp
mov dword [esi + 4], ebx
mov dword [esi], 0
mov eax, dword [edi + 4]
inc dword [edi + 8]
test eax, eax
je 0x5508ad
mov dword [eax], esi
jmp 0x5508af
mov dword [edi], esi
mov dword [edi + 4], esi
mov ebx, dword [esp + 0x30]
xor ebp, ebp
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x2cc], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5508e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x2cc], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x550908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2cc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x550930
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x70]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5505e4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebx + 8], ebp
jne 0x5509af
mov eax, dword [esp + 0x2d4]
cmp dword [eax - 0xc], ebp
jl 0x5509af
push 0x40e35c
push eax
call fcn.0080292f
add esp, 8
cmp eax, ebp
je 0x5509af
mov ecx, dword [esp + 0x2d4]
sub eax, ecx
sar eax, 1
cmp eax, 1
jne 0x5509af
cmp dword [ecx - 0xc], ebp
jge 0x550996
push 0x80070057
call fcn.004a8210
call fcn.004a8580
movzx eax, word [ecx]
push ebx
push eax
call fcn.005c6c30
add esp, 8
cmp eax, 2
jne 0x5509af
mov ecx, ebx
call fcn.004afe70
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x2cc], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5509d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 8]
cmp eax, 1
ja 0x550a52
jne 0x550a25
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x5509f8
push 0x80004005
call fcn.004a8210
mov ecx, dword [esp + 0x2d4]
xor edx, edx
cmp ecx, ebp
setne dl
cmp edx, ebp
jne 0x550a14
push 0x80004005
call fcn.004a8210
mov eax, dword [eax + 8]
push ecx
push eax
call fcn.00801f5b
add esp, 8
cmp eax, ebp
jne 0x550a52
cmp dword [ebx + 8], ebp
jne 0x550a4e
mov ecx, dword [esp + 0x2d4]
push 0x4152d0
push ecx
call fcn.00809ec5
add esp, 8
cmp eax, ebp
je 0x550a4e
sub eax, dword [esp + 0x2d4]
sar eax, 1
jns 0x550a52
xor bl, bl
jmp 0x550a54
mov bl, 1
mov eax, dword [esp + 0x2d4]
add eax, 0xfffffff0
mov dword [esp + 0x2cc], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x550a82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.0080262b
add esp, 0x2bc
ret